Soft UI Download .md

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
TokenSlateCreamSoft Dark
Surface#E0E5EC#F0F3F8#292D32
Light shadow#FFFFFF#FFFFFFrgba(255,255,255,.06)
Dark shadow#A3B1C6#C5CEDDrgba(0,0,0,.55)
Convex from / to#E9EEF5 / #D5DAE1#F7F9FC / #E3E8F0#2E3238 / #24282C
Text / muted#3D4852 / #556270#3D4852 / #556270#E6EAF0 / #A9B2BD

LED accents

Electric Blue, active and focus Mint, on and success Amber, warning Red, error

Elevation scale

raised-1
4 / 8
raised-2
6 / 12
raised-3
9 / 16
raised-4
14 / 28
raised-5
20 / 40
inset-1
2 / 4
inset-2
4 / 8
inset-3
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.

Raised
drop shadows
Inset
inner shadows
Convex
light to dark
Concave
dark to light
Flat
no shadow
RadiusValueUse
sm8pxChips, tags
md12pxInputs
lg16pxButtons
xl24pxCards
2xl32pxModals
pill9999pxToggles

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.

Display, 40 / 48, 700, -0.02emSoft surfaces, sharp type
H1, 32 / 40, 700, -0.015emPressed out of the page
H2, 24 / 32, 700, -0.01emCarved into the surface
Body, 16 / 26, 500, 0.005emWeight 500 keeps strokes solid on a low-contrast gray surface.
Small, 14 / 22, 500, 0.01emSecondary copy uses the muted token at 4.9:1 or better.
Label, 13 / 16, 600, 0.04emEmail address
Caption, 12 / 16, 500, 0.02emNever lighter than the muted token.

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

Enter a full email address, such as [email protected].

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.

Toggle to see borders appear and shadows tighten across this whole page.
CriterionMitigation
1.4.1 Use of ColorPair LED and accent with an icon, label or position change
1.4.3 ContrastDedicated text tokens, 4.5:1 or better
1.4.11 Non-text ContrastBoundary border in high-contrast mode, visible labels on every control
2.4.7 Focus Visible2px accent ring with a 3px surface gap
2.5.5 Target Size44px minimum hit area
2.3.3 MotionHonor prefers-reduced-motion

Dark mode recalibration

ParameterLightDark
Highlight#FFFFFFrgba(255,255,255,.06)
Ambient#A3B1C6rgba(0,0,0,.55)
Offset multiplier1.00.85
Blur multiplier1.01.15
Glow opacity0.450.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; }
}