/** * @license * Copyright 2023 Nuraly, Laabidi Aymen * SPDX-License-Identifier: BSD-3-Clause */ /** * Theme utilities and type definitions * * NOTE: CSS theme files are in the @nuralyui/themes package * This file only contains TypeScript utilities and types */ export declare const THEME_VARIANTS: { readonly 'default-light': "Default Light"; readonly 'default-dark': "Default Dark"; readonly 'carbon-light': "Carbon Light"; readonly 'carbon-dark': "Carbon Dark"; readonly light: "Default Light"; readonly dark: "Default Dark"; }; export type ThemeVariant = keyof typeof THEME_VARIANTS; /** * Utility function to apply theme to an element * @param element - The element to apply the theme to * @param theme - The theme variant to apply */ export declare function applyTheme(element: HTMLElement, theme: ThemeVariant): void; /** * Utility function to get current theme from an element or its parents * @param element - The element to check for theme * @returns The current theme variant or null if not found */ export declare function getCurrentTheme(element: HTMLElement): ThemeVariant | null; /** * Utility function to toggle between light and dark variants of the same theme * @param element - The element to toggle theme on */ export declare function toggleThemeVariant(element: HTMLElement): void; /** * Get the theme system name from a theme variant * @param theme - The theme variant * @returns The theme system name ('carbon' or 'default') */ export declare function getThemeSystem(theme: ThemeVariant | null): 'carbon' | 'default'; //# sourceMappingURL=themes.d.ts.map