@arolariu/components
Version:
🎨 70+ beautiful, accessible React components built on Base UI. TypeScript-first, CSS Modules styling, tree-shakeable, SSR-ready. Perfect for modern web apps, design systems & rapid prototyping. Zero config, maximum flexibility! ⚡
14 lines • 385 B
TypeScript
type ColorScheme = "light" | "dark";
/**
* Returns the user's system color scheme preference.
*
* @returns `"dark"` when the system prefers dark mode, `"light"` otherwise.
*
* @example
* ```tsx
* const scheme = useColorScheme(); // "dark"
* ```
*/
export declare function useColorScheme(): ColorScheme;
export type { ColorScheme };
//# sourceMappingURL=useColorScheme.d.ts.map