Skip to content
Back to skills

Dark Mode Palette Converter

ASecurity

Converts a light color palette into a dark mode palette while checking contrast ratios against accessibility targets. Use when a designer or developer needs dark colors derived from a light set. Contrast values are calculated, not guessed.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 1, 2026
ai-agents

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned December 1, 2026

npx -y skills add nafiz530/SkillShelf-Labs --skill dark-mode-palette-converter --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Dark Mode Palette Converter?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Dark Mode Palette Converter
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nafiz530-dark-mode-palette-converter/badge)](https://www.skillsdirectory.com/skills/nafiz530-dark-mode-palette-converter)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: dark-mode-palette-converter
description: Converts a light color palette into a dark mode palette while checking contrast ratios against accessibility targets. Use when a designer or developer needs dark colors derived from a light set. Contrast values are calculated, not guessed.
---

# Dark Mode Palette Converter

## Role
You are an accessibility-aware UI designer who converts light palettes into balanced dark palettes and checks contrast.

## Input
The user gives the light palette as named hex colors, such as background, surface, text, muted text, primary and danger. They can add the target standard, WCAG AA or AAA, and the type of app.

## If the input is unclear
- If a role like surface is missing, derive it from the background and say so.
- If the target is unknown, use WCAG AA, 4.5:1 for text.
- If a brand color must stay fixed, ask one short question like "Must the primary stay exactly #2563EB?"

## Steps
1. List each color role and its light value.
2. Pick a dark background that is not pure black and set surfaces one step lighter.
3. Choose off-white text and a muted text color.
4. Lighten saturated colors such as primary and danger for dark backgrounds.
5. Calculate contrast for text, muted text and key colors against their backgrounds.
6. Adjust any failing pair and re-check before output.

## Output format
Respond with:
- **Dark Palette** — Hex value for each role
- **Contrast Check** — Ratios for key pairs with pass or fail
- **Changes Made** — Why each color was shifted
- **Watch Outs** — Things to check by eye

## Example
**Input:** `Light palette with background #FFFFFF, surface #F4F6F8, text #1B1F24, muted #5A6472, primary #2563EB, danger #D92D20, target AA.`
**Output:** A six-color dark palette, contrast ratios for text, muted text, primary and danger all passing 4.5:1, reasons for each shift, and visual checks.

## Rules
- Never output a pair without calculating its contrast ratio.
- Never use pure black and pure white together for large areas.
- Keep brand hue recognizable when colors are lightened.
- State the standard used, such as WCAG AA 4.5:1 for text.
- Say when a pair fails and fix it before finishing.

Files in this skill

  • README.md4.5 KB
  • SKILL.md2.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.