HomeStylesTemplates
StyleKit
StylesTemplates
01 Elevation02 Four rules03 Contrast04 Prompts05 Do / Don't06 References07 FAQ

StyleKit · Dark interface spec & prompts

Dark Mode UI 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.

8 prompts5 surfacesWCAG verifiedEN / ZH
01#09090b
02#131316
03#1a1a20
04#222228
05#2a2a31
surface scale
01

Elevation: lightness is altitude

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.

section
Spec 02card

Card

#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.

02

The four rules

Write these four into any prompt and AI-generated dark UIs jump a quality tier. Each rule ships with its proof.

section
01

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.

#000000

#09090b

02

Lighter, less saturated color

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.

blue-6003.55 FAIL
blue-4007.83 AAA
03

Dim the white, keep three tiers

Pure #fff glares on dark. Use #fafafa for primary, #d4d4d8 for body, #a1a1aa for captions — three tiers carry an entire page, all clearing AAA.

primary 19.06

body 15.20

caption 7.76

04

One accent, spent carefully

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.

03

Verified contrast

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
AaFG / BGRatioWCAGUse
Aa#fafafa / #09090b19.06AAAPrimary text on base
Aa#d4d4d8 / #13131612.55AAABody text on panels
Aa#60a5fa / #09090b7.83AAAAccent text, links
Aa#a1a1aa / #09090b7.76AAACaptions on base
Aa#a1a1aa / #1313167.24AAACaptions on panels
Aa#3b82f6 / #09090b5.41AAAccent fills, icons
Aa#71717a / #09090b4.12AA-LGLarge dim labels only, 18px+
Aa#52525b / #09090b2.57FAILToo dim — never ship this
04

The eight prompts

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.

section
01Dark Mode DashboardCHATGPT / CLAUDE—

Design 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.

02Dark Theme App for v0V0+
03Dark Mode for CursorCURSOR+
04Dark Mode for ClaudeCLAUDE+
05Dark Mode SaaS Landing PageCHATGPT / CLAUDE+
06Dark Mode Mobile App for ChatGPTCHATGPT / CLAUDE+
07Dark Mode Login Page for ClaudeCLAUDE+
08Dark Mode Pricing Page for CursorCURSOR+
05

Do and don't

Straight from StyleKit's dark-mode style definition. When a generation drifts, paste the violated line back to the AI.

section

Do

  • +Use dark backgrounds bg-slate-900, bg-gray-900, bg-[#0f172a]
  • +Cards use slightly lighter backgrounds bg-slate-800/50, brighten on hover hover:bg-slate-800
  • +Borders use low contrast border-slate-700, illuminate on hover hover:border-slate-500
  • +Text uses text-slate-100 primary, text-slate-400 secondary, secondary text brightens on group-hover group-hover:text-slate-300
  • +Highlight colors maintain high saturation blue-500, green-500
  • +Buttons use inner glow shadow-[inset_0_1px_0_rgba(255,255,255,0.15)] to simulate dark light source
  • +Buttons must have active:scale-[0.98] tactile press confirmation
  • +All interactive elements must have focus:ring-2 focus:ring-offset-2 focus:ring-offset-slate-900
  • +Card hover with hover:-translate-y-0.5 + dark outer shadow for elevation
  • +Use rounded-lg or rounded-xl corners

Don't

  • −Do not use pure white text text-white (too harsh)
  • −Do not use high-contrast borders
  • −Do not use pure black background #000000 (too dull)
  • −Do not use dark text on dark backgrounds
  • −Do not overuse highlight colors
  • −Do not use light-colored shadows (light shadows cannot convey depth on dark backgrounds)
  • −Do not omit active:scale-[0.98] on buttons (buttons need tactile confirmation, otherwise they feel like decoration)
  • −Do not use focus:ring without focus:ring-offset-slate-900 (focus ring must separate from element to be visible on dark backgrounds)
06

References

Runnable dark templates and related styles — every style page ships full tokens, component recipes, and exportable AI rules.

section

Starter templates

  • Dark Analytics DashboardGood for dark SaaS analytics prompts with KPI density, charts, and restrained accent color use.→
  • Frosted CRMUseful for layered dark surfaces, subtle glow, and richer product chrome without losing readability.→
  • Music PlayerA strong reference for immersive dark media interfaces, ambient accents, and large visual surfaces.→
  • Messaging UIHelpful for dark chat layouts, sidebars, message panes, and high-contrast collaboration tools.→

Related dark styles

  • Dark Mode→
  • Cyberpunk Neon→
  • Neon Tokyo→
  • Film Noir→
  • Gothic→
  • Dark Academia→
07

Questions, answered

section

Need a different direction? Browse all 146 design styles, or head back to the prompt library.

146 stylesAll prompts

StyleKit

A curated web design style library to help AI generate better-looking websites.

FeedbackSupport Maintenance
Explore+
StylesTemplatesAnimationsResource LibraryPromptsCollections
Learn+
FoundationsGuideRecipesChangelogBlog
Trust+
AboutContactPrivacyTermsSupport UsRefunds

(c) 2026 StyleKit. Open source project.

闄旾CP澶?025065501鍙?3

Colophon/SK — 2026

Built with the Editorial style

01FeedbackTell us what could work better02Support MaintenanceIf StyleKit helps your workflow, voluntary support helps cover servers, domains, and ongoing upkeep.

StyleKit

A curated web design style library to help AI generate better-looking websites.

GitHub Repository

Explore

StylesTemplatesAnimationsResource LibraryPromptsCollections

Learn

FoundationsGuideRecipesChangelogBlog

Dispatch

Get notified when new styles, templates and tools ship.

Stay Updated

By subscribing, you agree to our Privacy Policy and Terms.

(c) 2026 StyleKit. Open source project.

AboutContactPrivacyTermsSupport UsRefunds/陕ICP备2025065501号-3

StyleKit