Add theming system with built-in palettes and custom theme editor - #1
Merged
Conversation
Introduce a full theming layer for the web app: - Theme registry (apps/web/src/themes/) with 11 built-in palettes: Default, Solarized, Nord, High Contrast, Catppuccin (Latte/Frappe/ Macchiato/Mocha), and Rose Pine (Dawn/main/Moon). - Custom themes: duplicate, edit, and delete palettes via a new ThemeEditor, persisted to localStorage with import/export transport. - Separate active light/dark theme selection wired through useTheme, with cross-tab sync. - New Appearance settings page (moved theme controls out of General). - Syntax highlighting follows the active palette (Catppuccin code renders with catppuccin-* Shiki themes, Rose Pine with rose-pine*), falling back to the generic Pierre theme; highlighter cache keyed by theme so palette switches load the right bundled theme. - Scrollbar/noise styling driven by CSS variables so palettes can override them. Covered by unit tests for the registry, transport, theme editor, and syntax-theme resolution. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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.
Summary
Adds a full theming layer to the web app — built-in palettes, a custom theme editor, and palette-aware syntax highlighting.
ThemeEditor, persisted tolocalStoragewith import/export transport.useTheme, with cross-tab sync.catppuccin-*Shiki themes, Rosé Pine withrose-pine*, falling back to the generic Pierre theme. Highlighter cache keyed by theme so palette switches load the right bundled theme.No new dependencies — the Catppuccin/Rosé Pine Shiki themes are already bundled in
@pierre/diffs.Testing
tsgo --noEmittypecheck: clean.🤖 Generated with Claude Code