dark-mode-converter
Skill1 starsChanged 4 months agoMITView on GitHub
Convert a light-only site or app to a real dark mode -- semantic token mapping, elevation-based surfaces, recalibrated shadows and imagery -- not a naive inversion. Handles Tailwind, CSS variables, and styled-components, plus the toggle, persistence, and no-flash boot.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- OneWave-AI/claude-skillsword for word, first seen Sep 21, 2026
- inbharatai/claude-skillstheir own version, first seen Mar 14, 2026
Other versions2 projects use a version of this.
Word for word · 1
- OneWave-AI/claude-skills★ 321100% same
Edited · 0
None found.
Wrote their own version · 1
- inbharatai/claude-skills★ 37same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository112 other files it gives its agents.
- llms.txtllms.txt
- accessibility-auditorSkill
- agent-armySkill
- agent-swarm-deployerSkill
- agent-team-builderSkill
- agent-to-agentSkill
- animateSkill
- api-documentation-writerSkill
- api-endpoint-scaffolderSkill
- api-load-testerSkill
- brand-consistency-checkerSkill
- brandkitSkill
- brand-voice-analyzerSkill
- industrial-brutalist-uiSkill
- cavecrewSkill
- caveman-commitSkill
- caveman-compressSkill
- caveman-helpSkill
- caveman-reviewSkill
- cavemanSkill
- caveman-statsSkill
- claude-design-criticSkill
- claude-design-system-architectSkill
- claude-landing-composerSkill
- code-review-proSkill
- competitor-intel-agentSkill
- compliance-checkerSkill
- content-repurposerSkill
- cowork-sop-writerSkill
- cross-conversation-project-managerSkill
- css-animation-creatorSkill
- csv-excel-mergerSkill
- customer-journey-mapperSkill
- customer-panel-of-expertsSkill
- customer-review-aggregatorSkill
- database-migratorSkill
- database-schema-designerSkill
- data-pipeline-builderSkill
- debate-simulatorSkill
- dependency-auditorSkill
- design-style-installerSkill
- design-system-generatorSkill
- design-tokens-syncSkill
- docker-debuggerSkill
- env-setup-wizardSkill
- error-boundary-creatorSkill
- expert-panelSkill
- font-pairing-suggesterSkill
- frontend-designSkill
- full-codebase-migratorSkill
- game-builderSkill
- game-recap-generatorSkill
- game-strategy-simulatorSkill
- git-pr-reviewerSkill
- gmail-to-crm-pipelineSkill
- gpt-tasteSkill
- hyperframes-local-promoSkill
- hypothesis-testing-engineSkill
- imagegen-frontend-mobileSkill
- imagegen-frontend-webSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 23
Never pure black base, never pure white text.
- Very specific: line 27
Test system-preference switching live -- the system setting must react to OS changes without reload.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Dark Mode Converter
Build dark mode the way design-mature products do: as a second theme with its own logic, not the light theme with colors flipped. Inversion fails because dark UIs work differently -- elevation is communicated by lighter surfaces instead of shadows, saturated colors vibrate on dark backgrounds, and pure black plus pure white is glare, not contrast.
Workflow
- Tokenize first. Inventory every color in the codebase. If colors are hardcoded in components, lift them into semantic tokens before converting --
bg.base,surface,surface.raised,text.primary,text.muted,border,accent, states. A dark mode built on raw hex replacements breaks on the next feature. (If tokens exist, audit for strays with the same sweep.) - Design the dark palette by role, following dark-UI physics: base is dark gray, never
#000(#0f1115-#1a1d23territory, or tinted toward the brand hue); elevation gets lighter as surfaces rise (base -> card -> popover each a step up); text is off-white, never#fff(#e8eaed-ish, ~87% white) with muted steps; accents desaturate and lighten 1-2 steps so they do not vibrate; borders drop to low-alpha whites; shadows go darker and tighter or yield to surface-lightness entirely. Verify every text/surface pair at WCAG AA minimum. - Wire the mechanism per stack: Tailwind
dark:withclassstrategy (v4:@variant dark), or a[data-theme="dark"]block redefining the custom properties. Add the toggle with three states (light/dark/system),localStoragepersistence,prefers-color-schemedefault, and the no-flash inline script in<head>that sets the class before first paint. - Handle the hard parts -- the places naive conversions die: images and illustrations with baked-in white backgrounds (swap variants, add a subtle surface behind them, or CSS-filter logos where acceptable); charts and data-viz palettes (need their own dark series colors); form controls and
color-scheme: darkso native inputs, scrollbars, and autofill match; embedded third-party widgets (map themes, iframes); email templates and open-graph images that never inherit the theme; focus rings that vanish on dark. - Audit pass. Screenshot-walk the key routes in both modes (or list them for the user to check): look for stranded light surfaces, double-borders where shadows used to separate, unreadable muted text, and accent buttons that lost their punch. Output
dark-mode-report.md: token map (light -> dark by role), files touched, contrast table, and remaining items needing design eyes.
Rules
- Semantic tokens or nothing.
dark:bg-gray-800sprinkled across 90 components is a maintenance debt, not a theme -- centralize the mapping. - Never pure black base, never pure white text. Reserve those for moments, not defaults.
- Elevation flips: light mode says "higher" with shadow, dark mode says it with a lighter surface. Convert the logic, not just the colors.
- Accents recalibrate, brand does not change: adjust lightness/saturation to sit on dark, but the brand hue survives (check contrast of brand-on-dark and flag genuine conflicts for the user rather than silently shifting hue).
- Both modes are first-class from now on: every report includes the rule that new components define both themes' tokens or fail review.
- Test system-preference switching live -- the
systemsetting must react to OS changes without reload.
Quick Commands
- "Convert this project to dark mode" -- full workflow
- "Tokenize my colors first" -- step 1 standalone
- "Just design the dark palette" -- step 2 from existing tokens
- "Dark mode audit" -- step 5 against an existing implementation
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

