Improve theme switching fidelity (including system preference), extend design tokens so color presets tint real surfaces—not only primary/chrome—and refactor shared badges, tables, and dashboard visuals to semantic colors. Wire VChart series colors to `--chart-*` with safe fallbacks. **Changes** - **Theme runtime** (`theme-provider.tsx`): Validate stored theme cookie; keep `resolvedTheme` in sync with DOM + `(prefers-color-scheme)`; `resetTheme` respects `defaultTheme`; memoized context value. - **Tokens** (`theme.css`): Add `--success|warning|info|neutral` (+ foregrounds) and map them under `@theme inline` for Tailwind utilities. - **Presets** (`theme-presets.css`): For non-`default` presets, derive `card`, `popover`, `muted`, `accent`, `border`, `input`, and sidebar tokens from `--primary`/`--background`; map semantic status colors to preset chart variables. - **Components**: `status-badge`, `colors` (avatars, announcements), `copy-button`, `group-badge`, `data-table` row styles, `sidebar` outline shadow (fix `var(--sidebar-border)` usage), ai-elements tool/web-preview status colors. - **Dashboard**: Latency/API helpers and overview fragments use semantic tokens; `charts.ts` reads `--chart-1`…`--chart-5` from computed styles with fallbacks; `processChartData` / `processUserChartData` accept optional `themeKey` for preset churn; chart components pass `customization.preset` and bump `VChart` keys. **Verification** - `bun run typecheck`
| Name |
Last commit
|
Last Update |
|---|---|---|
| .. | ||
| actions.tsx | Loading commit data... | |
| artifact.tsx | Loading commit data... | |
| branch.tsx | Loading commit data... | |
| canvas.tsx | Loading commit data... | |
| chain-of-thought.tsx | Loading commit data... | |
| code-block.tsx | Loading commit data... | |
| confirmation.tsx | Loading commit data... | |
| connection.tsx | Loading commit data... | |
| context.tsx | Loading commit data... | |
| controls.tsx | Loading commit data... | |
| conversation.tsx | Loading commit data... | |
| edge.tsx | Loading commit data... | |
| image.tsx | Loading commit data... | |
| inline-citation.tsx | Loading commit data... | |
| loader.tsx | Loading commit data... | |
| message.tsx | Loading commit data... | |
| node.tsx | Loading commit data... | |
| open-in-chat.tsx | Loading commit data... | |
| panel.tsx | Loading commit data... | |
| plan.tsx | Loading commit data... | |
| prompt-input.tsx | Loading commit data... | |
| queue.tsx | Loading commit data... | |
| reasoning.tsx | Loading commit data... | |
| response.tsx | Loading commit data... | |
| shimmer.tsx | Loading commit data... | |
| sources.tsx | Loading commit data... | |
| suggestion.tsx | Loading commit data... | |
| task.tsx | Loading commit data... | |
| tool.tsx | Loading commit data... | |
| toolbar.tsx | Loading commit data... | |
| web-preview.tsx | Loading commit data... |