
Usage
To change between modes, or access the current mode, you can use theuseColorScheme() hook:
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Built-in dark/light mode, without any flicker (FOUC) for all components

useColorScheme() hook:
const { mode, setMode } = useColorScheme();
return (
<Button onClick={() => setMode(mode === 'light' ? 'dark' : 'light')}>
Toggle {mode === 'light' ? 'Dark' : 'Light'} Mode
</Button>
);