Theme switcher components where every change repaints the page, not just the control.
Eight theme and colour components built on one theme model that writes CSS variables. Each one drives a live mini page, and every change animates that page: a new colour opens over it in a circle from the swatch you touched, light and dark swap with a reveal from the toggle, presets roll across in a wave. A 60-30-10 palette builder with a drag-to-resize proportion bar and harmony rules, a re-colour swatch row with circular wipes, a light and dark toggle whose sun becomes a moon, an accent picker that checks WCAG contrast live and snaps to the nearest passing shade, a font pairer with a type-scale slider, a radius, density and shadow tuner, an export panel that writes CSS variables, Tailwind config or JSON as you change things, and a preset gallery. All colour maths is included (HSL, mixing, relative luminance, contrast ratios). Light and dark, keyboard and screen reader ready, reduced motion, zero dependencies.
Type: Component packs. Price: $2. Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). Tags: theme switcher component, dark mode toggle, color palette generator UI, color picker, contrast checker, design tokens, font pairing, CSS variables, theme editor, settings.
What is inside (8 components)
Palette Builder: Drag the dividers of a 60-30-10 bar or spin the base hue; harmony rules fill in the other two and the page repaints in a wipe.
Page Wipe: Tap a swatch and the whole page re-colours in a circle that opens from that swatch.
Mode Toggle: The sun’s rays fold in and it becomes a moon while dark mode opens over the page from the toggle.
Contrast Picker: Pick an accent and the contrast ratios update live with AA and AAA marks; Fix it snaps to the nearest shade that passes.
Font Pairer: Shuffle heading and body pairs and the specimen re-sets itself; the type-scale slider grows every level on a spring.
Shape Tuner: Corner radius, density and shadow sliders morph the whole page on springs, from sharp and dense to soft and airy.
Theme Export: Change a colour and the exported code updates line by line with a highlight; switch between CSS variables, Tailwind and JSON and copy.
Preset Gallery: Hover a preset to preview it on the page; apply it and the colours roll across the page in a wave.