Baker for shadcn/ui

Baker is a shadcn/ui theme built around a muted green primary color (#5a8f56) with muted light green accents (#b8cdb7). The light mode uses a neutral background (#fbfefb). Dark mode keeps the muted green primary (#5a8f56) on a neutral background (#010401).

Color palette

TokenLightDark
Background
#fbfefbwhite
#010401black
Foreground
#020902black
#ffffffwhite
Card
#f8fcf7mintcream
#030802black
Card foreground
#010401black
#ffffffwhite
Popover
#fbfefbwhite
#010401black
Popover foreground
#020902black
#ffffffwhite
Primary
#5a8f56seagreen
#5a8f56seagreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#d2dbd1lightgrey
#263126darkslategray
Secondary foreground
#374536darkslategray
#beccbdsilver
Muted
#dee3degainsboro
#1c211cblack
Muted foreground
#536c51dimgray
#95ae93darkseagreen
Accent
#b8cdb7silver
#365134darkslategray
Accent foreground
#223021darkslategray
#d4e3d3gainsboro
Destructive
#632208maroon
#e24d12chocolate
Destructive foreground
#f8bda5lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#5a8f56seagreen
#5a8f56seagreen

Contrast

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

Light mode
Text on background19.80:1AAA
Text on card19.91:1AAA
Primary button3.80:1AA Large
Secondary button7.16:1AAA
Muted text4.45:1AA Large
Accent8.22:1AAA
Destructive7.27:1AAA
Dark mode
Text on background20.60:1AAA
Text on card20.21:1AAA
Primary button3.80:1AA Large
Secondary button8.09:1AAA
Muted text6.79:1AA
Accent6.61:1AA
Destructive3.94:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.004 143.614);
  --foreground: oklch(0.124 0.028 141.554);
  --muted: oklch(0.911 0.009 143.582);
  --muted-foreground: oklch(0.502 0.051 143.09);
  --popover: oklch(0.994 0.004 143.614);
  --popover-foreground: oklch(0.124 0.028 141.554);
  --card: oklch(0.987 0.008 143.593);
  --card-foreground: oklch(0.098 0.022 141.554);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.599 0.102 142.7);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.882 0.016 143.537);
  --secondary-foreground: oklch(0.372 0.03 143.194);
  --accent: oklch(0.826 0.038 143.393);
  --accent-foreground: oklch(0.292 0.032 143.039);
  --destructive: oklch(0.347 0.101 39.52);
  --destructive-foreground: oklch(0.845 0.076 42.563);
  --ring: oklch(0.599 0.102 142.7);
  --chart-1: oklch(0.599 0.102 142.7);
  --chart-2: oklch(0.882 0.016 143.537);
  --chart-3: oklch(0.826 0.038 143.393);
  --chart-4: oklch(0.904 0.013 143.558);
  --chart-5: oklch(0.605 0.113 142.612);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.097 0.018 141.994);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.242 0.013 143.353);
  --muted-foreground: oklch(0.724 0.046 143.291);
  --popover: oklch(0.097 0.018 141.994);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.122 0.022 141.994);
  --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.599 0.102 142.7);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.299 0.025 143.191);
  --secondary-foreground: oklch(0.83 0.026 143.469);
  --accent: oklch(0.404 0.058 142.849);
  --accent-foreground: oklch(0.901 0.026 143.481);
  --destructive: oklch(0.622 0.195 38.172);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.599 0.102 142.7);
  --chart-1: oklch(0.599 0.102 142.7);
  --chart-2: oklch(0.299 0.025 143.191);
  --chart-3: oklch(0.404 0.058 142.849);
  --chart-4: oklch(0.331 0.028 143.175);
  --chart-5: oklch(0.605 0.113 142.612);
}