Dark Mode Surface & Contrast Tool
Map layered dark mode background surfaces with elevation highlights inspired by Material Design elevation principles.
: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?
How does elevation work in dark mode?
Can I use these surface tokens in shadcn/ui?
Related Design & Color Instruments
Procedural Palette Generator
Generate balanced 5-color palettes based on geometric angles on the HSL color wheel with lockable color slots.
Image Palette Extractor
Extract 6 dominant theme colors from any uploaded image using Web Worker K-Means clustering off the main thread.
CSS Gradient Maker
Design linear and radial CSS gradients with 360-degree angle control, multi-stop adjustments, and instant code export.
Color Shades Step Generator
Generate smooth linear step interpolations from any base color towards pitch black (#000000).