Godparent for shadcn/ui

Godparent is a shadcn/ui theme built around a deep green primary color (#183310) with deep red accents (#331018). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep green primary (#183310) on a neutral background (#040703).

Color palette

TokenLightDark
Background
#ffffffwhite
#040703black
Foreground
#081603black
#ffffffwhite
Card
#fcfcfcsnow
#060b04black
Card foreground
#061203black
#ffffffwhite
Popover
#fcfcfcsnow
#060b04black
Popover foreground
#061203black
#ffffffwhite
Primary
#183310darkgreen
#183310darkgreen
Primary foreground
#65c748limegreen
#65c748limegreen
Secondary
#101833black
#101833black
Secondary foreground
#96a7dflightsteelblue
#96a7dflightsteelblue
Muted
#e9ebf1lavender
#0e1016black
Muted foreground
#3e4251darkslategray
#aeb3c1silver
Accent
#331018black
#331018black
Accent foreground
#df96a7tan
#df96a7tan
Destructive
#cb3f10firebrick
#d94312chocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#183310darkgreen
#183310darkgreen

Contrast

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

Light mode
Text on background18.64:1AAA
Text on card18.75:1AAA
Primary button6.48:1AA
Secondary button7.42:1AAA
Muted text8.37:1AAA
Accent7.40:1AAA
Destructive4.93:1AA
Dark mode
Text on background20.23:1AAA
Text on card19.87:1AAA
Primary button6.48:1AA
Secondary button7.42:1AAA
Muted text9.09:1AAA
Accent7.40:1AAA
Destructive4.40:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.182 0.044 137.452);
  --muted: oklch(0.94 0.009 272.556);
  --muted-foreground: oklch(0.382 0.025 271.872);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.164 0.038 136.845);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.164 0.038 136.845);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.289 0.067 138.98);
  --primary-foreground: oklch(0.743 0.188 139.156);
  --secondary: oklch(0.217 0.054 268.831);
  --secondary-foreground: oklch(0.735 0.084 271.16);
  --accent: oklch(0.231 0.057 8.279);
  --accent-foreground: oklch(0.749 0.09 4.211);
  --destructive: oklch(0.566 0.184 36.42);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.289 0.067 138.98);
  --chart-1: oklch(0.289 0.067 138.98);
  --chart-2: oklch(0.217 0.054 268.831);
  --chart-3: oklch(0.231 0.057 8.279);
  --chart-4: oklch(0.243 0.065 268.536);
  --chart-5: oklch(0.292 0.071 139.047);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.122 0.016 137.041);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.172 0.014 271.638);
  --muted-foreground: oklch(0.767 0.021 272.359);
  --popover: oklch(0.14 0.019 137.061);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.14 0.019 137.061);
  --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.289 0.067 138.98);
  --primary-foreground: oklch(0.743 0.188 139.156);
  --secondary: oklch(0.217 0.054 268.831);
  --secondary-foreground: oklch(0.735 0.084 271.16);
  --accent: oklch(0.231 0.057 8.279);
  --accent-foreground: oklch(0.749 0.09 4.211);
  --destructive: oklch(0.595 0.194 36.347);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.289 0.067 138.98);
  --chart-1: oklch(0.289 0.067 138.98);
  --chart-2: oklch(0.217 0.054 268.831);
  --chart-3: oklch(0.231 0.057 8.279);
  --chart-4: oklch(0.243 0.065 268.536);
  --chart-5: oklch(0.292 0.071 139.047);
}