Commit 740ffcd
fix(newhome): make the auction panel follow the theme (#255)
The homepage's theme pass converted the newhome components from literal
near-blacks to semantic tokens, but it missed the auction card's own ground: it
still painted `bg-[linear-gradient(180deg,#181410,#0f0d0b)]` under a 50px black
drop shadow. On a light page every panel around it inverted and the auction
stayed a dark slab.
Adopts the surface of the proposals/feed panel it sits beside in GovSection
(`rounded-2xl border-border bg-card p-5`, no shadow), keeping the gold border as
the accent that tells the two apart. Measured after: both panels resolve to the
same background in both themes.
Four more leftovers in the same file, all the same class of bug:
- countdown digits were `bg-black`; now `bg-foreground/10`, which is what the
`--` fallback three lines below already used
- the idle status dot and the non-leading rank number were a literal `#737373`;
now `var(--muted-foreground)`
- the leaderboard panel was `border-white/[0.07] bg-black/25` — an invisible
border over a grey slab on white; now `border-border bg-muted/40`
- the crown chip read `text-foreground` while sitting on a deliberately dark
overlay, so it painted near-black text on a near-black chip the moment the
page went light; now `text-white`, like the #id chip beside it
The bid figure keeps its gold ramp but darkens it in light mode. Clipped into
text, #f7c948 lands near 1.6:1 on a white card — the trap stake-ui already
documents — which would have left the card's most important number as its least
readable. Same ramp shape, amber stops, as classes so each theme carries its
own.
Deliberately unchanged: the two chips over the Gnar artwork stay dark in both
themes, and the live badge keeps its literal gold fill with dark ink. Both read
on either ground, which is the rule the theme pass set.
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent 2a1f850 commit 740ffcd
1 file changed
Lines changed: 32 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
119 | 120 | | |
120 | 121 | | |
121 | 122 | | |
122 | | - | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
123 | 129 | | |
124 | 130 | | |
125 | 131 | | |
| |||
142 | 148 | | |
143 | 149 | | |
144 | 150 | | |
145 | | - | |
| 151 | + | |
146 | 152 | | |
147 | 153 | | |
148 | 154 | | |
| |||
152 | 158 | | |
153 | 159 | | |
154 | 160 | | |
155 | | - | |
| 161 | + | |
156 | 162 | | |
157 | 163 | | |
158 | 164 | | |
| |||
174 | 180 | | |
175 | 181 | | |
176 | 182 | | |
177 | | - | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
178 | 190 | | |
179 | | - | |
| 191 | + | |
180 | 192 | | |
181 | 193 | | |
182 | 194 | | |
| |||
188 | 200 | | |
189 | 201 | | |
190 | 202 | | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
195 | 210 | | |
196 | 211 | | |
197 | 212 | | |
| |||
210 | 225 | | |
211 | 226 | | |
212 | 227 | | |
213 | | - | |
| 228 | + | |
214 | 229 | | |
215 | 230 | | |
216 | 231 | | |
217 | 232 | | |
218 | 233 | | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
219 | 237 | | |
220 | | - | |
221 | | - | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
222 | 242 | | |
223 | 243 | | |
224 | 244 | | |
| |||
0 commit comments