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 |
|---|---|---|
| .. | ||
| ai-elements | Loading commit data... | |
| data-table | Loading commit data... | |
| layout | Loading commit data... | |
| ui | Loading commit data... | |
| animate-in-view.tsx | Loading commit data... | |
| auto-skeleton.tsx | Loading commit data... | |
| coming-soon.tsx | Loading commit data... | |
| command-menu.tsx | Loading commit data... | |
| config-drawer.tsx | Loading commit data... | |
| confirm-dialog.tsx | Loading commit data... | |
| copy-button.tsx | Loading commit data... | |
| date-picker.tsx | Loading commit data... | |
| datetime-picker.tsx | Loading commit data... | |
| empty-state.tsx | Loading commit data... | |
| error-state.tsx | Loading commit data... | |
| group-badge.tsx | Loading commit data... | |
| json-editor.tsx | Loading commit data... | |
| language-switcher.tsx | Loading commit data... | |
| learn-more.tsx | Loading commit data... | |
| loading-state.tsx | Loading commit data... | |
| long-text.tsx | Loading commit data... | |
| masked-value-display.tsx | Loading commit data... | |
| model-group-selector.tsx | Loading commit data... | |
| multi-select.tsx | Loading commit data... | |
| navigation-progress.tsx | Loading commit data... | |
| notification-button.tsx | Loading commit data... | |
| notification-dialog.tsx | Loading commit data... | |
| page-transition.tsx | Loading commit data... | |
| password-input.tsx | Loading commit data... | |
| profile-dropdown.tsx | Loading commit data... | |
| search.tsx | Loading commit data... | |
| sign-out-dialog.tsx | Loading commit data... | |
| skip-to-main.tsx | Loading commit data... | |
| status-badge.tsx | Loading commit data... | |
| tag-input.tsx | Loading commit data... | |
| theme-quick-switcher.tsx | Loading commit data... | |
| theme-switch.tsx | Loading commit data... | |
| turnstile.tsx | Loading commit data... |