@multinite_official/multiui
Version:
The first and only Component Framework.
9 lines (8 loc) • 306 B
TypeScript
/**
* Get the user's preferred color scheme from the browser.
*/
export declare function useColorScheme(): "light" | "dark" | undefined;
/**
* Get the user's preferred color scheme from the browser synchronously, without React states.
*/
export declare function getColorSchemeSync(): "light" | "dark";