Founding for shadcn/ui

Founding is a shadcn/ui theme built around a green primary color (#568f32) with neutral gray accents (#e5e7e4). The light mode uses a neutral background (#fcfefb). Dark mode keeps the green primary (#568f32) on a neutral background (#020401).

Color palette

TokenLightDark
Background
#fcfefbwhite
#020401black
Foreground
#091004black
#fcfdfcwhite
Card
#f9fdf6mintcream
#050703black
Card foreground
#070c03black
#ffffffwhite
Popover
#fcfefbwhite
#020401black
Popover foreground
#091004black
#fcfdfcwhite
Primary
#568f32olivedrab
#568f32olivedrab
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#e5e7e4gainsboro
#171915black
Secondary foreground
#4b5247darkslategray
#aeb6aadarkgray
Muted
#ecf3e7beige
#10180cblack
Muted foreground
#474a45darkslategray
#b7bab5silver
Accent
#e5e7e4gainsboro
#171915black
Accent foreground
#4b5247darkslategray
#aeb6aadarkgray
Destructive
#e00f00red
#eb1000red
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#568f32olivedrab
#568f32olivedrab

Contrast

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

Light mode
Text on background19.06:1AAA
Text on card19.25:1AAA
Primary button3.89:1AA Large
Secondary button6.51:1AA
Muted text7.94:1AAA
Accent6.51:1AA
Destructive4.94:1AA
Dark mode
Text on background20.20:1AAA
Text on card20.21:1AAA
Primary button3.89:1AA Large
Secondary button8.51:1AAA
Muted text9.25:1AAA
Accent8.51:1AAA
Destructive4.57:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.005 133.021);
  --foreground: oklch(0.162 0.03 132.522);
  --muted: oklch(0.956 0.017 133.111);
  --muted-foreground: oklch(0.405 0.01 133.165);
  --popover: oklch(0.995 0.005 133.021);
  --popover-foreground: oklch(0.162 0.03 132.522);
  --card: oklch(0.99 0.01 133.057);
  --card-foreground: oklch(0.145 0.026 131.587);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.591 0.139 135.435);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.926 0.005 133.025);
  --secondary-foreground: oklch(0.429 0.019 133.302);
  --accent: oklch(0.926 0.005 133.025);
  --accent-foreground: oklch(0.429 0.019 133.302);
  --destructive: oklch(0.573 0.231 29.873);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.591 0.139 135.435);
  --chart-1: oklch(0.591 0.139 135.435);
  --chart-2: oklch(0.926 0.005 133.025);
  --chart-3: oklch(0.926 0.005 133.025);
  --chart-4: oklch(0.948 0.004 133.012);
  --chart-5: oklch(0.598 0.146 135.614);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.098 0.012 131.824);
  --foreground: oklch(0.993 0.001 132.995);
  --muted: oklch(0.196 0.025 133.986);
  --muted-foreground: oklch(0.786 0.009 133.063);
  --popover: oklch(0.098 0.012 131.824);
  --popover-foreground: oklch(0.993 0.001 132.995);
  --card: oklch(0.123 0.016 131.824);
  --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.591 0.139 135.435);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.209 0.008 133.251);
  --secondary-foreground: oklch(0.767 0.02 133.164);
  --accent: oklch(0.209 0.008 133.251);
  --accent-foreground: oklch(0.767 0.02 133.164);
  --destructive: oklch(0.593 0.239 29.845);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.591 0.139 135.435);
  --chart-1: oklch(0.591 0.139 135.435);
  --chart-2: oklch(0.209 0.008 133.251);
  --chart-3: oklch(0.209 0.008 133.251);
  --chart-4: oklch(0.243 0.01 133.279);
  --chart-5: oklch(0.598 0.146 135.614);
}