Add Catppuccin built-in app theme (Latte light, Mocha dark)#285
Merged
Conversation
New built-in palette alongside default/nord/dracula/solarized/gruvbox. Light mode uses Catppuccin Latte, dark uses Mocha, accent is Mauve. Unlike Nord, Latte and Mocha have different terminal colors, so the --ansi-* / --ansi-bg-fg-* blocks live in both the light and dark selectors rather than being shared. Wired through the three integration points: the theme CSS file, the builtInThemeCss registry, and the domain schema + builtInThemes metadata. The Settings picker, SDK, and `bb theme` CLI all iterate builtInThemes and pick it up automatically. Also updated the bb-cli skill docs that enumerate the built-in id list manually. Co-Authored-By: Claude Opus 4.8 (1M context) <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 Catppuccin as a new built-in app theme alongside the existing built-ins (default, nord, dracula, solarized, gruvbox).
--ansi-*/--ansi-bg-fg-*definitions live in both the light and dark selectors rather than being collapsed into one block.Changes
Three core integration points:
apps/app/src/lib/themes/catppuccin.ts— exportscatppuccinThemeCss(mirrorsnord.ts).apps/app/src/lib/themes/index.ts— registerscatppuccinin thebuiltInThemeCssrecord.packages/domain/src/app-theme.ts— adds"catppuccin"toappThemeIdSchemaand abuiltInThemesmetadata entry.The Settings picker (
SettingsView.tsx), the SDK (theme.ts), and thebb themeCLI command all iterate overbuiltInThemes/BUILTIN_THEME_IDS, so they pick up the new theme automatically — confirmed, no changes needed.Manual wiring beyond the three core files: two bb-cli skill docs (
SKILL.md,references/theming.md) enumerate the built-in id list by hand in theirbb theme set <id>docs, socatppuccinwas appended to each.Tests
pnpm exec turbo run typecheck --filter=@bb/domain --filter=@bb/app— ✅ 2/2 passed. (TheRecord<Exclude<AppThemeId, "custom">, string>inindex.tsnow requires thecatppuccinkey, confirming the wiring.)pnpm exec turbo run test --filter=@bb/server -- appearance— ✅ 5/5 passed.Risks
Low. Additive only — adds one palette and its metadata; no existing themes or behavior change.
🤖 Generated with Claude Code