Side for shadcn/ui

Side is a shadcn/ui theme built around a near-white primary color (#fcfdfc) with near-white accents (#fdfcfc). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-white primary (#fcfdfc) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#010402black
#fcfdfcwhite
Card
#ffffffwhite
#000000black
Card foreground
#010402black
#fcfdfcwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#010402black
#fcfdfcwhite
Primary
#fcfdfcwhite
#fcfdfcwhite
Primary foreground
#273a30darkslategray
#273a30darkslategray
Secondary
#fdfcfcsnow
#fdfcfcsnow
Secondary foreground
#775064dimgray
#775064dimgray
Muted
#efe1e8mistyrose
#1e1017black
Muted foreground
#54454ddarkslategray
#baabb3darkgray
Accent
#fdfcfcsnow
#fdfcfcsnow
Accent foreground
#775064dimgray
#775064dimgray
Destructive
#e13805orangered
#f53d05orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fcfdfcwhite
#fcfdfcwhite

Contrast

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

Light mode
Text on background20.59:1AAA
Text on card20.59:1AAA
Primary button11.87:1AAA
Secondary button6.58:1AA
Muted text7.10:1AAA
Accent6.58:1AA
Destructive4.40:1AA Large
Dark mode
Text on background20.59:1AAA
Text on card20.59:1AAA
Primary button11.87:1AAA
Secondary button6.58:1AA
Muted text8.38:1AAA
Accent6.58:1AA
Destructive3.78:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.1 0.017 164.425);
  --muted: oklch(0.923 0.019 344.802);
  --muted-foreground: oklch(0.408 0.024 345.745);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.1 0.017 164.425);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.1 0.017 164.425);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.993 0.001 164.253);
  --primary-foreground: oklch(0.329 0.031 161.593);
  --secondary: oklch(0.992 0.001 344.319);
  --secondary-foreground: oklch(0.48 0.061 347.307);
  --accent: oklch(0.992 0.001 344.319);
  --accent-foreground: oklch(0.48 0.061 347.307);
  --destructive: oklch(0.597 0.211 34.33);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.993 0.001 164.253);
  --chart-1: oklch(0.993 0.001 164.253);
  --chart-2: oklch(0.992 0.001 344.319);
  --chart-3: oklch(0.992 0.001 344.319);
  --chart-4: oklch(1.016 0.003 164.222);
  --chart-5: oklch(0.993 0.001 164.248);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.993 0.002 164.232);
  --muted: oklch(0.195 0.028 347.71);
  --muted-foreground: oklch(0.756 0.021 344.973);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.993 0.002 164.232);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.993 0.002 164.232);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.993 0.001 164.253);
  --primary-foreground: oklch(0.329 0.031 161.593);
  --secondary: oklch(0.992 0.001 344.319);
  --secondary-foreground: oklch(0.48 0.061 347.307);
  --accent: oklch(0.992 0.001 344.319);
  --accent-foreground: oklch(0.48 0.061 347.307);
  --destructive: oklch(0.636 0.226 34.209);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.993 0.001 164.253);
  --chart-1: oklch(0.993 0.001 164.253);
  --chart-2: oklch(0.992 0.001 344.319);
  --chart-3: oklch(0.992 0.001 344.319);
  --chart-4: oklch(1.016 0.003 164.222);
  --chart-5: oklch(0.993 0.001 164.248);
}