Sad for shadcn/ui

Sad is a shadcn/ui theme built around a light orange primary color (#f2dcc9) with muted light orange accents (#c8c1bc). The light mode uses a neutral background (#fefcfb). Dark mode keeps the light orange primary (#f2dcc9) on an orange-tinted background (#0b0704).

Color palette

TokenLightDark
Background
#fefcfbsnow
#0b0704black
Foreground
#090501black
#ffffffwhite
Card
#fefcfbsnow
#0b0704black
Card foreground
#090501black
#ffffffwhite
Popover
#fefcfbsnow
#0b0704black
Popover foreground
#090501black
#ffffffwhite
Primary
#f2dcc9bisque
#f2dcc9bisque
Primary foreground
#70421asaddlebrown
#70421asaddlebrown
Secondary
#d4d4d3lightgrey
#181716black
Secondary foreground
#3b3b3adarkslategray
#b4b0acdarkgray
Muted
#ece8e4linen
#1b1713black
Muted foreground
#6e655edimgray
#a19891rosybrown
Accent
#c8c1bcsilver
#302b27darkslategray
Accent foreground
#2d2925darkslategray
#cbc4besilver
Destructive
#6e1e08maroon
#f15b32tomato
Destructive foreground
#f9beaelightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f2dcc9bisque
#f2dcc9bisque

Contrast

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

Light mode
Text on background19.89:1AAA
Text on card19.89:1AAA
Primary button6.41:1AA
Secondary button7.54:1AAA
Muted text4.66:1AA
Accent8.13:1AAA
Destructive7.04:1AAA
Dark mode
Text on background20.03:1AAA
Text on card20.03:1AAA
Primary button6.41:1AA
Secondary button8.31:1AAA
Muted text6.30:1AA
Accent8.11:1AAA
Destructive6.28:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.002 64.066);
  --foreground: oklch(0.119 0.017 74.927);
  --muted: oklch(0.933 0.007 63.988);
  --muted-foreground: oklch(0.514 0.016 63.678);
  --popover: oklch(0.993 0.002 64.066);
  --popover-foreground: oklch(0.119 0.017 74.927);
  --card: oklch(0.993 0.002 64.066);
  --card-foreground: oklch(0.119 0.017 74.927);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.909 0.035 63.573);
  --primary-foreground: oklch(0.426 0.083 58.629);
  --secondary: oklch(0.869 0.001 64.078);
  --secondary-foreground: oklch(0.351 0.001 64.043);
  --accent: oklch(0.816 0.011 63.921);
  --accent-foreground: oklch(0.282 0.009 63.653);
  --destructive: oklch(0.361 0.117 35.301);
  --destructive-foreground: oklch(0.852 0.072 36.009);
  --ring: oklch(0.909 0.035 63.573);
  --chart-1: oklch(0.909 0.035 63.573);
  --chart-2: oklch(0.869 0.001 64.078);
  --chart-3: oklch(0.816 0.011 63.921);
  --chart-4: oklch(0.892 0.001 64.081);
  --chart-5: oklch(0.909 0.037 63.547);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.135 0.011 70.027);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.207 0.011 63.373);
  --muted-foreground: oklch(0.686 0.015 63.807);
  --popover: oklch(0.135 0.011 70.027);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.135 0.011 70.027);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.909 0.035 63.573);
  --primary-foreground: oklch(0.426 0.083 58.629);
  --secondary: oklch(0.205 0.003 63.911);
  --secondary-foreground: oklch(0.759 0.007 63.971);
  --accent: oklch(0.293 0.011 63.599);
  --accent-foreground: oklch(0.824 0.011 63.914);
  --destructive: oklch(0.663 0.192 35.98);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.909 0.035 63.573);
  --chart-1: oklch(0.909 0.035 63.573);
  --chart-2: oklch(0.205 0.003 63.911);
  --chart-3: oklch(0.293 0.011 63.599);
  --chart-4: oklch(0.238 0.004 63.893);
  --chart-5: oklch(0.909 0.037 63.547);
}