fix(ui): restrain dark-mode pills (chip wash + lower pill bg opacity)#61
Merged
Conversation
User feedback after PR #60: the "warm cream" selected chip was still a near-white block, and the emerald credits pill was still glowing at 22% saturation. Both read as bright UI alerts in an otherwise muted dark palette — wrong for the dark-mode aesthetic regardless of the hex codes under them. Selected DB chip: replace cream-on-black with an indigo wash. Background `rgba(99,102,241,0.18)`, text `#c7d2fe` (indigo-200), inset 1px indigo border via box-shadow so the affordance comes from brand color rather than brute-force luminance contrast. Still visually distinct from the unselected `#17181c` slate chips; quiet against the `#0a0a0a` page. Grade/status pill backgrounds: halve opacity (22-28% → 10-16%) across emerald / lime / amber / orange / red. Text colors mostly preserved (lime gets bumped to #a3e635 for the lower-opacity bg). Pills now read as ambient indicators with colored text floating on near-black, not as glowing chips. Same selector as before — applies to the credits pill in the navbar and the grade pill on results/account/history pages.
ringo380
added a commit
that referenced
this pull request
May 14, 2026
PR #61 dimmed the grade-pill compound rule but only matched the bg-{color}-100.text-{color}-700 combination. The anon trial banner ("50 of 50 free grades remaining this session") in index.html uses bg-emerald-50.text-emerald-700 — different class combo, slipped past the rule and continued rendering at light-mode saturation. Extend each color's compound rule to cover the -50 variant too (emerald, lime, amber, orange, red). Add emerald-50.text-emerald-900 since query_with_context.html uses that pair. Now matches the ambient-pill treatment everywhere those classes appear: trial banner, grade-A surfaces in compare_results / contextualized results, etc.
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.
Why
User feedback on PR #60: the "warm cream" selected chip was still a near-white block (95% luminance vs ~4% page), and the emerald credits pill was still glowing at 22% saturation. Both read as bright UI alerts in an otherwise muted dark palette — wrong for the aesthetic regardless of the hex codes.
Two scoped changes
1. Selected DB chip → indigo wash
Affordance now comes from brand indigo wash + inset border, not luminance contrast. Still visually distinct from the
#17181cunselected chips.2. Grade/status pill backgrounds: halve opacity
rgba(16,185,129,0.22)rgba(16,185,129,0.10)rgba(132,204,22,0.22)rgba(132,204,22,0.10)rgba(217,119,6,0.25)rgba(217,119,6,0.12)rgba(234,88,12,0.28)rgba(234,88,12,0.14)rgba(239,68,68,0.28)rgba(239,68,68,0.14)Text colors preserved (lime bumped to
#a3e635to compensate for the dimmer bg). Pills now read as ambient indicators with colored text floating on near-OLED, not saturated chips.Verification
html.dark .dark\:bg-white(0,2,1) so the override still wins.Test plan
50/50 credits/50 of 50 free grades remaining…) reads as ambient info, not a glowing alert/account/and/history/is restrained but distinct from grade B/C/D/F