dotfiles/claude
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jonny Barnes d012a7f23e
Make the Claude Code statusline follow the terminal palette
The nine colours were hardcoded One Dark RGB via 38;2;R;G;B, so they did not
follow the light/dark switch. Measured against the tangere backgrounds they are
fine on dark (4.25-10.80:1) but collapse on light: orange 1.78, amber 1.70,
yellow 1.63, and 'white' — used for the token total — at 1.35:1, effectively
invisible.

Switched to palette indices, which resolve through the terminal's own palette and
so follow the ghostty tangere-light/tangere-dark swap with no detection and no
cost per render. 'white' becomes 39, default foreground, since it means primary
text. All seven colours actually used get distinct indices; blue and yellow are
unreferenced but converted too, so no RGB is left behind.

Contrast now clears WCAG AA in both modes: 5.77-14.26:1 on dark, 6.32-20.61:1 on
light.

Trade-off: tangere has no orange and its palette 2 is teal rather than green, so
'green' reads teal and the warm colours sit closer together than the One Dark
originals did.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-09 14:02:01 +01:00
..
statusline.burnrate.sh Fix Opus statusline hue rendering as black in light theme 2026-08-04 17:35:33 +01:00
statusline.isaacaudet.sh Make the Claude Code statusline follow the terminal palette 2026-08-09 14:02:01 +01:00
statusline.original.sh Switch Claude Code statusline to burnrate variant 2026-08-03 14:40:40 +01:00