Skip to content

Commit a829e33

Browse files
committed
fix: keep danger foreground at vivid red-700 instead of deepening
Deepening danger to red-800 only bought marginal warning/danger separation while darkening the red for the red-blind viewers the change is meant to help (protanope-perceived lightness drops, and its distance from neutral dark text shrinks). red-700 is the brightest AA-safe red on the tint; warning-vs-danger is disambiguated by icons + text at the component layer, not by colour.
1 parent 69b2532 commit a829e33

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

src/app/globals.css

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,11 @@
158158

159159
/* Status: bright semantic utility tokens — deliberately outside the two-colour
160160
thesis. Colour-blind-safe: success is emerald (blue-shifted green, not pure
161-
green) so it separates from danger red under deuteranopia/protanopia; danger
162-
is deepened to red-800 so its luminance parts from warning amber. */
161+
green) so it separates from danger red under deuteranopia/protanopia. Danger
162+
stays a vivid red-700 rather than a deeper red — darkening would only buy a
163+
little warning/danger separation while dimming the red for the red-blind
164+
viewers we're helping; warning-vs-danger is disambiguated by icons + text at
165+
the component layer, not by colour. */
163166
--status-info-foreground: oklch(0.546 0.245 262.881); /* blue-600 */
164167
--status-info: oklch(0.97 0.014 254.604); /* blue-50 */
165168
--status-info-border: oklch(0.882 0.059 254.128); /* blue-200 */
@@ -169,7 +172,7 @@
169172
--status-warning-foreground: oklch(0.555 0.163 48.998); /* amber-700 */
170173
--status-warning: oklch(0.987 0.022 95.277); /* amber-50 */
171174
--status-warning-border: oklch(0.924 0.12 95.746); /* amber-200 */
172-
--status-danger-foreground: oklch(0.444 0.177 26.899); /* red-800 */
175+
--status-danger-foreground: oklch(0.505 0.213 27.518); /* red-700 */
173176
--status-danger: oklch(0.971 0.013 17.38); /* red-50 */
174177
--status-danger-border: oklch(0.885 0.062 18.334); /* red-200 */
175178
}

0 commit comments

Comments
 (0)