Sandy for shadcn/ui

Sandy is a shadcn/ui theme built around a muted deep teal primary color (#30453b) with muted deep teal accents (#304545). The light mode uses a neutral background (#f8fcfa). Dark mode keeps the muted deep teal primary (#30453b) on a teal-tinted background (#050f0a).

Color palette

TokenLightDark
Background
#f8fcfamintcream
#050f0ablack
Foreground
#04110ablack
#fcfdfcwhite
Card
#f4faf7whitesmoke
#07130dblack
Card foreground
#030d08black
#ffffffwhite
Popover
#f4faf7whitesmoke
#07130dblack
Popover foreground
#030d08black
#ffffffwhite
Primary
#30453bdarkslategray
#30453bdarkslategray
Primary foreground
#ccdbd4lightgrey
#ccdbd4lightgrey
Secondary
#304530darkslategray
#304530darkslategray
Secondary foreground
#ccdbcclightgrey
#ccdbcclightgrey
Muted
#dcefdcgainsboro
#102310black
Muted foreground
#5b715bdimgray
#8ea48edarkseagreen
Accent
#304545darkslategray
#304545darkslategray
Accent foreground
#ccdbdblightgrey
#ccdbdblightgrey
Destructive
#c71c05firebrick
#f9391forangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#30453bdarkslategray
#30453bdarkslategray

Contrast

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

Light mode
Text on background18.61:1AAA
Text on card18.72:1AAA
Primary button7.16:1AAA
Secondary button7.19:1AAA
Muted text4.40:1AA Large
Accent7.14:1AAA
Destructive5.84:1AA
Dark mode
Text on background19.07:1AAA
Text on card18.98:1AAA
Primary button7.16:1AAA
Secondary button7.19:1AAA
Muted text6.18:1AA
Accent7.14:1AAA
Destructive3.72:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.005 165.878);
  --foreground: oklch(0.161 0.025 163.576);
  --muted: oklch(0.933 0.032 145.772);
  --muted-foreground: oklch(0.525 0.043 145.354);
  --popover: oklch(0.981 0.008 165.806);
  --popover-foreground: oklch(0.144 0.021 165.67);
  --card: oklch(0.981 0.008 165.806);
  --card-foreground: oklch(0.144 0.021 165.67);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.37 0.032 163.452);
  --primary-foreground: oklch(0.879 0.02 165.407);
  --secondary: oklch(0.367 0.044 145.012);
  --secondary-foreground: oklch(0.877 0.027 145.803);
  --accent: oklch(0.373 0.026 197.408);
  --accent-foreground: oklch(0.881 0.017 198.086);
  --destructive: oklch(0.53 0.205 30.773);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.37 0.032 163.452);
  --chart-1: oklch(0.37 0.032 163.452);
  --chart-2: oklch(0.367 0.044 145.012);
  --chart-3: oklch(0.373 0.026 197.408);
  --chart-4: oklch(0.398 0.049 144.989);
  --chart-5: oklch(0.374 0.037 163.025);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.156 0.019 164.201);
  --foreground: oklch(0.993 0.002 165.958);
  --muted: oklch(0.234 0.043 144.4);
  --muted-foreground: oklch(0.696 0.041 145.566);
  --popover: oklch(0.172 0.022 162.676);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.172 0.022 162.676);
  --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.37 0.032 163.452);
  --primary-foreground: oklch(0.879 0.02 165.407);
  --secondary: oklch(0.367 0.044 145.012);
  --secondary-foreground: oklch(0.877 0.027 145.803);
  --accent: oklch(0.373 0.026 197.408);
  --accent-foreground: oklch(0.881 0.017 198.086);
  --destructive: oklch(0.641 0.23 31.039);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.37 0.032 163.452);
  --chart-1: oklch(0.37 0.032 163.452);
  --chart-2: oklch(0.367 0.044 145.012);
  --chart-3: oklch(0.373 0.026 197.408);
  --chart-4: oklch(0.398 0.049 144.989);
  --chart-5: oklch(0.374 0.037 163.025);
}