Crumb for shadcn/ui

Crumb is a shadcn/ui theme built around a green primary color (#5dd57d) with teal accents (#5dd5b9). The light mode uses a neutral background (#fbfefc). Dark mode keeps the green primary (#5dd57d) on a neutral background (#030704).

Color palette

TokenLightDark
Background
#fbfefcwhite
#030704black
Foreground
#010402black
#fcfdfcwhite
Card
#f8fcf9mintcream
#040b06black
Card foreground
#000000black
#ffffffwhite
Popover
#f8fcf9mintcream
#040b06black
Popover foreground
#000000black
#ffffffwhite
Primary
#5dd57dmediumaquamarine
#5dd57dmediumaquamarine
Primary foreground
#000000black
#000000black
Secondary
#79d55dyellowgreen
#79d55dyellowgreen
Secondary foreground
#000000black
#000000black
Muted
#dcead7gainsboro
#1a2815black
Muted foreground
#465242darkslategray
#b1bdaddarkgray
Accent
#5dd5b9mediumaquamarine
#5dd5b9mediumaquamarine
Accent foreground
#000000black
#000000black
Destructive
#bb4d11chocolate
#ed793bcoral
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#5dd57dmediumaquamarine
#5dd57dmediumaquamarine

Contrast

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

Light mode
Text on background20.24:1AAA
Text on card20.27:1AAA
Primary button11.29:1AAA
Secondary button11.50:1AAA
Muted text6.57:1AA
Accent11.70:1AAA
Destructive5.04:1AA
Dark mode
Text on background19.85:1AAA
Text on card19.88:1AAA
Primary button11.29:1AAA
Secondary button11.50:1AAA
Muted text7.93:1AAA
Accent11.70:1AAA
Destructive7.40:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 154.473);
  --foreground: oklch(0.098 0.017 153.858);
  --muted: oklch(0.92 0.029 138.363);
  --muted-foreground: oklch(0.423 0.031 138.416);
  --popover: oklch(0.987 0.006 154.418);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.987 0.006 154.418);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.783 0.165 149.749);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.79 0.181 138.943);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.797 0.116 175.405);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.557 0.156 43.305);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.783 0.165 149.749);
  --chart-1: oklch(0.783 0.165 149.749);
  --chart-2: oklch(0.79 0.181 138.943);
  --chart-3: oklch(0.797 0.116 175.405);
  --chart-4: oklch(0.804 0.169 138.825);
  --chart-5: oklch(0.79 0.172 149.525);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.121 0.015 154.054);
  --foreground: oklch(0.993 0.001 154.503);
  --muted: oklch(0.257 0.038 138.575);
  --muted-foreground: oklch(0.785 0.026 138.366);
  --popover: oklch(0.139 0.018 154.009);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.139 0.018 154.009);
  --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.783 0.165 149.749);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.79 0.181 138.943);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.797 0.116 175.405);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.699 0.161 46.419);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.783 0.165 149.749);
  --chart-1: oklch(0.783 0.165 149.749);
  --chart-2: oklch(0.79 0.181 138.943);
  --chart-3: oklch(0.797 0.116 175.405);
  --chart-4: oklch(0.804 0.169 138.825);
  --chart-5: oklch(0.79 0.172 149.525);
}