Rename bg/fg palette keys to background/foreground

The canonical colors.toml keys are now background/foreground, including
all permutations (dark_background, darker_background, lighter_background,
dark_foreground, light_foreground, bright_foreground). The old short
names are gone entirely, not kept as aliases; legacy alacritty-generated
themes still resolve through the ANSI color0/color7 fallback.

Theme files are also regrouped: accent/selection/muted first, then the
backgrounds, then the foregrounds, then the named colors.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
David Heinemeier Hansson
2026-07-18 16:24:51 -07:00
co-authored by Claude Fable 5
parent 72d7646c64
commit afa2839a5a
46 changed files with 747 additions and 718 deletions
+7 -7
View File
@@ -2,11 +2,11 @@
.theme-dark, .theme-light {
/* Core colors */
--background-primary: {{ bg }};
--background-primary-alt: {{ bg }};
--background-secondary: {{ bg }};
--background-secondary-alt: {{ bg }};
--text-normal: {{ fg }};
--background-primary: {{ background }};
--background-primary-alt: {{ background }};
--background-secondary: {{ background }};
--background-secondary-alt: {{ background }};
--text-normal: {{ foreground }};
/* Selection colors */
--text-selection: {{ selection_background }};
@@ -30,8 +30,8 @@
--interactive-accent-hover: {{ accent }};
/* Muted text */
--text-muted: color-mix(in srgb, {{ fg }} 70%, transparent);
--text-faint: color-mix(in srgb, {{ fg }} 55%, transparent);
--text-muted: color-mix(in srgb, {{ foreground }} 70%, transparent);
--text-faint: color-mix(in srgb, {{ foreground }} 55%, transparent);
/* Code */
--code-normal: {{ cyan }};