GamutDesk Logo
GamutDesk

Dark Mode Surface & Contrast Tool

Map layered dark mode background surfaces with elevation highlights inspired by Material Design elevation principles.

Client-Side ArchitecturePrivate Client-Side Processing
Layered Dark Surfaces (Click Swatch to Copy)
CSS Elevation Tokens
:root {
  --surface-base: #121215;
  --surface-1: #3C3C3D; /* Cards */
  --surface-2: #4A4A4B; /* Menus */
  --surface-3: #565657; /* Modals */
  --surface-4: #646465; /* Popovers */
}

Technical Specification & Mathematical Principles

Surfaces are calculated by mixing the base dark canvas with pure white: C_elevated = mix(White, Base, alpha) where alpha represents elevation height (1dp: +5%, 4dp: +8%, 8dp: +11%, 16dp: +15%).

Verify legible contrast ratios for UI typography on elevated layers with our WCAG 2.1 color contrast checker and text contrast ratio calculator.

Frequently Asked Questions

Why should dark mode interfaces avoid pure black (#000000) for base surfaces?
Pure black on OLED displays causes purple/black motion smearing during rapid scrolling, and high contrast against white text creates excessive halation and eye fatigue. A dark slate or charcoal base (#121212) eliminates these issues.
How does elevation work in dark mode?
In light mode, elevation is signaled by cast shadows. In dark mode, shadows are largely invisible; elevation is instead depicted by lightening the surface using semi-transparent white overlays (5% to 15%).
Can I use these surface tokens in shadcn/ui?
Yes, these hex codes map directly into `bg-background`, `bg-card`, and `bg-popover` semantic tokens in Tailwind and shadcn/ui configurations.

Related Design & Color Instruments