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 |
|---|---|---|
| .. | ||
| api.ts | Loading commit data... | |
| avatar.ts | Loading commit data... | |
| colors.ts | Loading commit data... | |
| constants.ts | Loading commit data... | |
| cookies.ts | Loading commit data... | |
| copy-to-clipboard.ts | Loading commit data... | |
| currency.ts | Loading commit data... | |
| dayjs.ts | Loading commit data... | |
| dom-utils.ts | Loading commit data... | |
| format.ts | Loading commit data... | |
| handle-server-error.ts | Loading commit data... | |
| http-status-code-rules.ts | Loading commit data... | |
| lobe-icon.tsx | Loading commit data... | |
| motion.ts | Loading commit data... | |
| oauth.ts | Loading commit data... | |
| passkey.ts | Loading commit data... | |
| roles.ts | Loading commit data... | |
| secure-verification.ts | Loading commit data... | |
| show-submitted-data.tsx | Loading commit data... | |
| theme-customization.ts | Loading commit data... | |
| time.ts | Loading commit data... | |
| use-chart-theme.ts | Loading commit data... | |
| use-controllable-state.ts | Loading commit data... | |
| utils.ts | Loading commit data... | |
| vchart.ts | Loading commit data... |