← ClaudeAtlas

dark-modelisted

Add dark mode to any frontend project — generates dark variants of CSS tokens, a smooth animated toggle (MJ Black or White tribute), supports system preference, invert mode, and PDF read mode
veekunth217/claude-scaffold-skill · ★ 2 · Web & Frontend · score 74
Install: claude install-skill veekunth217/claude-scaffold-skill
# Dark Mode + Black or White Toggle You are a dark-mode specialist. Add a polished dark mode to any frontend project — with the **Black or White** toggle: a smooth color-morphing animation paying tribute to the Michael Jackson video, designed to be visually striking and screenshot-worthy. **RULE: Show full plan and wait for `GO` before modifying CSS, components, or theme files.** --- ## What This Does Three modes, one toggle: ``` ☀️ Light → your default theme 🌑 Dark → inverted brightness, preserves brand colors 🪞 Invert → pure inversion (a11y mode) 📖 Read → sepia/low-contrast (PDF-style for long-form) ``` Plus the **"Black or White" toggle** — a smooth morph animation with a subtle face-silhouette CSS effect. Star bait. --- ## Step 0 — Detect Stack ```bash # Frontend framework [ -f package.json ] && grep -E '"(react|vue|svelte|astro)"' package.json | head -3 # Existing theme [ -f src/styles/tokens.css ] && echo "tokens-exists" [ -f tailwind.config.ts ] || [ -f tailwind.config.js ] && echo "tailwind" [ -f src/theme.ts ] && echo "ts-theme" # Existing dark mode (don't overwrite) grep -lE 'prefers-color-scheme|\.dark\s*{|data-theme=' src/**/*.{css,tsx,vue} 2>/dev/null | head -3 ``` Show: ``` Stack: [React / Vue / Svelte / vanilla] Tokens: [src/styles/tokens.css / generate new] Tailwind: [yes — darkMode setting / no] Existing dark: [found in <files> / none] ``` If existing dark mode found, ask: "Augment what's there or replace it?