feat: add light/dark theme system with manual toggle - #1
Open
AndriP8 wants to merge 1 commit into
Open
Conversation
- 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
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
ThemeToggle.tsx) with light/dark mode switchinguseTheme.ts,useColorScheme.ts) for theme state managementindex.csstheme/tokens.ts)Details
This PR introduces a complete light/dark theme system with: