Neumorphism design language system
One soft surface, one light from the top left, two shadows per element. Tokens for CSS, Tailwind and Figma, with accessibility fallbacks and a dark theme.
Design philosophy
The interface is one sheet of soft, matte material. Nothing sits on it; everything is formed from it.
Raised
Pushed outward. Catches light top-left, casts shadow bottom-right. Available and clickable.
Inset
Pushed inward. Top-left rim in shadow. Pressed, active or editable.
Flat
Untouched material. Disabled or purely structural regions.
Tone: futuristic, tactile, soft, seamless, minimalist. Principles: one light direction; one material; depth encodes state; color is a signal, not decoration; shadows never carry meaning alone.
Light source and color tokens
Light sits top-left at 145deg. Highlight shadows go to (-d, -d), ambient shadows to (+d, +d), blur is about twice the offset, spread is always 0.
raised = d d b ambient, -d -d b highlightinset = inset d d b ambient, inset -d -d b highlight| Token | Slate | Cream | Soft Dark |
|---|---|---|---|
| Surface | #E0E5EC | #F0F3F8 | #292D32 |
| Light shadow | #FFFFFF | #FFFFFF | rgba(255,255,255,.06) |
| Dark shadow | #A3B1C6 | #C5CEDD | rgba(0,0,0,.55) |
| Convex from / to | #E9EEF5 / #D5DAE1 | #F7F9FC / #E3E8F0 | #2E3238 / #24282C |
| Text / muted | #3D4852 / #556270 | #3D4852 / #556270 | #E6EAF0 / #A9B2BD |
LED accents
Elevation scale
4 / 8
6 / 12
9 / 16
14 / 28
20 / 40
2 / 4
4 / 8
6 / 12
Z-index: base 0, raised 10, sticky 100, dropdown 200, overlay 300, modal 400, toast 500. Higher z-index always means higher elevation.
Surface math
Fill equals background. Gradients run at 145deg and stay within about 4% lightness of the surface.
drop shadows
inner shadows
light to dark
dark to light
no shadow
| Radius | Value | Use |
|---|---|---|
| sm | 8px | Chips, tags |
| md | 12px | Inputs |
| lg | 16px | Buttons |
| xl | 24px | Cards |
| 2xl | 32px | Modals |
| pill | 9999px | Toggles |
Edge rules
Minimum radius is 8px, and at least the shadow offset.
Never use overflow: hidden on a parent with outer shadows.
Raised inside raised only once. Never raised inside inset.
Core tokens
:root {
--neu-surface: #E0E5EC; --neu-light: #FFFFFF; --neu-dark: #A3B1C6;
--neu-o: 1; --neu-b: 1; /* offset and blur multipliers */
--neu-raised-3: calc(9px*var(--neu-o)) calc(9px*var(--neu-o)) calc(16px*var(--neu-b)) var(--neu-dark),
calc(-9px*var(--neu-o)) calc(-9px*var(--neu-o)) calc(16px*var(--neu-b)) var(--neu-light);
--neu-inset-2: inset calc(4px*var(--neu-o)) calc(4px*var(--neu-o)) calc(8px*var(--neu-b)) var(--neu-dark),
inset calc(-4px*var(--neu-o)) calc(-4px*var(--neu-o)) calc(8px*var(--neu-b)) var(--neu-light);
--neu-focus-ring: 0 0 0 3px var(--neu-surface), 0 0 0 5px var(--neu-accent);
}
Tailwind v3
boxShadow: {
'neu-raised-2': 'var(--neu-raised-2)', 'neu-raised-3': 'var(--neu-raised-3)',
'neu-inset-2': 'var(--neu-inset-2)',
'neu-raised-focus': 'var(--neu-raised-2), var(--neu-focus-ring)',
},
borderRadius: { 'neu-md': '12px', 'neu-lg': '16px', 'neu-xl': '24px', 'neu-2xl': '32px' }
Typography
Inter for interface and body, Outfit for headings. Weight never drops below 500, and text uses only the two text tokens.
Interactive components
Try them. Hover lifts, click presses, Tab shows the focus ring.
Buttons
Idle raised-2, hover raised-3 with a 1px lift, pressed inset-2.
Toggles
Inset track, convex knob, LED dot, plus a text label.
Form fields
Cards, menus and modals
Card raised-3 at 24px radius, menu raised-4, modal raised-5 at 32px radius over a scrim tinted with the surface color.
Accessibility and dark mode
Soft shadows on a same-color surface measure far below the 3:1 that WCAG 1.4.11 requires, so shadow never carries meaning alone.
| Criterion | Mitigation |
|---|---|
| 1.4.1 Use of Color | Pair LED and accent with an icon, label or position change |
| 1.4.3 Contrast | Dedicated text tokens, 4.5:1 or better |
| 1.4.11 Non-text Contrast | Boundary border in high-contrast mode, visible labels on every control |
| 2.4.7 Focus Visible | 2px accent ring with a 3px surface gap |
| 2.5.5 Target Size | 44px minimum hit area |
| 2.3.3 Motion | Honor prefers-reduced-motion |
Dark mode recalibration
| Parameter | Light | Dark |
|---|---|---|
| Highlight | #FFFFFF | rgba(255,255,255,.06) |
| Ambient | #A3B1C6 | rgba(0,0,0,.55) |
| Offset multiplier | 1.0 | 0.85 |
| Blur multiplier | 1.0 | 1.15 |
| Glow opacity | 0.45 | 0.60 |
@media (prefers-contrast: more) {
:root { --neu-o: 1.15; --neu-b: .8; --neu-edge: rgba(61,72,82,.65); --neu-dark: #7F8EA6; }
.neu-btn, .neu-input, .neu-card { border: 1px solid var(--neu-edge); }
}
@media (forced-colors: active) {
.neu-btn, .neu-input, .neu-card { border: 1px solid CanvasText; box-shadow: none; }
}