fix accent/secondary foreground derivation; 202 community themes
The nine remaining contrast failures all had the same cause, and it was a real bug in map.ts rather than a limit of the source palettes: --accent and --secondary are both s.high, but their foregrounds were taken from fgRaised, which is checked against s.raised. That is precisely the near-miss the file already documents and fixes for --muted-foreground, one token over. Deriving them against s.high instead rescues all nine (every Solarized variant among them) and is provably a no-op for the official 22 — each already clears 4.5:1 on s.high by 1.3x or more, and ensureContrast returns its input untouched when it passes. Measured all 22 before the change; generate-themes.ts --check reports 0 changes after it. Also: GitLab-hosted repos are now discoverable (one theme lives there, and the raw-URL and default-branch shapes differ from GitHub's), and sourceFor probes a directory named after the theme's own slug, for the packs that nest one directory per theme. An exact slug match is the only prefix tried on purpose — a pack whose variants have names of their own has no single theme that is "the" one, so guessing would be wrong. Every community theme is regenerated in this commit, not just the new ones. aura turned up generated under an older pickAccent rule than its neighbours, because it was ported before that rule changed — the same drift generate-themes.ts was written to prevent, and the reason both halves are written from one source. All 202 now come from one mapping version. Verified afterwards: 227 stylesheets, 227 imports, 227 registry entries, no orphans in either direction. Still out: 14 repos that 404 (deleted or renamed since the site indexed them), grimdark-solarized (no source link at all), cobalt2 (its page links an awesome-list README with no theme in it), and oasis (a six-variant pack with no variant named oasis — porting it means inventing six slugs the site does not list, which is a naming decision). Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,13 +1,11 @@
|
||||
/*
|
||||
Lairetam — 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.
|
||||
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/chrisintheshell/omarchy-lairetam-theme (alacritty.toml), read by scripts/port-community-themes.ts. Values
|
||||
went through deriveOmarchyPalette (scripts/themes/from-ansi.ts) because a single-theme repo ships
|
||||
per-app configs, not Omarchy 4's own colors.toml shape — some tokens here are reconstructed, not
|
||||
authored. Every text/surface pair is contrast-checked the same way the official themes are.
|
||||
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.
|
||||
*/
|
||||
@@ -22,13 +20,13 @@
|
||||
--muted-foreground: #bec2c3;
|
||||
--accent: #354046;
|
||||
--accent-foreground: #ffffff;
|
||||
--primary: #37b6ff;
|
||||
--primary: #9affe6;
|
||||
--primary-foreground: #151c1f;
|
||||
--secondary: #354046;
|
||||
--secondary-foreground: #ffffff;
|
||||
--cta: #37b6ff;
|
||||
--cta: #9affe6;
|
||||
--cta-foreground: #151c1f;
|
||||
--ctahover: #4fbfff;
|
||||
--ctahover: #a6ffe9;
|
||||
--success: #5cf19e;
|
||||
--success-foreground: #151c1f;
|
||||
--warning: #fed032;
|
||||
@@ -42,9 +40,9 @@
|
||||
--busy-ink: #fd843a;
|
||||
--border: #515a5f;
|
||||
--input: #515a5f;
|
||||
--ring: #37b6ff;
|
||||
--ring: #9affe6;
|
||||
--radius: 0.625rem;
|
||||
--chart-primary: #37b6ff;
|
||||
--chart-primary: #9affe6;
|
||||
--chart-secondary: #fc226e;
|
||||
--status-success: #5cf19e;
|
||||
--status-warning: #fed032;
|
||||
@@ -56,7 +54,7 @@
|
||||
--panel-border-bare: rgb(81 90 95 / 0.55);
|
||||
--panel-raised-bg: rgb(38 50 56 / 0.95);
|
||||
--panel-raised-border: rgb(81 90 95 / 1);
|
||||
--panel-accent: #37b6ff;
|
||||
--panel-accent: #9affe6;
|
||||
--panel-header-bg: rgb(53 64 70 / 0.6);
|
||||
--panel-header-fg: #ffffff;
|
||||
--panel-radius: 0.75rem;
|
||||
@@ -78,9 +76,9 @@
|
||||
--scrollbar-thumb-hover: rgb(161 176 184 / 0.85);
|
||||
--scrollbar-thin-thumb: rgb(161 176 184 / 0.45);
|
||||
--scrollbar-thin-thumb-hover: rgb(161 176 184 / 0.7);
|
||||
--brand: #37b6ff;
|
||||
--brand: #9affe6;
|
||||
--brand-foreground: #151c1f;
|
||||
--brand-primary: #37b6ff;
|
||||
--brand-primary: #9affe6;
|
||||
--brand-accent: #59ffd1;
|
||||
--brand-warm: #fd843a;
|
||||
--brand-deep: #151c1f;
|
||||
|
||||
Reference in New Issue
Block a user