react-system-theme
Version:
Use system theme in your react apps.
16 lines (15 loc) • 372 B
TypeScript
/**
* 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;