add colors.toml and 0x-hex support, rescuing 44 more community themes

Poked at the 62 "no parseable source" skips from the first pass and found two things
the pipeline didn't handle: several community repos genuinely ship colors.toml too — some
in Omarchy 4's own semantic schema (best case, no derivation needed at all, same quality
as the official 22), others reusing the filename for an unrelated flat color0..color15
scheme — and a handful of alacritty.toml files use 0xrrggbb instead of #rrggbb.

palette.ts's loadPalette is now a thin wrapper over two exported pieces (parseTomlText,
paletteFromRecord) so the community pipeline can attempt the real schema first without
duplicating the reader; falls through to the color16 or ANSI-derived paths otherwise.
generate-themes.ts --check still reports 0 changes for the official set — the refactor
is behavior-preserving there, the lowercase-hex normalization it picked up along the way
touched 7 official theme files cosmetically (their source colors.toml has uppercase hex),
regenerated for real rather than left inconsistent with their own source.

147 -> 191 community themes ported. Of the original 62 unparseable repos, most turned out
to be simply gone (404 on GitHub — repos deleted or renamed since the site listed them);
the rest needed one of the two format additions above. 20 themes remain stuck: 16 dead
repos, 2 with no repo link at all, and the same handful of genuinely low-contrast source
palettes (mostly Solarized variants) where fixing contrast would mean changing the
author's actual colours rather than porting them.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
2026-08-22 01:48:21 +00:00
co-authored by Claude Sonnet 5
parent a58f4d2b32
commit 861fc4a58b
57 changed files with 4859 additions and 124 deletions
@@ -0,0 +1,97 @@
/*
Fireside — ported from a community Omarchy theme, not from basecamp/omarchy's own set.
Dark theme (dark), by luminance of its own background — the source repo carries no mode flag of its own to read.
Source: https://github.com/bjarneo/omarchy-fireside-theme (colors.toml (16-colour ANSI)), read by scripts/port-community-themes.ts. Values
went through deriveOmarchyPalette (scripts/themes/from-ansi.ts) because the source has no Omarchy 4
colors.toml — some tokens here are reconstructed, not authored. Every text/surface pair is contrast-checked the same way the official themes are.
DO NOT EDIT BY HAND. Re-run the script to refresh from the source repo.
*/
[data-theme='fireside'] {
--background: #060a12;
--foreground: #f0f2f5;
--card: #0a1220;
--card-foreground: #f0f2f5;
--popover: #0a1220;
--popover-foreground: #f0f2f5;
--muted: #1b2330;
--muted-foreground: #abafb5;
--accent: #1b2330;
--accent-foreground: #f0f2f5;
--primary: #e3ddda;
--primary-foreground: #060a12;
--secondary: #1b2330;
--secondary-foreground: #f0f2f5;
--cta: #e3ddda;
--cta-foreground: #060a12;
--ctahover: #e6e1de;
--success: #889889;
--success-foreground: #060a12;
--warning: #b8b5a2;
--warning-foreground: #060a12;
--destructive: #e06b58;
--destructive-foreground: #060a12;
--info: #b8b8b6;
--info-foreground: #060a12;
--busy: #cc907d;
--busy-foreground: #060a12;
--busy-ink: #cc907d;
--border: #373e4a;
--input: #373e4a;
--ring: #e3ddda;
--radius: 0.625rem;
--chart-primary: #e3ddda;
--chart-secondary: #e48b7a;
--status-success: #889889;
--status-warning: #b8b5a2;
--status-in-progress: #b8b8b6;
--page-bg: #060a12;
--page-bg-src: '';
--panel-bg: rgb(10 18 32 / 0.72);
--panel-border: rgb(55 62 74 / 0.9);
--panel-border-bare: rgb(55 62 74 / 0.55);
--panel-raised-bg: rgb(10 18 32 / 0.95);
--panel-raised-border: rgb(55 62 74 / 1);
--panel-accent: #e3ddda;
--panel-header-bg: rgb(27 35 48 / 0.6);
--panel-header-fg: #f0f2f5;
--panel-radius: 0.75rem;
--panel-blur: 12px;
--card-bg: #0a1220;
--glass-bg: rgb(10 18 32 / 0.55);
--glass-border: rgb(55 62 74 / 0.7);
--dock-bg: rgb(10 18 32 / 0.7);
--dock-border: rgb(55 62 74 / 0.8);
--dock-tooltip-bg: #1b2330;
--header-bg: rgb(10 18 32 / 0.8);
--header-border: rgb(55 62 74 / 0.9);
--header-fg: #f0f2f5;
--header-blur: 12px;
--pixel-grid-color: rgb(113 119 128 / 0.07);
--card-grid-color: rgb(113 119 128 / 0.05);
--panel-grid-color: rgb(113 119 128 / 0.06);
--scrollbar-thumb: rgb(85 92 101 / 0.6);
--scrollbar-thumb-hover: rgb(85 92 101 / 0.85);
--scrollbar-thin-thumb: rgb(85 92 101 / 0.45);
--scrollbar-thin-thumb-hover: rgb(85 92 101 / 0.7);
--brand: #e3ddda;
--brand-foreground: #060a12;
--brand-primary: #e3ddda;
--brand-accent: #d0cac7;
--brand-warm: #cc907d;
--brand-deep: #060a12;
--brand-muted: #555c65;
--ink: #f0f2f5;
--surface-warm: #0a1220;
--naturegreen: #889889;
--naturegreen-foreground: #060a12;
--duck-dark: #f0f2f5;
--duck-teal: #d0cac7;
--duck-yellow: #b8b5a2;
--duck-orange: #cc907d;
--duck-forest: #889889;
--duck-beige: #212835;
--logo-src: '/officer-logo.svg';
}