mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-15 13:03:42 +00:00
Add theme-configurable HTML export colors (from PR #387)
- Add optional 'export' section to theme JSON with pageBg, cardBg, infoBg - If not specified, colors are auto-derived from userMessageBg - Add export colors to dark.json and light.json - Update theme-schema.json and TypeBox schema - Add documentation to docs/theme.md - Add margin-top back to tool-output for spacing between header and content
This commit is contained in:
parent
d612bc45f5
commit
6267720660
7 changed files with 104 additions and 6 deletions
|
|
@ -104,6 +104,27 @@ These create a visual hierarchy: off → minimal → low → medium → high →
|
|||
|
||||
**Total: 50 color tokens** (all required)
|
||||
|
||||
### HTML Export Colors (optional)
|
||||
|
||||
The `export` section is optional and controls colors used when exporting sessions to HTML via `/export`. If not specified, these colors are automatically derived from `userMessageBg` based on luminance detection.
|
||||
|
||||
| Token | Purpose |
|
||||
|-------|---------|
|
||||
| `pageBg` | Page background color |
|
||||
| `cardBg` | Card/container background (headers, stats boxes) |
|
||||
| `infoBg` | Info sections background (system prompt, notices, compaction) |
|
||||
|
||||
Example:
|
||||
```json
|
||||
{
|
||||
"export": {
|
||||
"pageBg": "#18181e",
|
||||
"cardBg": "#1e1e24",
|
||||
"infoBg": "#3c3728"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
## Theme Format
|
||||
|
||||
Themes are defined in JSON files with the following structure:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue