Commit 9b860be
committed
Port viewer-theme from production Lit composer, fix card bg and heading margins
- Add viewerTheme.ts: exact port of the production viewer-theme used by
A2UIViewer on a2ui-composer.ag-ui.com (from private_a2ui_demo repo)
- Add appTheme.ts: the app-level theme used for chat view (for future use)
- Switch adapter to use viewerTheme instead of composerTheme
- Fix card background in gallery: define --a2ui-card-bg at :root level
and reference it via --p-100 so the gallery wrapper can override it
to transparent (matching Lit's themed-a2ui-surface behavior)
- Fix heading margins: add layout-m-0 to markdown.h4 and markdown.h5
to prevent browser default margins on h4/h5 elements1 parent d163b2c commit 9b860be
4 files changed
Lines changed: 760 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
69 | 70 | | |
70 | 71 | | |
71 | 72 | | |
| |||
182 | 183 | | |
183 | 184 | | |
184 | 185 | | |
185 | | - | |
| 186 | + | |
186 | 187 | | |
187 | 188 | | |
188 | 189 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
0 commit comments