What problem does it solve?
It prevents broken, low-contrast, or unreadable interfaces when switching from light to dark themes, while avoiding harsh inversion approaches that make images and colors look wrong.
Core Features & Use Cases
- Theme tokens with color mapping: Uses CSS custom properties for a mapped dark palette (not filter-based inversion) and enforces a surface hierarchy for consistent elevation.
- Tailwind-ready dark variant: Configures Tailwind to use the class-based dark mode approach so components can rely on predictable
dark: styling.
- Preference + persistence: Detects system preference via
prefers-color-scheme and supports a manual toggle persisted with localStorage.
- FOWT (flash of wrong theme) mitigation: Adds an early, synchronous head script to prevent initial incorrect theme rendering.
- Dark-mode visual fixes: Replaces shadows with borders/elevation cues and adapts images for comfortable reading and correct contrast.
- Use cases: New dark-theme rollouts, legacy modernization, dark-mode contrast audits, and SaaS dashboards with per-user theme settings.
Quick Start
Ask the skill to implement dark mode for your web app by adding CSS theme tokens, enabling Tailwind dark: support, wiring system detection plus a localStorage-persisted toggle, preventing flash-of-wrong-theme, and updating shadows/images to follow the dark surface and contrast rules.