useTheme
hook
The useTheme
hook provides access to the current theme
and activeColorScheme
.
The color
and spectrum
objects automatically change based on the activeColorScheme
.
Tip
For best performance, prefer to use CSS Variables instead of the useTheme
hook whenever possible. Read more about CSS Variables here →
Basic usage
Loading...
Styling with Theme values
Loading...
Color scheme detection
Loading...