Theming · SU-164 · SU-165
Dark surfaces are dark gray, and every pair passes in dark
Flip between the version shibroUI flags and the one it ships. The marks and callouts show what changes.
-
Page and card
#000 and #000, shadow lost -
Muted text
#555 on #000 = 2.8:1
-
Page, then a raised card
#121214 → #1c1c20 -
Muted text
#a1a1aa = 6.6:1
Invoice INV-2041 · due Oct 12
Invoice INV-2041 · due Oct 12
-
Status badge
light tint glares on dark
-
Status badge
#6ee7a8 = 10.0:1 + icon
What changes
- Bad
- Pure black page and card (the shadow vanishes), muted text at
2.8:1, and a pastel light-theme badge that glares. - Good
- Dark gray page, a lighter raised card, muted text at
6.6:1, and a deep-tint badge at10.0:1that also carries an icon.
The rules
-
SU-164
Dark surfaces are dark gray, and elevation gets lighter. Base: about
#121212–#1c1c1e(OKLCH L ≈ 0.16–0.22). Never#000for app chrome; black is fine for media viewers. Elevation: each level is a lighter surface (+0.03–0.05 L), because shadows barely show on dark. Text: body text about 87–92% lightness, not pure white. Muted text still ≥ 4.5:1. ❌ A#000page with#000cards and a shadow nobody can see. ✅ A#121214page and#1c1c20cards with a 1px border. -
SU-165
Every pair passes in both schemes. Every text, icon, border and focus pair meets its target in light and dark. Status badges are re-tuned for dark: light text on a deep, low-chroma tint, not the light theme's pale tint. Accents get lighter and less saturated in dark (L ≈ 0.70–0.80). Apple: aim for 7:1 on small text in custom colors in dark.