Chubby for shadcn/ui

Chubby is a shadcn/ui theme built around a deep green primary color (#5e6f16) with deep green accents (#326f16). The light mode uses a neutral background (#fdfdfc). Dark mode keeps the deep green primary (#5e6f16) on a neutral background (#070703).

Color palette

TokenLightDark
Background
#fdfdfcwhite
#070703black
Foreground
#121504black
#f8f8f6whitesmoke
Card
#fbfcf8snow
#0a0b04black
Card foreground
#0e1103black
#fafbf9snow
Popover
#fbfcf8snow
#0a0b04black
Popover foreground
#0e1103black
#fafbf9snow
Primary
#5e6f16darkolivegreen
#5e6f16darkolivegreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#6f5316saddlebrown
#6f5316saddlebrown
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#dddad5gainsboro
#2a2822darkslategray
Muted foreground
#696763dimgray
#9c9a96darkgray
Accent
#326f16forestgreen
#326f16forestgreen
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#e40901red
#fe312aorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#5e6f16darkolivegreen
#5e6f16darkolivegreen

Contrast

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

Light mode
Text on background18.20:1AAA
Text on card18.47:1AAA
Primary button5.59:1AA
Secondary button7.22:1AAA
Muted text4.05:1AA Large
Accent6.16:1AA
Destructive4.82:1AA
Dark mode
Text on background18.95:1AAA
Text on card19.03:1AAA
Primary button5.59:1AA
Secondary button7.22:1AAA
Muted text5.24:1AA
Accent6.16:1AA
Destructive3.69:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.002 114.865);
  --foreground: oklch(0.188 0.033 117.666);
  --muted: oklch(0.89 0.008 86.042);
  --muted-foreground: oklch(0.515 0.007 86.055);
  --popover: oklch(0.988 0.004 114.907);
  --popover-foreground: oklch(0.17 0.029 117.063);
  --card: oklch(0.988 0.004 114.907);
  --card-foreground: oklch(0.17 0.029 117.063);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.51 0.111 119.856);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.459 0.084 82.37);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.482 0.135 137.964);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.58 0.235 29.493);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.51 0.111 119.856);
  --chart-1: oklch(0.51 0.111 119.856);
  --chart-2: oklch(0.459 0.084 82.37);
  --chart-3: oklch(0.482 0.135 137.964);
  --chart-4: oklch(0.495 0.091 82.207);
  --chart-5: oklch(0.516 0.114 120.029);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.127 0.015 115.392);
  --foreground: oklch(0.979 0.003 114.874);
  --muted: oklch(0.277 0.011 86.096);
  --muted-foreground: oklch(0.687 0.006 86.042);
  --popover: oklch(0.146 0.017 115.536);
  --popover-foreground: oklch(0.986 0.002 114.857);
  --card: oklch(0.146 0.017 115.536);
  --card-foreground: oklch(0.986 0.002 114.857);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.51 0.111 119.856);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.459 0.084 82.37);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.482 0.135 137.964);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.645 0.238 28.357);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.51 0.111 119.856);
  --chart-1: oklch(0.51 0.111 119.856);
  --chart-2: oklch(0.459 0.084 82.37);
  --chart-3: oklch(0.482 0.135 137.964);
  --chart-4: oklch(0.495 0.091 82.207);
  --chart-5: oklch(0.516 0.114 120.029);
}