Teepee for shadcn/ui

Teepee is a shadcn/ui theme built around a green primary color (#667722) with indigo accents (#332277). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#667722) on a neutral background (#030402).

Color palette

TokenLightDark
Background
#ffffffwhite
#030402black
Foreground
#131603black
#fbfcf8snow
Card
#ffffffwhite
#030402black
Card foreground
#131603black
#fbfcf8snow
Popover
#ffffffwhite
#030402black
Popover foreground
#131603black
#fbfcf8snow
Primary
#667722olivedrab
#667722olivedrab
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#332277midnightblue
#332277midnightblue
Secondary foreground
#ddd7f4lavender
#ddd7f4lavender
Muted
#e0dceflavender
#141023black
Muted foreground
#414045darkslategray
#bbbabfsilver
Accent
#332277midnightblue
#332277midnightblue
Accent foreground
#ddd7f4lavender
#ddd7f4lavender
Destructive
#c81804firebrick
#fa341eorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#667722olivedrab
#667722olivedrab

Contrast

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

Light mode
Text on background18.36:1AAA
Text on card18.36:1AAA
Primary button4.99:1AA
Secondary button9.20:1AAA
Muted text7.64:1AAA
Accent9.20:1AAA
Destructive5.86:1AA
Dark mode
Text on background19.98:1AAA
Text on card19.98:1AAA
Primary button4.99:1AA
Secondary button9.20:1AAA
Muted text9.66:1AAA
Accent9.20:1AAA
Destructive3.75:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.192 0.037 118.666);
  --muted: oklch(0.903 0.027 295.035);
  --muted-foreground: oklch(0.373 0.009 295.131);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.192 0.037 118.666);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.192 0.037 118.666);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.537 0.11 120.041);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.331 0.136 285.45);
  --secondary-foreground: oklch(0.894 0.039 294.778);
  --accent: oklch(0.331 0.136 285.45);
  --accent-foreground: oklch(0.894 0.039 294.778);
  --destructive: oklch(0.53 0.207 30.411);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.537 0.11 120.041);
  --chart-1: oklch(0.537 0.11 120.041);
  --chart-2: oklch(0.331 0.136 285.45);
  --chart-3: oklch(0.331 0.136 285.45);
  --chart-4: oklch(0.353 0.147 285.233);
  --chart-5: oklch(0.543 0.114 120.234);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.099 0.01 115.98);
  --foreground: oklch(0.989 0.005 115.674);
  --muted: oklch(0.188 0.039 291.407);
  --muted-foreground: oklch(0.792 0.007 295.404);
  --popover: oklch(0.099 0.01 115.98);
  --popover-foreground: oklch(0.989 0.005 115.674);
  --card: oklch(0.099 0.01 115.98);
  --card-foreground: oklch(0.989 0.005 115.674);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.537 0.11 120.041);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.331 0.136 285.45);
  --secondary-foreground: oklch(0.894 0.039 294.778);
  --accent: oklch(0.331 0.136 285.45);
  --accent-foreground: oklch(0.894 0.039 294.778);
  --destructive: oklch(0.64 0.234 30.512);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.537 0.11 120.041);
  --chart-1: oklch(0.537 0.11 120.041);
  --chart-2: oklch(0.331 0.136 285.45);
  --chart-3: oklch(0.331 0.136 285.45);
  --chart-4: oklch(0.353 0.147 285.233);
  --chart-5: oklch(0.543 0.114 120.234);
}