Keeper for shadcn/ui

Keeper is a shadcn/ui theme built around a deep green primary color (#061906) with deep teal accents (#061910). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep green primary (#061906) on a neutral background (#010401).

Color palette

TokenLightDark
Background
#ffffffwhite
#010401black
Foreground
#041505black
#f5faf5whitesmoke
Card
#fcfcfcsnow
#020802black
Card foreground
#031104black
#f8fbf8mintcream
Popover
#ffffffwhite
#010401black
Popover foreground
#041505black
#f5faf5whitesmoke
Primary
#061906black
#061906black
Primary foreground
#2bbf2elimegreen
#2bbf2elimegreen
Secondary
#0f1906black
#0f1906black
Secondary foreground
#73bf2byellowgreen
#73bf2byellowgreen
Muted
#e3ecdagainsboro
#1c2513black
Muted foreground
#4c4d4cdarkslategray
#b2b3b2darkgray
Accent
#061910black
#061910black
Accent foreground
#2bbf78mediumseagreen
#2bbf78mediumseagreen
Destructive
#951504darkred
#ef2106red
Destructive foreground
#fed3cdpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#061906black
#061906black

Contrast

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

Light mode
Text on background18.84:1AAA
Text on card18.92:1AAA
Primary button7.48:1AAA
Secondary button7.93:1AAA
Muted text6.96:1AA
Accent7.65:1AAA
Destructive6.45:1AA
Dark mode
Text on background19.50:1AAA
Text on card19.39:1AAA
Primary button7.48:1AAA
Secondary button7.93:1AAA
Muted text7.56:1AAA
Accent7.65:1AAA
Destructive4.30:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.175 0.042 143.933);
  --muted: oklch(0.93 0.025 129.413);
  --muted-foreground: oklch(0.42 0.003 129.194);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.175 0.042 143.933);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.159 0.037 144.05);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.19 0.046 143.905);
  --primary-foreground: oklch(0.704 0.218 142.989);
  --secondary: oklch(0.197 0.039 131.185);
  --secondary-foreground: oklch(0.728 0.19 133.631);
  --accent: oklch(0.193 0.032 160.856);
  --accent-foreground: oklch(0.713 0.16 156.39);
  --destructive: oklch(0.43 0.164 31.031);
  --destructive-foreground: oklch(0.902 0.049 26.897);
  --ring: oklch(0.19 0.046 143.905);
  --chart-1: oklch(0.19 0.046 143.905);
  --chart-2: oklch(0.197 0.039 131.185);
  --chart-3: oklch(0.193 0.032 160.856);
  --chart-4: oklch(0.245 0.053 132.161);
  --chart-5: oklch(0.192 0.048 143.818);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.097 0.019 144.469);
  --foreground: oklch(0.979 0.008 145.99);
  --muted: oklch(0.249 0.034 130.73);
  --muted-foreground: oklch(0.767 0.002 129.158);
  --popover: oklch(0.097 0.019 144.469);
  --popover-foreground: oklch(0.979 0.008 145.99);
  --card: oklch(0.122 0.024 144.469);
  --card-foreground: oklch(0.986 0.005 146.012);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.19 0.046 143.905);
  --primary-foreground: oklch(0.704 0.218 142.989);
  --secondary: oklch(0.197 0.039 131.185);
  --secondary-foreground: oklch(0.728 0.19 133.631);
  --accent: oklch(0.193 0.032 160.856);
  --accent-foreground: oklch(0.713 0.16 156.39);
  --destructive: oklch(0.607 0.236 30.655);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.19 0.046 143.905);
  --chart-1: oklch(0.19 0.046 143.905);
  --chart-2: oklch(0.197 0.039 131.185);
  --chart-3: oklch(0.193 0.032 160.856);
  --chart-4: oklch(0.245 0.053 132.161);
  --chart-5: oklch(0.192 0.048 143.818);
}