mirror of
https://github.com/block/buzz.git
synced 2026-08-18 06:50:31 +02:00
Port the adaptive theme engine from builderbot/staged into sprout. Loads Shiki theme JSON files (54 themes, lazy-loaded), extracts key colors, and derives the full shadcn CSS variable palette directly from bg, fg, comment, and git decoration colors. Light vs dark is auto-detected from background luminance. Replace the 3-button toggle with a searchable theme picker. Add a configurable accent color picker (8 predefined colors) with auto-contrast foreground calculation, independent of the syntax theme. Default theme is houston, default accent is blue. Migrate all hardcoded dark: variants to semantic tokens (text-warning, text-status-added, text-status-deleted). Cached theme + accent vars applied synchronously on mount to prevent FOUC. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sprout
Desktop chat shell with:
- Tauri + React + TypeScript + Vite
- Tailwind CSS
- shadcn/ui-ready shared components
- Biome (lint/format/check)
- Feature-driven frontend structure
Scripts
pnpm dev- run the web frontendpnpm tauri dev- run the desktop apppnpm build- typecheck and build frontendpnpm typecheck- TypeScript checkspnpm lint- Biome lintpnpm format- Biome format (write)pnpm check- Biome check
Structure
src/shared- reusable app-wide code (ui,lib,styles)src/features- feature modules (vertical slices)src/app- top-level app composition