Commit e67da93
fix(webapp): give the primary button and the switch one shared accent
The switch's checked track and the primary button were two different purples:
the track had just moved onto the link token (lavender-400 on the dark themes)
while the button was still a raw indigo-600, so they sat side by side on the
account page visibly out of step.
They can't both read --color-text-link, because a fill and a text color want
opposite things. White button text needs 4.5:1 against the fill, which pins
the fill dark; link text on a near-black page needs 4.5:1 against *that*,
which pushes the link light. So this adds --color-accent-fill, in the same
spirit as the existing error/success fill tokens, and points both at it.
lavender-600 is a straight swap for indigo-600 - white on it measures 6.31:1
against the old 6.29:1 - and it's the value the light themes already use for
link text, so link, button and switch all agree there. The switch's white
thumb improves from 3.76:1 to 6.31:1 against the track.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent 838c10f commit e67da93
3 files changed
Lines changed: 17 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
65 | 68 | | |
66 | 69 | | |
67 | 70 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
106 | 105 | | |
107 | 106 | | |
108 | 107 | | |
109 | 108 | | |
110 | 109 | | |
111 | 110 | | |
112 | | - | |
113 | | - | |
114 | | - | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
115 | 114 | | |
116 | 115 | | |
117 | 116 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
153 | 160 | | |
154 | 161 | | |
155 | 162 | | |
| |||
0 commit comments