Sideboard for shadcn/ui

Sideboard is a shadcn/ui theme built around a neutral gray primary color (#252429) with neutral gray accents (#242925). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#252429) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#000000black
#f7f7f8whitesmoke
Card
#ffffffwhite
#000000black
Card foreground
#000000black
#f7f7f8whitesmoke
Popover
#ffffffwhite
#000000black
Popover foreground
#000000black
#f7f7f8whitesmoke
Primary
#252429darkslategray
#252429darkslategray
Primary foreground
#bebbc3silver
#bebbc3silver
Secondary
#292524darkslategray
#292524darkslategray
Secondary foreground
#c3bebbsilver
#c3bebbsilver
Muted
#eaddd7gainsboro
#281b15black
Muted foreground
#51433ddarkslategray
#c2b4aesilver
Accent
#242925darkslategray
#242925darkslategray
Accent foreground
#bbc3besilver
#bbc3besilver
Destructive
#b20a01darkred
#fe2b20orangered
Destructive foreground
#ffe7e6mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#252429darkslategray
#252429darkslategray

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button8.13:1AAA
Secondary button8.22:1AAA
Muted text7.10:1AAA
Accent8.25:1AAA
Destructive6.09:1AA
Dark mode
Text on background19.61:1AAA
Text on card19.61:1AAA
Primary button8.13:1AAA
Secondary button8.22:1AAA
Muted text8.30:1AAA
Accent8.25:1AAA
Destructive3.76:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.905 0.016 44.807);
  --muted-foreground: oklch(0.397 0.022 44.511);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.263 0.009 299.484);
  --primary-foreground: oklch(0.798 0.011 299.807);
  --secondary: oklch(0.269 0.005 44.784);
  --secondary-foreground: oklch(0.804 0.007 44.895);
  --accent: oklch(0.273 0.009 155.243);
  --accent-foreground: oklch(0.81 0.011 155.603);
  --destructive: oklch(0.482 0.194 29.793);
  --destructive-foreground: oklch(0.947 0.026 21.257);
  --ring: oklch(0.263 0.009 299.484);
  --chart-1: oklch(0.263 0.009 299.484);
  --chart-2: oklch(0.269 0.005 44.784);
  --chart-3: oklch(0.273 0.009 155.243);
  --chart-4: oklch(0.3 0.006 44.776);
  --chart-5: oklch(0.26 0.013 299.192);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.976 0.002 300.002);
  --muted: oklch(0.236 0.023 44.229);
  --muted-foreground: oklch(0.779 0.018 44.757);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.976 0.002 300.002);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.976 0.002 300.002);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.263 0.009 299.484);
  --primary-foreground: oklch(0.798 0.011 299.807);
  --secondary: oklch(0.269 0.005 44.784);
  --secondary-foreground: oklch(0.804 0.007 44.895);
  --accent: oklch(0.273 0.009 155.243);
  --accent-foreground: oklch(0.81 0.011 155.603);
  --destructive: oklch(0.64 0.242 29.158);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.263 0.009 299.484);
  --chart-1: oklch(0.263 0.009 299.484);
  --chart-2: oklch(0.269 0.005 44.784);
  --chart-3: oklch(0.273 0.009 155.243);
  --chart-4: oklch(0.3 0.006 44.776);
  --chart-5: oklch(0.26 0.013 299.192);
}