Commit 52050cf
committed
fix(gallery): force light color-scheme in MCP iframe + A2UI host
The MCP Apps bundle declared color-scheme: light dark but the CSS variables
only had light-mode values, leaving dark-mode OS users with dark text on a
dark UA canvas. The @a2ui/lit renderer respected prefers-color-scheme too,
muting "Latest" and subtitles into the gallery's light card background.
Force light mode in both surfaces and give the MCP body an opaque white
background so the iframe canvas can't bleed through.1 parent e2bcd3a commit 52050cf
3 files changed
Lines changed: 124 additions & 114 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
286 | 286 | | |
287 | 287 | | |
288 | 288 | | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
289 | 293 | | |
290 | 294 | | |
291 | 295 | | |
| |||
370 | 374 | | |
371 | 375 | | |
372 | 376 | | |
| 377 | + | |
373 | 378 | | |
374 | 379 | | |
375 | 380 | | |
| |||
0 commit comments