Light, dark and system theme picker as a segmented radiogroup that toggles the dark class on the root element for Tailwind dark mode and reports it to onChange.
npx shadcn@latest add @minidev/theme-picker
Loading the source for theme-picker…
Registry Items
theme-picker
Configuration
Name
theme-picker
Type
UI
Description
Light, dark and system theme picker as a segmented radiogroup that toggles the dark class on the root element for Tailwind dark mode and reports it to onChange.
Files · 1
Registry Items
theme-picker
Configuration
Name
theme-picker
Type
UI
Description
Light, dark and system theme picker as a segmented radiogroup that toggles the dark class on the root element for Tailwind dark mode and reports it to onChange.