UI Components
ThemeController
Dropdown for setting a DaisyUI theme
- The ThemeController component can be used anywhere in your app to allow users to change the theme.
- Please read the docs on Styling & Themes to learn how themes are applied to your app.
- The component is used in the Marketing Navbar component located in
src/lib/ui/marketing/Navbar.svelte
.
Usage
+page.svelte (example)
ThemeController component
Located at src/lib/ui/components/ThemeController.svelte
.
Customize it to the themes that you use. Make sure the themes are also in tailwind.config.js
file.
Please read the docs on Styling & Themes to learn more about how themes work.
ThemeController.svelte