Skip to content

Make solid warning pills bright yellow#4645

Merged
soulgalore merged 1 commit intomainfrom
warning-pill-yellow
May 4, 2026
Merged

Make solid warning pills bright yellow#4645
soulgalore merged 1 commit intomainfrom
warning-pill-yellow

Conversation

@soulgalore
Copy link
Copy Markdown
Member

Score / threshold pills with .label.warning (Coach advice rows like "Avoid using incorrect mime types", Web Vitals threshold-coloured TTFB / CLS pills, the performance-score
column on the pages list) read as orange-brown rather than yellow. The $color--warning palette value sits at amber/yellow-700 because it doubles as a foreground text colour
against tinted-pale-yellow backgrounds elsewhere in the report — it has to be dark enough to keep AA contrast on a near-white card.

Solid pills with white text don't have that constraint, so override .label.warning specifically: bright yellow-400 (#facc15) background with very dark yellow (#422006) text
gives a high-contrast pill that's unambiguously yellow. The rest of the warning palette (tile bg/border, foreground text) is left alone.

Co-authored-by: Claude Opus 4.7 (1M context) noreply@anthropic.com

  Score / threshold pills with .label.warning (Coach advice rows like "Avoid using incorrect mime types", Web Vitals threshold-coloured TTFB / CLS pills, the performance-score
   column on the pages list) read as orange-brown rather than yellow. The $color--warning palette value sits at amber/yellow-700 because it doubles as a foreground text colour
   against tinted-pale-yellow backgrounds elsewhere in the report — it has to be dark enough to keep AA contrast on a near-white card.

  Solid pills with white text don't have that constraint, so override .label.warning specifically: bright yellow-400 (#facc15) background with very dark yellow (#422006) text
  gives a high-contrast pill that's unambiguously yellow. The rest of the warning palette (tile bg/border, foreground text) is left alone.

  Co-authored-by: Claude Opus 4.7 (1M context) noreply@anthropic.com
@soulgalore soulgalore merged commit 0024b7c into main May 4, 2026
13 checks passed
@soulgalore soulgalore deleted the warning-pill-yellow branch May 4, 2026 00:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant