@hakit/components
Version:
A series of components to work with @hakit/core
25 lines • 1.24 kB
TypeScript
import { BreakPoints, BreakPointsWithXlg } from '..';
export type ThemeStore = {
theme: {
/** the tint factor to apply to the shade colors @default 0.8 */
tint?: number;
/** the color hue shift value @default 220 */
hue?: number;
/** the color saturation value @default 60 */
saturation?: number;
/** the color lightness value @default 54 */
lightness?: number;
/** the contrast threshold for text @default 65 */
contrastThreshold?: number;
/** dark mode or light mode @default true */
darkMode?: boolean;
};
/** Will merge input theme values with the default values, undefined values passed through the setTheme function will be ignored */
setTheme: (partialTheme: ThemeStore["theme"]) => void;
/** getter for breakpoints, if using @hakit/components, the breakpoints are stored here to retrieve in different locations */
breakpoints: BreakPointsWithXlg;
/** setter for breakpoints, intended for internal use only */
setBreakpoints: (breakpoints: BreakPoints) => void;
};
export declare const useThemeStore: import('zustand').UseBoundStore<import('zustand').StoreApi<ThemeStore>>;
//# sourceMappingURL=store.d.ts.map