alepha@docs:~/docs/reference/react-hooks$
cat useTheme.md | pretty1 min read
Last commit:
#useTheme
#Import
typescript
1import { useTheme } from "@alepha/ui/styles.css";
#Overview
Hook to get and set the current theme.
Returns a tuple with the current theme, a function to set the theme, and expert mode controls for fine-grained customization.
tsx
1const [theme, setTheme, expert] = useTheme();