WALLIS WILLIAMS DESIGN
Testing out css borders/shadow.
The One Color Decision That Makes a UI Look Expensive
Every example from the article rendered live. Switch the theme above. The tokens rewire the entire page instantly.
Tinted Neutrals
Pure grey disconnects the brand from the surface. Every neutral, background, border and muted text carries a trace of the brand hue. Not visibly. Just enough to lean the same direction.
bg
surface
border
muted
brand
Shadows That Carry Temperature
Pure black shadows read as Photoshop effects. A shadow is the absence of light. Its color is shaped by the ambient temperature of the surface. Blue surface, blue shadow. Warm surface, amber shadow.
0 4px 16px rgba(0,0,0,0.08)
0 4px 16px rgba(37,99,235,0.06)
0 0 0 1px rgba(37,99,235,0.04)
0 4px 16px rgba(120,80,40,0.05)
0 0 0 1px rgba(120,80,40,0.04)
Text Color Hierarchy
Pure black on white is the accessibility floor. Not the target. Near-black with a hue shift, muted text that leans warm or cool. The contrast budget stays intact. Temperature gets added inside it.
The Full Card Component
All three decisions applied together. Tinted background. Brand-tinted
shadow. Temperature-matched text. A badge using
brand-subtle
instead of a generic tint.
| Token | Warm | Cool | Dark | Purpose |
|---|---|---|---|---|
| --color-bg | #F7F3EE | #F4F6FA | #0F1117 | Page background |
| --color-surface | #FDFAF7 | #FAFBFD | #161B27 | Card, panel |
| --color-border | #E8DDD2 | #DDE3EE | #1E2738 | Dividers, outlines |
| --color-text | #1A1410 | #0F1520 | #E8EDF5 | Primary text |
| --color-brand | #C4502A | #2563EB | #5B8DEF | CTA, links, accents |
| --color-brand-subtle | #F5EAE4 | #EEF3FF | #1A2540 | Badges, highlights |
Dark Mode. Tinted, Not Black.
Zinc-900 is a default. It has no hue and no temperature. On dark backgrounds, shadows become glows. The hairline border reads as luminance separation rather than depth.
Live System. Switch Themes Above.
Every token from the article. Background, surface, border, text hierarchy, brand-subtle badge, brand-tinted shadow. The theme switcher rewires it all through CSS custom properties.
The Greyscale Test
Desaturate the screen. If hierarchy still reads, the temperature work is invisible and correct. If the design collapses, the tints were doing structural work they should not be doing. Color temperature is a layer on top of a sound greyscale system.
