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 |
|---|---|---|
| .. | ||
| accordion.tsx | Loading commit data... | |
| alert-dialog.tsx | Loading commit data... | |
| alert.tsx | Loading commit data... | |
| aspect-ratio.tsx | Loading commit data... | |
| avatar.tsx | Loading commit data... | |
| badge.tsx | Loading commit data... | |
| breadcrumb.tsx | Loading commit data... | |
| button-group.tsx | Loading commit data... | |
| button.tsx | Loading commit data... | |
| calendar.tsx | Loading commit data... | |
| card.tsx | Loading commit data... | |
| carousel.tsx | Loading commit data... | |
| chart.tsx | Loading commit data... | |
| checkbox.tsx | Loading commit data... | |
| collapsible.tsx | Loading commit data... | |
| combobox-input.tsx | Loading commit data... | |
| combobox.tsx | Loading commit data... | |
| command.tsx | Loading commit data... | |
| context-menu.tsx | Loading commit data... | |
| dialog.tsx | Loading commit data... | |
| direction.tsx | Loading commit data... | |
| drawer.tsx | Loading commit data... | |
| dropdown-menu.tsx | Loading commit data... | |
| empty.tsx | Loading commit data... | |
| field.tsx | Loading commit data... | |
| form.tsx | Loading commit data... | |
| hover-card.tsx | Loading commit data... | |
| input-group.tsx | Loading commit data... | |
| input-otp.tsx | Loading commit data... | |
| input.tsx | Loading commit data... | |
| item.tsx | Loading commit data... | |
| kbd.tsx | Loading commit data... | |
| label.tsx | Loading commit data... | |
| markdown.tsx | Loading commit data... | |
| menubar.tsx | Loading commit data... | |
| native-select.tsx | Loading commit data... | |
| navigation-menu.tsx | Loading commit data... | |
| pagination.tsx | Loading commit data... | |
| popover.tsx | Loading commit data... | |
| progress.tsx | Loading commit data... | |
| radio-group.tsx | Loading commit data... | |
| resizable.tsx | Loading commit data... | |
| scroll-area.tsx | Loading commit data... | |
| select.tsx | Loading commit data... | |
| separator.tsx | Loading commit data... | |
| sheet.tsx | Loading commit data... | |
| sidebar.tsx | Loading commit data... | |
| skeleton.tsx | Loading commit data... | |
| slider.tsx | Loading commit data... | |
| sonner.tsx | Loading commit data... | |
| spinner.tsx | Loading commit data... | |
| switch.tsx | Loading commit data... | |
| table.tsx | Loading commit data... | |
| tabs.tsx | Loading commit data... | |
| textarea.tsx | Loading commit data... | |
| titled-card.tsx | Loading commit data... | |
| toggle-group.tsx | Loading commit data... | |
| toggle.tsx | Loading commit data... | |
| tooltip.tsx | Loading commit data... |