Sandy for shadcn/ui

Sandy is a shadcn/ui theme built around a neutral gray primary color (#968d88) with muted light orange accents (#d3cdca). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#968d88) on a neutral background (#080503).

Color palette

TokenLightDark
Background
#ffffffwhite
#080503black
Foreground
#0f0905black
#fdfcfcsnow
Card
#fcfcfcsnow
#0b0704black
Card foreground
#0c0704black
#ffffffwhite
Popover
#fcfcfcsnow
#0b0704black
Popover foreground
#0c0704black
#ffffffwhite
Primary
#968d88gray
#968d88gray
Primary foreground
#000000black
#000000black
Secondary
#dfdeddgainsboro
#211e1cblack
Secondary foreground
#484442darkslategray
#beb6b1silver
Muted
#e1d7d0gainsboro
#2f241edarkslategray
Muted foreground
#6e645edimgray
#a19791rosybrown
Accent
#d3cdcalightgrey
#382f29darkslategray
Accent foreground
#3b3430darkslategray
#d2c7c1silver
Destructive
#610805maroon
#f4130bred
Destructive foreground
#faa19elightsalmon
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#968d88gray
#968d88gray

Contrast

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

Light mode
Text on background19.78:1AAA
Text on card19.61:1AAA
Primary button6.46:1AA
Secondary button7.14:1AAA
Muted text4.06:1AA Large
Accent7.79:1AAA
Destructive6.88:1AA
Dark mode
Text on background19.89:1AAA
Text on card20.07:1AAA
Primary button6.46:1AA
Secondary button8.29:1AAA
Muted text5.27:1AA
Accent7.91:1AAA
Destructive4.26:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.147 0.015 58.913);
  --muted: oklch(0.885 0.014 54.282);
  --muted-foreground: oklch(0.511 0.016 54.079);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.133 0.013 61.719);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.133 0.013 61.719);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.65 0.013 54.243);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.9 0.002 54.471);
  --secondary-foreground: oklch(0.39 0.006 54.301);
  --accent: oklch(0.853 0.008 54.37);
  --accent-foreground: oklch(0.332 0.012 54.026);
  --destructive: oklch(0.316 0.122 29.142);
  --destructive-foreground: oklch(0.797 0.107 21.9);
  --ring: oklch(0.65 0.013 54.243);
  --chart-1: oklch(0.65 0.013 54.243);
  --chart-2: oklch(0.9 0.002 54.471);
  --chart-3: oklch(0.853 0.008 54.37);
  --chart-4: oklch(0.923 0.002 54.48);
  --chart-5: oklch(0.65 0.019 54.114);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.116 0.011 61.898);
  --foreground: oklch(0.992 0.001 54.493);
  --muted: oklch(0.271 0.02 53.532);
  --muted-foreground: oklch(0.684 0.015 54.207);
  --popover: oklch(0.133 0.013 61.582);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.133 0.013 61.582);
  --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.65 0.013 54.243);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.238 0.007 54.13);
  --secondary-foreground: oklch(0.782 0.011 54.306);
  --accent: oklch(0.312 0.017 53.758);
  --accent-foreground: oklch(0.838 0.015 54.262);
  --destructive: oklch(0.611 0.245 29.27);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.65 0.013 54.243);
  --chart-1: oklch(0.65 0.013 54.243);
  --chart-2: oklch(0.238 0.007 54.13);
  --chart-3: oklch(0.312 0.017 53.758);
  --chart-4: oklch(0.27 0.008 54.106);
  --chart-5: oklch(0.65 0.019 54.114);
}