Skip to content

fix(themes): tune sidebar and shell tokens for every theme - #25

Merged
Kiranism merged 1 commit into
mainfrom
feat/theme-shell-tokens
Nov 15, 2026
Merged

Kiranism merged 1 commit into
mainfrom
feat/theme-shell-tokens

Conversation

@Kiranism

Copy link
Copy Markdown
Owner

Mirrors the Next dashboard change. Tunes the sidebar and app shell colours so every theme looks right in light and dark mode, especially the active nav state.

What changed

Only --sidebar-* tokens in src/styles/themes/*.css changed, so page content (cards, tables, text) is untouched. Sub-nav items in app-sidebar.tsx go from text-sidebar-foreground/70 to /80.

Every theme now meets the same rules:

  • Canvas vs. inset panel: a small, consistent lightness step (ΔL 0.02 to 0.045). In light mode the panel is always the lighter of the two.
  • Active pill: visible but soft, 0.03 to 0.065 darker than the canvas in light mode and 0.05 to 0.11 lighter in dark mode, with low chroma.
  • Active icon (--sidebar-primary): at least 3:1 on the pill and on the canvas.
  • Text: active text at least 4.5:1; idle nav text (80% opacity) at least 4.5:1.
  • Sidebar border: subtle, never pure white in dark mode.

Fixes by theme

  • Astro Vista, Light Green, Zen (light): the active pill was invisible against the sidebar.

  • Notebook dark: the white pill became a muted gray one.

  • Claude dark, Supabase, Light Green: active icons were nearly invisible and now use a deeper or brighter shade of the theme's brand colour.

  • Supabase: nav text was below 4.5:1 in both modes.

  • Claude dark, Mono dark: pure white sidebar borders now use the theme border colour.

  • Vercel dark, WhatsApp light, Mono, Claude, Zen: canvas and panel separation retuned.

Deliberate exceptions

  • Vercel dark: the panel stays pure black, with a #0a0a0a canvas.
  • Notebook light: keeps its yellow highlighter pill.
  • Notebook dark: keeps strong borders, to match its sketched style.

Mirrors the Next dashboard: active nav pills are visible but soft, active icons
reach 3:1 on the pill and the canvas, idle nav text reaches 4.5:1, and the
canvas and inset panel separate by a small, consistent lightness step. Only
--sidebar-* tokens change. Sub-nav text goes from /70 to /80.
@vercel

vercel Bot commented Nov 15, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
react-shadcn-dashboard-starter Error Error Nov 15, 2026 11:20pm UTC

@Kiranism
Kiranism merged commit 6a4114f into main Nov 15, 2026
2 of 3 checks passed

This branch had an error being deployed

1 failed deployment
Preview — 3cfab0d3 Deployed Nov 15, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant