Never use pure black
#000000 smears on OLED panels and erases every shadow and elevation cue. Start at #09090b so the interface keeps room below itself.
StyleKit · Dark interface spec & prompts
Dark mode design is more than inverting colors. It requires careful attention to surface elevation (using lighter shades of dark for raised elements), reduced saturation for colored elements, proper contrast ratios (minimum 4.5:1 for text), and strategic use of accent colors. A well-executed dark mode reduces eye strain in low-light environments while maintaining visual hierarchy and readability.
Light UIs express elevation with shadows. On dark canvases shadows are nearly invisible, so lightness does the job — the closer a surface sits to the user, the lighter it gets. Select a layer to read its value and role.
sectionCard
#131316
Resting cards and panels. One step lighter than base, separated by a 1px border, not shadow.
Rule: each step is ~3-4% lighter than the one below, separated by a 1px low-contrast border. Five layers cover any interface.
Write these four into any prompt and AI-generated dark UIs jump a quality tier. Each rule ships with its proof.
section#000000 smears on OLED panels and erases every shadow and elevation cue. Start at #09090b so the interface keeps room below itself.
Saturated light-theme colors vibrate against dark canvases. Shift text and icons one step lighter — blue-500 becomes blue-400 — and keep 500 for solid fills only.
Pure #fff glares on dark. Use #fafafa for primary, #d4d4d8 for body, #a1a1aa for captions — three tiers carry an entire page, all clearing AAA.
A dark interface is 90% grayscale. The accent goes to the primary action, the active state, and one key metric. Color everywhere is emphasis nowhere.
Every ratio below is computed with the WCAG relative-luminance formula. Paste the table into a prompt and the AI has no excuse for unreadable text.
section| Aa | FG / BG | Ratio | WCAG |
|---|---|---|---|
| Aa | #fafafa / #09090b | 19.06 | AAA |
| Aa | #d4d4d8 / #131316 | 12.55 | AAA |
| Aa | #60a5fa / #09090b | 7.83 | AAA |
| Aa | #a1a1aa / #09090b | 7.76 | AAA |
| Aa | #a1a1aa / #131316 | 7.24 | AAA |
| Aa | #3b82f6 / #09090b | 5.41 | AA |
| Aa | #71717a / #09090b | 4.12 | AA-LG |
| Aa | #52525b / #09090b | 2.57 | FAIL |
Each one carries concrete hex values, elevation steps, and contrast constraints — dashboards, SaaS, mobile, auth, pricing. Expand to read, copy, and paste straight into ChatGPT, Claude, Cursor, or v0.
sectionDesign a dark mode analytics dashboard. Background colors: #0a0a0a for base, #141414 for cards, #1e1e1e for elevated elements. Text: #f5f5f5 for primary, #a3a3a3 for secondary. Use a single accent color (blue #3b82f6) for interactive elements and data highlights. Cards should have subtle 1px borders in #262626. Charts should use the accent color with varying opacity for data series. Ensure all text meets WCAG AA contrast standards.
Straight from StyleKit's dark-mode style definition. When a generation drifts, paste the violated line back to the AI.
sectionDo
Don't
Runnable dark templates and related styles — every style page ships full tokens, component recipes, and exportable AI rules.
sectionStarter templates
Related dark styles
Need a different direction? Browse all 146 design styles, or head back to the prompt library.