From bf00a3e95884bb6cce6d85306592b86c74bf223e Mon Sep 17 00:00:00 2001 From: paul valladares <85648028+dreyfus92@users.noreply.github.com> Date: Thu, 13 Aug 2026 22:02:52 -0500 Subject: [PATCH] feat: per-topic accent colors (#63) * feat: per-topic accent colors * chore: refine comment * fix: remove issue reference from comment in starlight.css --- src/starlightOverrides/Head.astro | 20 +++++++++++ src/styles/starlight.css | 56 ++++++++++++++++++++++++------- 2 files changed, 63 insertions(+), 13 deletions(-) diff --git a/src/starlightOverrides/Head.astro b/src/starlightOverrides/Head.astro index b2194bd..0dcd5a1 100644 --- a/src/starlightOverrides/Head.astro +++ b/src/starlightOverrides/Head.astro @@ -2,12 +2,32 @@ import Default from "@astrojs/starlight/components/Head.astro"; import VtbotStarlight from "astro-vtbot/components/starlight/Base.astro"; import "/src/styles/starlight.css"; + +// Per-topic accent colors, matching the bomb.sh project cards +const ACCENTS = { + clack: { dark: "184 100% 48%", light: "184 100% 30%" }, + args: { dark: "52 100% 56%", light: "45 100% 33%" }, + tab: { dark: "142 100% 47%", light: "142 100% 28%" }, + tty: { dark: "268 100% 52%", light: "268 100% 45%" }, +}; +const accent = ACCENTS[Astro.locals.starlightRoute.id.split("/")[0]]; --- {/* replaceSidebarContent: sidebar content differs per topic (starlight-sidebar-topics) */} +{ + accent && ( +