Skip to content

feat(settings): a Catppuccin palette, Mocha in dark and Latte in light - #414

Merged
devswha merged 4 commits into
devswha:mainfrom
aNNdii:feat/catppuccin-palette
Oct 3, 2026
Merged

devswha merged 4 commits into
devswha:mainfrom
aNNdii:feat/catppuccin-palette

Conversation

@aNNdii

@aNNdii aNNdii commented Oct 3, 2026

Copy link
Copy Markdown
Contributor

Change

Adds a fourth opt-in palette, Settings → Appearance → Colors → Catppuccin: Catppuccin Mocha in dark, Latte in light. It is built like report and charcoal, with no new mechanism: two [data-theme][data-palette="catppuccin"] token blocks in src/styles.css, the matching TERMINAL_THEMES / THEME_COLOR entries in src/lib/settings.ts, a fourth button in Settings (ko/ja/zh included), DESIGN.md and CHANGELOG.

The surfaces follow the Catppuccin style guide and Catppuccin's Zed theme:

  • content (chat canvas, terminal) on Base
  • chrome (sidebar, header, tabs) and popovers on Mantle
  • dimmed text in Subtext1
  • Mauve accent, Rosewater cursor
  • selection is Overlay2 at 25% over Base

To keep the existing WCAG AA test (4.5:1 on every surface) passing, it departs from the palette in three places:

  • Mocha: the input state is Maroon instead of Red. Red on its tint over a hovered row is 4.26:1.
  • Latte hover: Crust instead of Zed's Surface0. Subtext1 on Surface0 is 4.05:1.
  • Latte accent and agent states: these sit under 4.5:1 on Latte's own surfaces. Each keeps its hue and is darkened until it passes: Mauve #712fc6, Blue #1750bf, Red #ac0c2f, Green #28651b. This applies the style guide's "legibility first" rule.

Validation

  • bun run generate:types --check: passes
  • bun run typecheck: passes
  • bun run build: passes
  • bun test src/lib/settings.test.ts src/lib/i18n.test.ts: 39/39 pass. These now also cover catppuccin in the sanitize check, the --term-* mirror and the AA contrast check for both themes.
  • bun run test:unit: 20 failures, the same 20 that fail on main without this change (server/process/socket tests).
  • Checked by hand in Chromium in dark and light: hover on work rows and copy buttons, the selected sidebar row, the composer, and the terminal. Surfaces were compared against Catppuccin's Zed theme (catppuccin-mauve.json).

@coderabbitai

coderabbitai Bot commented Oct 3, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

🧰 Additional context used
📚 Code guidelines (3)
src/AGENTS.md — configured
AGENTS.md — configured
DESIGN.md — configured

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository: devswha/herdr-web-ui/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 18320002-b619-4716-b404-6abacf7f998f
📥 Commits

Reviewing files that changed from the base of the PR and between a0c4c17 and af4e9ba.

📒 Files selected for processing (2)
  • CHANGELOG.md
  • src/styles.css
🚧 Files skipped from review as they are similar to previous changes (1)
  • CHANGELOG.md

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 6 remain after this review.


📝 Summary

Summary by CodeRabbit

  • New Features
    • Added Catppuccin as a color palette option, using Mocha in dark mode and Latte in light mode.
    • Updated color settings descriptions and translations to include Catppuccin. Light-mode accent and status colors are adjusted for readability.

Walkthrough

The application adds Catppuccin, with Mocha values for dark mode and Latte values for light mode. Settings, the Colors selector, translations, tests, design documentation, and the Unreleased changelog now include the palette.

Changes

Catppuccin palette

Layer / File(s) Summary
Palette tokens and settings
src/styles.css, src/lib/settings.ts, src/lib/settings.test.ts
Adds Mocha and Latte tokens, terminal colors, and theme-color metadata. Settings accept catppuccin, and tests cover sanitization and token-layer precedence. The terminal host background now uses --term-bg.
Palette selection and documentation
src/components/SettingsDialog.tsx, src/lib/i18n.*.ts, src/lib/i18n.test.ts, DESIGN.md, CHANGELOG.md
Adds Catppuccin to the Colors selector and translations. Design documentation and the Unreleased changelog describe the palette.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~12 minutes

Change: Feature

Suggested reviewers: devswha

Merge Risk: ⚪ Minimal · up to af4e9

Catppuccin remains an opt-in palette, and its inspected dark/light and terminal colors are consistent. No material merge risk is evident.

Architecture Summary

Architecture risk: 🔵 Low · up to af4e9

The change affects 3 systems.

Changed systems: src, CHANGELOG.md, DESIGN.md

Architecture concerns
No architecture-level concerns identified.

Review details

Systems and components

  • observed — src (service) was modified; 8 changed files map to changed impact.
  • observed — CHANGELOG.md (service) was modified; 1 changed file maps to changed impact.
  • observed — DESIGN.md (service) was modified; 1 changed file maps to changed impact.

Before / after behavior

  • observed — Modified behavior in DESIGN.md: The palette overview now includes Catppuccin among the opt-in palettes.
  • observed — Modified behavior in DESIGN.md: The palette section is retitled to cover all opt-in palettes, and the supported settings.palette values now include catppuccin in addition to amber, report, and charcoal.
  • observed — Modified behavior in DESIGN.md: Adds Catppuccin palette specifications: Mocha in dark mode and Latte in light mode, with their surface and text roles, cursor and selection colors, state colors, and accent values. Light-mode accents are darkened to meet AA contrast, while primary hover uses the unmodified Latte Mauve; corners match amber.
  • observed — Modified behavior in DESIGN.md: The documented palette setting now includes catppuccin; its default remains amber.
🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 25.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 4 functions across 7 files. (2 skipped: 2… Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies the main change: adding the Catppuccin palette with Mocha for dark mode and Latte for light mode.
Description check ✅ Passed The description includes the required Change and Validation sections, explains the palette and contrast choices, and reports test results. Screenshots of the dark and light UI are noted in the PR comm…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

Docstring coverage is 25.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 4 functions across 7 files. (2 skipped: 2 unsupported.)

  • Fix all pre-merge checks with AI
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@aNNdii

aNNdii commented Oct 3, 2026

Copy link
Copy Markdown
Contributor Author
pr-dark pr-light

@aNNdii
aNNdii force-pushed the feat/catppuccin-palette branch from 5c0554f to a0c4c17 Compare October 3, 2026 20:45
…tppuccin

The host painted --bg-panel, which every other palette sets equal to --term-bg. Catppuccin puts the terminal on Base and the chrome on Mantle, so the rows the grid leaves over showed as a Mantle band under a Base terminal. The host now paints --term-bg; the other palettes render the same.
@devswha
devswha merged commit 2a414a5 into devswha:main Oct 3, 2026
3 checks passed
devswha added a commit that referenced this pull request Oct 4, 2026
Bumps package.json and herdr-plugin.toml to 0.3.49 and moves the
Unreleased notes under [0.3.49] - 2026-10-04, with the compare link.
Every entry already carries its PR link and contributor credit. Raises
the remote PC bundle to 16: a runtime notice is titled by its own first
line on a remote PC too (`source` on the notice part, #418), and the
Antigravity meter reads the token file on a Linux PC (#399). Push the
`remote-v16` tag and let the bundle workflow publish before running
release.yml.

Carries #357, #399, #411, #413, #415, #414, #416, #417, #418, #346.
@aNNdii
aNNdii deleted the feat/catppuccin-palette branch October 16, 2026 20:14
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.

2 participants