feat(plugin): expose semantic theme tokens (#3898)

This commit is contained in:
Omer Cohen
2026-08-27 08:15:22 +00:00
committed by GitHub
parent b0ce40804d
commit f82886f284
5 changed files with 25 additions and 0 deletions
+5
View File
@@ -177,8 +177,13 @@ Recreate styles when `theme` or `layout.compact` changes.
| `theme.colors.foreground` | Every primary `Text` | Titles and body copy |
| `theme.colors.foregroundMuted` | Secondary `Text` | Labels and supporting copy |
| `theme.colors.surface0` | Root view | Panel background |
| `theme.colors.surface1` | Raised surfaces | Cards and panels |
| `theme.colors.surface2` | Control surfaces | Inputs and secondary controls |
| `theme.colors.border` | Surface boundaries | Borders and dividers |
| `theme.colors.accent` | Primary action fills | Buttons and selected states |
| `theme.colors.accentForeground` | Text on an accent fill | Button labels |
| `theme.colors.statusSuccess` | Success feedback | Success messages and indicators |
| `theme.colors.statusWarning` | Warning feedback | Warning messages and indicators |
| `theme.colors.statusDanger` | Failure copy | Error messages and destructive text |
| `layout.compact` | Padding and stacking | `true` on mobile and narrow windows |
| `layout.platform` | Platform-specific behavior | `ios`, `android`, or `web` |