Theme Switcher
Two styles: a segmented control and a single icon button.
- Component
- Light and dark
- Updated 5 months ago
Paste this into your agent.
Add a light and dark switch to <the page you want it on>. Install it with: npx shadcn add @ollie/theme-switcher Keep the ocean theme tokens.
Other takes
More components
- Command PalettePress ⌘K to jump anywhere or do anything.
- Bulk action barActions for the rows you've ticked, in a bar that floats up.
- Page actionsA page's search and buttons, folded into a menu on phones.
- Cursor pagerPrevious and next buttons for long lists.
- Keyboard shortcutsKeyboard shortcuts, and a ? screen that lists them.