Make solid warning pills bright yellow#4645
Merged
soulgalore merged 1 commit intomainfrom May 4, 2026
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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