Utter for shadcn/ui

Utter is a shadcn/ui theme built around a green primary color (#446732) with violet accents (#553267). The light mode uses a neutral background (#f9fcf8). Dark mode keeps the green primary (#446732) on a green-tinted background (#090d07).

Color palette

TokenLightDark
Background
#f9fcf8mintcream
#090d07black
Foreground
#0b1406black
#f7f8f6whitesmoke
Card
#f9fcf8mintcream
#090d07black
Card foreground
#0b1406black
#f7f8f6whitesmoke
Popover
#f9fcf8mintcream
#090d07black
Popover foreground
#0b1406black
#f7f8f6whitesmoke
Primary
#446732darkolivegreen
#446732darkolivegreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#553267darkslateblue
#553267darkslateblue
Secondary foreground
#e8ddeelavender
#e8ddeelavender
Muted
#e1dde4gainsboro
#201b22black
Muted foreground
#685e6edimgray
#9b91a1darkgray
Accent
#553267darkslateblue
#553267darkslateblue
Accent foreground
#e8ddeelavender
#e8ddeelavender
Destructive
#a80b05darkred
#ed0f07red
Destructive foreground
#fee2e1mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#446732darkolivegreen
#446732darkolivegreen

Contrast

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

Light mode
Text on background18.17:1AAA
Text on card18.17:1AAA
Primary button6.46:1AA
Secondary button7.88:1AAA
Muted text4.59:1AA
Accent7.88:1AAA
Destructive6.32:1AA
Dark mode
Text on background18.35:1AAA
Text on card18.35:1AAA
Primary button6.46:1AA
Secondary button7.88:1AAA
Muted text5.60:1AA
Accent7.88:1AAA
Destructive4.47:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.006 134.253);
  --foreground: oklch(0.176 0.031 134.618);
  --muted: oklch(0.903 0.01 314.157);
  --muted-foreground: oklch(0.497 0.029 313.903);
  --popover: oklch(0.988 0.006 134.253);
  --popover-foreground: oklch(0.176 0.031 134.618);
  --card: oklch(0.988 0.006 134.253);
  --card-foreground: oklch(0.176 0.031 134.618);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.474 0.09 135.625);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.383 0.096 312.66);
  --secondary-foreground: oklch(0.911 0.027 314.057);
  --accent: oklch(0.383 0.096 312.66);
  --accent-foreground: oklch(0.911 0.027 314.057);
  --destructive: oklch(0.463 0.185 29.335);
  --destructive-foreground: oklch(0.936 0.031 20.084);
  --ring: oklch(0.474 0.09 135.625);
  --chart-1: oklch(0.474 0.09 135.625);
  --chart-2: oklch(0.383 0.096 312.66);
  --chart-3: oklch(0.383 0.096 312.66);
  --chart-4: oklch(0.408 0.104 312.631);
  --chart-5: oklch(0.48 0.097 135.764);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.153 0.015 133.925);
  --foreground: oklch(0.979 0.003 134.237);
  --muted: oklch(0.231 0.014 313.88);
  --muted-foreground: oklch(0.671 0.027 314.001);
  --popover: oklch(0.153 0.015 133.925);
  --popover-foreground: oklch(0.979 0.003 134.237);
  --card: oklch(0.153 0.015 133.925);
  --card-foreground: oklch(0.979 0.003 134.237);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.474 0.09 135.625);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.383 0.096 312.66);
  --secondary-foreground: oklch(0.911 0.027 314.057);
  --accent: oklch(0.383 0.096 312.66);
  --accent-foreground: oklch(0.911 0.027 314.057);
  --destructive: oklch(0.598 0.241 29.324);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.474 0.09 135.625);
  --chart-1: oklch(0.474 0.09 135.625);
  --chart-2: oklch(0.383 0.096 312.66);
  --chart-3: oklch(0.383 0.096 312.66);
  --chart-4: oklch(0.408 0.104 312.631);
  --chart-5: oklch(0.48 0.097 135.764);
}