Backgrounds & Surfaces
Exploring page and component background treatments beyond solid colors: gradients, textures, glassmorphism, and animated backgrounds.
src/tokens/extensions/surfaces.css
Proposed Surface Tokens
New tokens to add texture and depth to surfaces.
| Token | Values |
|---|---|
--surface-texture |
none | noise | grain | dots | lines |
--surface-texture-opacity |
0.05 (default) |
--bg-gradient |
linear-gradient(...) |
--glass-blur |
0 | 8px | 16px |
Gradient Backgrounds
Various gradient techniques for hero sections, cards, and page backgrounds.
Linear
135deg diagonal blend
Radial
Circle from top-left
Conic
Color wheel effect
Mesh
Multiple radial overlays
Animated
Shifting background position
Layered
Highlight + base gradient
Texture Patterns
Subtle texture overlays that add depth and character to surfaces.
None
Clean, flat surface
Noise
SVG turbulence filter
Dots
Repeating dot pattern
Grid
Diagonal grid lines
Lines
Fine diagonal lines
Grain
Film grain effect
Glassmorphism
Frosted glass effect using backdrop-filter. Adjust the blur amount with the slider.
Glass Card
Semi-transparent with blur backdrop
Frosted
Works best on colorful backgrounds
Layered
Border adds subtle definition
Animated Gradients
Subtle movement for hero sections and featured content.
Hue Rotate
Filter-based color cycling
Pulse Glow
Breathing radial highlight
Wave
Rotating ellipse overlay
Page Background Preview
Test different page-level background treatments.
Content Card
This card floats above the page background. Try different backgrounds to see how they affect the overall feel.