Aside for shadcn/ui

Aside is a shadcn/ui theme built around a muted deep blue primary color (#101113) with muted deep indigo accents (#111013). The light mode uses a neutral background (#f7f9fd). Dark mode keeps the muted deep blue primary (#101113) on a neutral background (#030407).

Color palette

TokenLightDark
Background
#f7f9fdghostwhite
#030407black
Foreground
#030916black
#f9fafbghostwhite
Card
#f3f6fbaliceblue
#04060bblack
Card foreground
#020712black
#fcfcfdwhite
Popover
#f7f9fdghostwhite
#030407black
Popover foreground
#030916black
#f9fafbghostwhite
Primary
#101113black
#101113black
Primary foreground
#a4a8b2darkgray
#a4a8b2darkgray
Secondary
#101313black
#101313black
Secondary foreground
#a4afb2darkgray
#a4afb2darkgray
Muted
#d8e9eelavender
#112227black
Muted foreground
#414749darkslategray
#b6bdbesilver
Accent
#111013black
#111013black
Accent foreground
#a7a4b2darkgray
#a7a4b2darkgray
Destructive
#811403maroon
#fa4e33tomato
Destructive foreground
#fdc2b9lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#101113black
#101113black

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background18.88:1AAA
Text on card18.60:1AAA
Primary button7.91:1AAA
Secondary button8.32:1AAA
Muted text7.58:1AAA
Accent7.74:1AAA
Destructive6.66:1AA
Dark mode
Text on background19.60:1AAA
Text on card19.74:1AAA
Primary button7.91:1AAA
Secondary button8.32:1AAA
Muted text8.55:1AAA
Accent7.74:1AAA
Destructive3.39:1AA Large

CSS variables

Paste this into your globals.css to use Aside in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.005 267.39);
  --foreground: oklch(0.14 0.033 260);
  --muted: oklch(0.924 0.019 214.388);
  --muted-foreground: oklch(0.394 0.009 214.401);
  --popover: oklch(0.982 0.005 267.39);
  --popover-foreground: oklch(0.14 0.033 260);
  --card: oklch(0.972 0.008 267.373);
  --card-foreground: oklch(0.129 0.028 258.228);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.179 0.004 267.264);
  --primary-foreground: oklch(0.732 0.014 267.297);
  --secondary: oklch(0.183 0.004 214.389);
  --secondary-foreground: oklch(0.746 0.013 214.372);
  --accent: oklch(0.177 0.006 294.964);
  --accent-foreground: oklch(0.726 0.019 295.083);
  --destructive: oklch(0.39 0.145 31.677);
  --destructive-foreground: oklch(0.866 0.069 28.553);
  --ring: oklch(0.179 0.004 267.264);
  --chart-1: oklch(0.179 0.004 267.264);
  --chart-2: oklch(0.183 0.004 214.389);
  --chart-3: oklch(0.177 0.006 294.964);
  --chart-4: oklch(0.218 0.005 214.405);
  --chart-5: oklch(0.178 0.006 267.194);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.108 0.012 261.269);
  --foreground: oklch(0.984 0.002 267.409);
  --muted: oklch(0.241 0.024 215.442);
  --muted-foreground: oklch(0.792 0.008 214.344);
  --popover: oklch(0.108 0.012 261.269);
  --popover-foreground: oklch(0.984 0.002 267.409);
  --card: oklch(0.123 0.014 261.386);
  --card-foreground: oklch(0.992 0.001 267.414);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.179 0.004 267.264);
  --primary-foreground: oklch(0.732 0.014 267.297);
  --secondary: oklch(0.183 0.004 214.389);
  --secondary-foreground: oklch(0.746 0.013 214.372);
  --accent: oklch(0.177 0.006 294.964);
  --accent-foreground: oklch(0.726 0.019 295.083);
  --destructive: oklch(0.662 0.213 31.602);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.179 0.004 267.264);
  --chart-1: oklch(0.179 0.004 267.264);
  --chart-2: oklch(0.183 0.004 214.389);
  --chart-3: oklch(0.177 0.006 294.964);
  --chart-4: oklch(0.218 0.005 214.405);
  --chart-5: oklch(0.178 0.006 267.194);
}