This is React app is just a demo of the core theme switcher which is framework agnostic. You can look at src/lib/themeSwitcher
to see the core functionality.
- Some of code is from tailwind.com repo.
Auto detect dark theme and switch accordingly. Saves theme preference to localStorage if the user selects a specific theme.
TypeScript
This is React app is just a demo of the core theme switcher which is framework agnostic. You can look at src/lib/themeSwitcher
to see the core functionality.