dgz-ui-shared
Version:
Custom ui library using React.js, Shadcn/ui, TailwindCSS, Typescript, dgz-ui library
14 lines • 560 B
TypeScript
/**
* useTheme returns the theme context with current theme and setter.
* Must be used within a ThemeProvider.
*
* @returns {Object} Theme context object
* @returns {ThemeMode} theme - Current active theme mode (LIGHT, DARK, or SYSTEM)
* @returns {(theme: ThemeMode) => void} setTheme - Function to update the theme
* @throws {Error} If used outside of ThemeProvider
*/
export declare const useTheme: () => {
theme: import('../enums').ThemeMode;
setTheme: (theme: import('../enums').ThemeMode) => void;
};
//# sourceMappingURL=useTheme.d.ts.map