Skip to content

feat: add light/dark theme system with manual toggle - #1

Open
AndriP8 wants to merge 1 commit into
mainfrom
claude/pensive-davinci
Open

feat: add light/dark theme system with manual toggle#1
AndriP8 wants to merge 1 commit into
mainfrom
claude/pensive-davinci

Conversation

@AndriP8

@AndriP8 AndriP8 commented Apr 3, 2026

Copy link
Copy Markdown
Owner

Changes

  • Added theme toggle component (ThemeToggle.tsx) with light/dark mode switching
  • Implemented theme hooks (useTheme.ts, useColorScheme.ts) for theme state management
  • Expanded CSS with comprehensive theme variables and dark mode styles in index.css
  • Added Biome configuration and Claude launch configuration files
  • Updated all component files to use theme system consistently
  • Added theme tokens configuration (theme/tokens.ts)
  • Refactored root layout to support theme provider

Details

This PR introduces a complete light/dark theme system with:

  • Manual theme toggle in the UI
  • CSS custom properties for theme variables
  • Persistent theme preference handling
  • Consistent styling across 130+ component files

- Implement semantic CSS token system (surface, text, border, accent) that adapts to prefers-color-scheme
- Add data-theme attribute override support for manual light/dark/system preference
- Add ThemeToggle component (☀️/💻/🌙) in sidebar and mobile header, persisted to localStorage
- Replace all hardcoded dark zinc/color classes across 100+ components with semantic tokens
- Add dual-theme Shiki code highlighting (vitesse-light/vitesse-dark) via CSS variables
- Add useColorScheme and useTheme hooks; fix Framer Motion components to use concrete hex values
- Fix accent color contrast in light mode: -300/-400 text classes → semantic accent tokens at -600/-500 level
- Fix hardcoded dark backgrounds in state-machines Key Takeaways and info boxes

Author: andri.adrp@gmail.com
@vercel

vercel Bot commented Apr 3, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
visualization Ready Ready Preview, Comment Apr 3, 2026 7:24am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant