From b8d0d8b8713babdab553bc22ed8fa52595038e75 Mon Sep 17 00:00:00 2001 From: Mary Kate Fain Date: Wed, 25 Feb 2026 13:55:54 -0600 Subject: [PATCH] Remove sidebar theme tokens to align with upstream cleanup --- src/lib/colorUtils.ts | 15 --------------- src/pages/ThemeBuilderPage.tsx | 34 ---------------------------------- 2 files changed, 49 deletions(-) diff --git a/src/lib/colorUtils.ts b/src/lib/colorUtils.ts index b6dcb7ef..def62fb2 100644 --- a/src/lib/colorUtils.ts +++ b/src/lib/colorUtils.ts @@ -161,17 +161,10 @@ export function deriveTokensFromCore( ? formatHsl(fgParsed.h, Math.max(fgParsed.s - 20, 0), Math.max(fgParsed.l - 30, 40)) : formatHsl(fgParsed.h, Math.max(fgParsed.s - 30, 0), Math.min(fgParsed.l + 35, 55)); - // Sidebar: slightly different shade of background - const sidebarBg = dark ? darken(background, 2) : darken(background, 2); - const sidebarAccentBg = dark ? lighten(background, 4) : darken(background, 6); - const sidebarBorder = border; - // Foreground variants const cardFg = foreground; const popoverFg = foreground; const secondaryFg = foreground; - const sidebarFg = foreground; - const sidebarAccentFg = foreground; // Primary/accent foregrounds: auto-contrast const primaryFg = contrastForeground(primary); @@ -201,13 +194,5 @@ export function deriveTokensFromCore( border, input, ring: primary, - sidebarBackground: sidebarBg, - sidebarForeground: sidebarFg, - sidebarPrimary: primary, - sidebarPrimaryForeground: primaryFg, - sidebarAccent: sidebarAccentBg, - sidebarAccentForeground: sidebarAccentFg, - sidebarBorder, - sidebarRing: primary, }; } diff --git a/src/pages/ThemeBuilderPage.tsx b/src/pages/ThemeBuilderPage.tsx index 0d3c57c5..e0c8b66d 100644 --- a/src/pages/ThemeBuilderPage.tsx +++ b/src/pages/ThemeBuilderPage.tsx @@ -43,11 +43,6 @@ const SURFACE_KEYS = [ const UI_KEYS = ['border', 'input', 'ring', 'destructive', 'destructiveForeground'] as const; /** Sidebar keys */ -const SIDEBAR_KEYS = [ - 'sidebarBackground', 'sidebarForeground', 'sidebarPrimary', 'sidebarPrimaryForeground', - 'sidebarAccent', 'sidebarAccentForeground', 'sidebarBorder', 'sidebarRing', -] as const; - /** Human-readable labels for token keys */ const TOKEN_LABELS: Record = { background: 'Background', @@ -67,14 +62,6 @@ const TOKEN_LABELS: Record = { ring: 'Focus Ring', destructive: 'Destructive', destructiveForeground: 'Destructive Text', - sidebarBackground: 'Background', - sidebarForeground: 'Text', - sidebarPrimary: 'Primary', - sidebarPrimaryForeground: 'Primary Text', - sidebarAccent: 'Accent', - sidebarAccentForeground: 'Accent Text', - sidebarBorder: 'Border', - sidebarRing: 'Focus Ring', }; /** Pairs to check contrast on */ @@ -373,27 +360,6 @@ export function ThemeBuilderPage() { - {/* Sidebar colors (collapsible) */} - - - Sidebar Colors - - - -
- {SIDEBAR_KEYS.map((key) => ( - updateToken(key, hex)} - disabled={autoDerive} - /> - ))} -
-
-
- {/* Contrast warnings */}