Skip to content

Themes from the official Catppuccin library; light, dark, system - #56

Merged
vishr merged 1 commit into
mainfrom
refactor/catppuccin-lib
Oct 24, 2026
Merged

vishr merged 1 commit into
mainfrom
refactor/catppuccin-lib

Conversation

@vishr

@vishr vishr commented Oct 24, 2026

Copy link
Copy Markdown
Member

Palette source: colours now come from github.com/catppuccin/go v0.3.0 (the official Go palette) instead of hand-copied hex.

  • Dark = Catppuccin Mocha, official colours unchanged (7:1 to 13:1 on its base).
  • Light = Catppuccin Latte. Official Latte yellow (2.3:1), sky (2.5), peach (2.6), green (3.0), teal (3.3) and blue (4.3) are too pale for text on Latte's base. For text only, readable() darkens the same hue just enough to reach 4.5:1 (WCAG AA). Red and mauve already pass and are unchanged. Fills and bars keep the official colours.
  • Derived colours: tinted state backgrounds and the Flow canvas are computed from the palette (tint, mix), not copied.
  • Web: /static/theme.css is still generated from the same Go table, so TUI and web match.
  • Tests: they check provenance and contrast (dark equals official Mocha; every state colour is at least 4.5:1 in both themes; passing official Latte colours are used unchanged) instead of pinning hex values.

Names: themes are light, dark and system everywhere: config ui.theme, driga top --theme, the web theme menu, the :theme command and the docs. The docs say once that they are Catppuccin Latte and Mocha. Alpha: old names are rejected, with no fallback.

Also fixed: driga top --tab still listed the old nine tabs. It now offers flow, projects and machines (machine jumps use --tab machines).

just check passes.

https://claude.ai/code/session_01T2vtcW6ihn1ywy9vxUq9a4

…system

Colours now come from github.com/catppuccin/go instead of copied hex
values. Dark is Catppuccin Mocha, unchanged. Light is Catppuccin Latte;
text in its yellow, green, blue, peach, teal and sky is darkened, keeping
the hue, just enough to reach 4.5:1 on the background. Tints and the
Flow canvas are computed from the palette. Tests check provenance and
contrast instead of pinning hex values.

Themes are named light, dark and system everywhere (config ui.theme,
`top --theme`, web console, `:theme`). `top --tab` offers the three tabs
that exist: flow, projects, machines.

Claude-Session: https://claude.ai/code/session_01T2vtcW6ihn1ywy9vxUq9a4
@vishr
vishr enabled auto-merge (squash) October 24, 2026 06:58
@vishr
vishr merged commit 8a346c4 into main Oct 24, 2026
4 checks passed
@vishr
vishr deleted the refactor/catppuccin-lib branch October 24, 2026 07:08
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