Sandy for shadcn/ui

Sandy is a shadcn/ui theme built around a muted deep yellow primary color (#564e38) with muted deep violet accents (#4e3856). The light mode uses a neutral background (#fdfdfb). Dark mode keeps the muted deep yellow primary (#564e38) on a yellow-tinted background (#0b0904).

Color palette

TokenLightDark
Background
#fdfdfbsnow
#0b0904black
Foreground
#0c0a03black
#ffffffwhite
Card
#fcfbf8snow
#0f0c05black
Card foreground
#080602black
#ffffffwhite
Popover
#fdfdfbsnow
#0b0904black
Popover foreground
#0c0a03black
#ffffffwhite
Primary
#564e38darkolivegreen
#564e38darkolivegreen
Primary foreground
#e7e3dagainsboro
#e7e3dagainsboro
Secondary
#38564edarkslategray
#38564edarkslategray
Secondary foreground
#dae7e3gainsboro
#dae7e3gainsboro
Muted
#ebefeewhitesmoke
#101413black
Muted foreground
#4a4a4adarkslategray
#b5b5b5silver
Accent
#4e3856darkslategray
#4e3856darkslategray
Accent foreground
#e3dae7gainsboro
#e3dae7gainsboro
Destructive
#bf2312firebrick
#d72714firebrick
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#564e38darkolivegreen
#564e38darkolivegreen

Contrast

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

Light mode
Text on background19.45:1AAA
Text on card19.53:1AAA
Primary button6.44:1AA
Secondary button6.29:1AA
Muted text7.66:1AAA
Accent7.60:1AAA
Destructive6.04:1AA
Dark mode
Text on background19.88:1AAA
Text on card19.50:1AAA
Primary button6.44:1AA
Secondary button6.29:1AA
Muted text9.04:1AAA
Accent7.60:1AAA
Destructive5.01:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.002 88.804);
  --foreground: oklch(0.144 0.019 93.88);
  --muted: oklch(0.95 0.005 177.554);
  --muted-foreground: oklch(0.409 0 190.305);
  --popover: oklch(0.994 0.002 88.804);
  --popover-foreground: oklch(0.144 0.019 93.88);
  --card: oklch(0.988 0.004 88.818);
  --card-foreground: oklch(0.126 0.017 94.697);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.426 0.035 88.969);
  --primary-foreground: oklch(0.917 0.013 88.878);
  --secondary: oklch(0.428 0.038 174.751);
  --secondary-foreground: oklch(0.917 0.015 177.248);
  --accent: oklch(0.379 0.057 316.147);
  --accent-foreground: oklch(0.899 0.02 316.544);
  --destructive: oklch(0.521 0.193 30.52);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.426 0.035 88.969);
  --chart-1: oklch(0.426 0.035 88.969);
  --chart-2: oklch(0.428 0.038 174.751);
  --chart-3: oklch(0.379 0.057 316.147);
  --chart-4: oklch(0.459 0.042 174.704);
  --chart-5: oklch(0.43 0.04 88.916);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.141 0.014 93.088);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.186 0.008 176.467);
  --muted-foreground: oklch(0.773 0 180);
  --popover: oklch(0.141 0.014 93.088);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.156 0.016 90.857);
  --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.426 0.035 88.969);
  --primary-foreground: oklch(0.917 0.013 88.878);
  --secondary: oklch(0.428 0.038 174.751);
  --secondary-foreground: oklch(0.917 0.015 177.248);
  --accent: oklch(0.379 0.057 316.147);
  --accent-foreground: oklch(0.899 0.02 316.544);
  --destructive: oklch(0.567 0.211 30.519);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.426 0.035 88.969);
  --chart-1: oklch(0.426 0.035 88.969);
  --chart-2: oklch(0.428 0.038 174.751);
  --chart-3: oklch(0.379 0.057 316.147);
  --chart-4: oklch(0.459 0.042 174.704);
  --chart-5: oklch(0.43 0.04 88.916);
}