UNPKG

react-system-theme

Version:
16 lines (15 loc) 372 B
/** * Return the current system theme * @returns "dark" | "light" */ export declare const useSystemTheme: () => "dark" | "light"; /** * Check if system theme is dark * @returns boolean */ export declare const useDarkTheme: () => boolean; /** * Check if system theme is light * @returns boolean */ export declare const useLightTheme: () => boolean;