Innocent for shadcn/ui

Innocent is a shadcn/ui theme built around a deep green primary color (#476426) with deep green accents (#286426). The light mode uses a neutral background (#fafdf7). Dark mode keeps the deep green primary (#476426) on a green-tinted background (#0b1005).

Color palette

TokenLightDark
Background
#fafdf7mintcream
#0b1005black
Foreground
#0d1604black
#ffffffwhite
Card
#f8fcf2floralwhite
#0d1406black
Card foreground
#0b1203black
#ffffffwhite
Popover
#f8fcf2floralwhite
#0d1406black
Popover foreground
#0b1203black
#ffffffwhite
Primary
#476426darkolivegreen
#476426darkolivegreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#646226darkolivegreen
#646226darkolivegreen
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#eeedd8beige
#272711black
Muted foreground
#666552dimgray
#adad99darkgray
Accent
#286426forestgreen
#286426forestgreen
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#993000saddlebrown
#ff6219orangered
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#476426darkolivegreen
#476426darkolivegreen

Contrast

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

Light mode
Text on background18.06:1AAA
Text on card18.35:1AAA
Primary button6.74:1AA
Secondary button6.35:1AA
Muted text5.01:1AA
Accent7.15:1AAA
Destructive7.54:1AAA
Dark mode
Text on background19.28:1AAA
Text on card18.77:1AAA
Primary button6.74:1AA
Secondary button6.35:1AA
Muted text6.68:1AA
Accent7.15:1AAA
Destructive7.02:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.009 127.227);
  --foreground: oklch(0.185 0.038 128.898);
  --muted: oklch(0.942 0.029 105.327);
  --muted-foreground: oklch(0.502 0.03 105.792);
  --popover: oklch(0.986 0.014 127.286);
  --popover-foreground: oklch(0.168 0.034 127.773);
  --card: oklch(0.986 0.014 127.286);
  --card-foreground: oklch(0.168 0.034 127.773);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.465 0.095 130.346);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.484 0.081 107.229);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.448 0.113 142.853);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.463 0.148 39.195);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.465 0.095 130.346);
  --chart-1: oklch(0.465 0.095 130.346);
  --chart-2: oklch(0.484 0.081 107.229);
  --chart-3: oklch(0.448 0.113 142.853);
  --chart-4: oklch(0.521 0.088 107.244);
  --chart-5: oklch(0.47 0.1 130.563);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.162 0.026 127.667);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.265 0.036 106.879);
  --muted-foreground: oklch(0.742 0.027 105.433);
  --popover: oklch(0.179 0.03 128.715);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.179 0.03 128.715);
  --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.465 0.095 130.346);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.484 0.081 107.229);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.448 0.113 142.853);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.692 0.205 40.62);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.465 0.095 130.346);
  --chart-1: oklch(0.465 0.095 130.346);
  --chart-2: oklch(0.484 0.081 107.229);
  --chart-3: oklch(0.448 0.113 142.853);
  --chart-4: oklch(0.521 0.088 107.244);
  --chart-5: oklch(0.47 0.1 130.563);
}