Sandy for shadcn/ui

Sandy is a shadcn/ui theme built around a light green primary color (#edfcef) with light purple accents (#fcedfb). The light mode uses a neutral background (#f8fcf8). Dark mode keeps the light green primary (#edfcef) on a green-tinted background (#050a06).

Color palette

TokenLightDark
Background
#f8fcf8mintcream
#050a06black
Foreground
#041506black
#f9fbf9mintcream
Card
#f4faf5whitesmoke
#070d08black
Card foreground
#031105black
#fcfdfcwhite
Popover
#f4faf5whitesmoke
#070d08black
Popover foreground
#031105black
#fcfdfcwhite
Primary
#edfcefhoneydew
#edfcefhoneydew
Primary foreground
#0b4710darkgreen
#0b4710darkgreen
Secondary
#fcedfblavenderblush
#fcedfblavenderblush
Secondary foreground
#a01894darkmagenta
#a01894darkmagenta
Muted
#e5dce4gainsboro
#231a23black
Muted foreground
#6e536cdimgray
#ac91a9darkgray
Accent
#fcedfblavenderblush
#fcedfblavenderblush
Accent foreground
#a01894darkmagenta
#a01894darkmagenta
Destructive
#c2150ffirebrick
#ef302acrimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#edfcefhoneydew
#edfcefhoneydew

Contrast

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

Light mode
Text on background18.16:1AAA
Text on card18.31:1AAA
Primary button10.30:1AAA
Secondary button6.12:1AA
Muted text5.02:1AA
Accent6.12:1AA
Destructive6.14:1AA
Dark mode
Text on background19.18:1AAA
Text on card19.22:1AAA
Primary button10.30:1AAA
Secondary button6.12:1AA
Muted text5.93:1AA
Accent6.12:1AA
Destructive4.09: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.006 147.996);
  --foreground: oklch(0.176 0.041 145.799);
  --muted: oklch(0.903 0.016 328.248);
  --muted-foreground: oklch(0.481 0.052 329.131);
  --popover: oklch(0.98 0.01 147.961);
  --popover-foreground: oklch(0.159 0.036 146.12);
  --card: oklch(0.98 0.01 147.961);
  --card-foreground: oklch(0.159 0.036 146.12);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.977 0.024 147.801);
  --primary-foreground: oklch(0.348 0.104 143.914);
  --secondary: oklch(0.963 0.024 328.325);
  --secondary-foreground: oklch(0.496 0.208 332.235);
  --accent: oklch(0.963 0.024 328.325);
  --accent-foreground: oklch(0.496 0.208 332.235);
  --destructive: oklch(0.519 0.203 29.067);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.977 0.024 147.801);
  --chart-1: oklch(0.977 0.024 147.801);
  --chart-2: oklch(0.963 0.024 328.325);
  --chart-3: oklch(0.963 0.024 328.325);
  --chart-4: oklch(0.991 0.006 328.128);
  --chart-5: oklch(0.977 0.025 147.791);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.137 0.014 147.358);
  --foreground: oklch(0.986 0.004 148.017);
  --muted: oklch(0.232 0.022 329.025);
  --muted-foreground: oklch(0.688 0.048 328.761);
  --popover: oklch(0.151 0.016 147.2);
  --popover-foreground: oklch(0.993 0.002 148.041);
  --card: oklch(0.151 0.016 147.2);
  --card-foreground: oklch(0.993 0.002 148.041);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.977 0.024 147.801);
  --primary-foreground: oklch(0.348 0.104 143.914);
  --secondary: oklch(0.963 0.024 328.325);
  --secondary-foreground: oklch(0.496 0.208 332.235);
  --accent: oklch(0.963 0.024 328.325);
  --accent-foreground: oklch(0.496 0.208 332.235);
  --destructive: oklch(0.618 0.226 28.212);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.977 0.024 147.801);
  --chart-1: oklch(0.977 0.024 147.801);
  --chart-2: oklch(0.963 0.024 328.325);
  --chart-3: oklch(0.963 0.024 328.325);
  --chart-4: oklch(0.991 0.006 328.128);
  --chart-5: oklch(0.977 0.025 147.791);
}