Palate for shadcn/ui

Palate is a shadcn/ui theme built around a muted deep green primary color (#343d34) with muted deep teal accents (#343d39). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep green primary (#343d34) on a neutral background (#030703).

Color palette

TokenLightDark
Background
#ffffffwhite
#030703black
Foreground
#020902black
#f6f8f6whitesmoke
Card
#fcfcfcsnow
#040b05black
Card foreground
#010401black
#f9fbf9mintcream
Popover
#ffffffwhite
#030703black
Popover foreground
#020902black
#f6f8f6whitesmoke
Primary
#343d34darkslategray
#343d34darkslategray
Primary foreground
#cdd5celightgrey
#cdd5celightgrey
Secondary
#373d34darkslategray
#373d34darkslategray
Secondary foreground
#d0d5cdlightgrey
#d0d5cdlightgrey
Muted
#ecf3e7beige
#11180cblack
Muted foreground
#617156dimgray
#99a98edarkseagreen
Accent
#343d39darkslategray
#343d39darkslategray
Accent foreground
#cdd5d2lightgrey
#cdd5d2lightgrey
Destructive
#770f04maroon
#f83f2aorangered
Destructive foreground
#fdb8b0lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#343d34darkslategray
#343d34darkslategray

Contrast

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

Light mode
Text on background20.14:1AAA
Text on card20.16:1AAA
Primary button7.55:1AAA
Secondary button7.52:1AAA
Muted text4.63:1AA
Accent7.54:1AAA
Destructive6.83:1AA
Dark mode
Text on background18.97:1AAA
Text on card19.13:1AAA
Primary button7.55:1AAA
Secondary button7.52:1AAA
Muted text7.27:1AAA
Accent7.54:1AAA
Destructive3.65:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.123 0.027 146.47);
  --muted: oklch(0.956 0.017 131.872);
  --muted-foreground: oklch(0.528 0.047 132.489);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.123 0.027 146.47);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.098 0.021 146.47);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.347 0.019 147.487);
  --primary-foreground: oklch(0.865 0.012 147.916);
  --secondary: oklch(0.35 0.017 132.124);
  --secondary-foreground: oklch(0.867 0.011 131.828);
  --accent: oklch(0.349 0.014 168.52);
  --accent-foreground: oklch(0.866 0.009 169.374);
  --destructive: oklch(0.366 0.138 30.832);
  --destructive-foreground: oklch(0.843 0.082 26.067);
  --ring: oklch(0.347 0.019 147.487);
  --chart-1: oklch(0.347 0.019 147.487);
  --chart-2: oklch(0.35 0.017 132.124);
  --chart-3: oklch(0.349 0.014 168.52);
  --chart-4: oklch(0.381 0.019 132.134);
  --chart-5: oklch(0.35 0.025 147.271);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.121 0.017 147.049);
  --foreground: oklch(0.978 0.004 148.025);
  --muted: oklch(0.197 0.025 132.88);
  --muted-foreground: oklch(0.716 0.043 132.237);
  --popover: oklch(0.121 0.017 147.049);
  --popover-foreground: oklch(0.978 0.004 148.025);
  --card: oklch(0.138 0.02 147.038);
  --card-foreground: oklch(0.986 0.002 148.038);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.347 0.019 147.487);
  --primary-foreground: oklch(0.865 0.012 147.916);
  --secondary: oklch(0.35 0.017 132.124);
  --secondary-foreground: oklch(0.867 0.011 131.828);
  --accent: oklch(0.349 0.014 168.52);
  --accent-foreground: oklch(0.866 0.009 169.374);
  --destructive: oklch(0.646 0.224 30.369);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.347 0.019 147.487);
  --chart-1: oklch(0.347 0.019 147.487);
  --chart-2: oklch(0.35 0.017 132.124);
  --chart-3: oklch(0.349 0.014 168.52);
  --chart-4: oklch(0.381 0.019 132.134);
  --chart-5: oklch(0.35 0.025 147.271);
}