ComponentReactregistry:ui2 dependencies
Theme Toggle
theme-toggle
Class-strategy dark mode toggle with localStorage persistence and no-flash pre-paint script helper.
Notes from the author
Place <ThemeScript /> inside <head> in your root layout to avoid a dark-mode flash; put <ThemeToggle /> wherever the switch lives.
6 other registries
Similar components
Other registries' take on theme-toggle.
@washiveil