Innocent for shadcn/ui

Innocent is a shadcn/ui theme built around a muted light green primary color (#ecede9) with muted light indigo accents (#e9e9ed). The light mode uses a neutral background (#fdfdfb). Dark mode keeps the muted light green primary (#ecede9) on a neutral background (#060703).

Color palette

TokenLightDark
Background
#fdfdfbsnow
#060703black
Foreground
#070901black
#fafbf9snow
Card
#fbfcf8snow
#090a05black
Card foreground
#040501black
#fdfdfcwhite
Popover
#fbfcf8snow
#090a05black
Popover foreground
#040501black
#fdfdfcwhite
Primary
#ecede9linen
#ecede9linen
Primary foreground
#565a49darkolivegreen
#565a49darkolivegreen
Secondary
#e9e9edlavender
#e9e9edlavender
Secondary foreground
#4d495adarkslategray
#4d495adarkslategray
Muted
#e7e6ealavender
#161519black
Muted foreground
#4e4d51darkslategray
#afaeb2darkgray
Accent
#e9e9edlavender
#e9e9edlavender
Accent foreground
#4d495adarkslategray
#4d495adarkslategray
Destructive
#993b05saddlebrown
#f25e07orangered
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ecede9linen
#ecede9linen

Contrast

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

Light mode
Text on background19.73:1AAA
Text on card19.84:1AAA
Primary button6.02:1AA
Secondary button7.16:1AAA
Muted text6.76:1AA
Accent7.16:1AAA
Destructive7.01:1AAA
Dark mode
Text on background19.45:1AAA
Text on card19.47:1AAA
Primary button6.02:1AA
Secondary button7.16:1AAA
Muted text8.22:1AAA
Accent7.16:1AAA
Destructive6.38:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.003 115.63);
  --foreground: oklch(0.134 0.025 116.296);
  --muted: oklch(0.928 0.004 295.492);
  --muted-foreground: oklch(0.424 0.005 295.352);
  --popover: oklch(0.989 0.006 115.682);
  --popover-foreground: oklch(0.106 0.02 116.296);
  --card: oklch(0.989 0.006 115.682);
  --card-foreground: oklch(0.106 0.02 116.296);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.943 0.005 115.685);
  --primary-foreground: oklch(0.459 0.026 116.617);
  --secondary: oklch(0.934 0.006 295.47);
  --secondary-foreground: oklch(0.416 0.027 294.359);
  --accent: oklch(0.934 0.006 295.47);
  --accent-foreground: oklch(0.416 0.027 294.359);
  --destructive: oklch(0.478 0.138 43.269);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.943 0.005 115.685);
  --chart-1: oklch(0.943 0.005 115.685);
  --chart-2: oklch(0.934 0.006 295.47);
  --chart-3: oklch(0.934 0.006 295.47);
  --chart-4: oklch(0.959 0.003 295.513);
  --chart-5: oklch(0.945 0.007 115.717);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.125 0.012 115.971);
  --foreground: oklch(0.987 0.003 115.626);
  --muted: oklch(0.199 0.006 294.983);
  --muted-foreground: oklch(0.753 0.005 295.468);
  --popover: oklch(0.143 0.014 115.992);
  --popover-foreground: oklch(0.993 0.001 115.602);
  --card: oklch(0.143 0.014 115.992);
  --card-foreground: oklch(0.993 0.001 115.602);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.943 0.005 115.685);
  --primary-foreground: oklch(0.459 0.026 116.617);
  --secondary: oklch(0.934 0.006 295.47);
  --secondary-foreground: oklch(0.416 0.027 294.359);
  --accent: oklch(0.934 0.006 295.47);
  --accent-foreground: oklch(0.416 0.027 294.359);
  --destructive: oklch(0.666 0.198 42.115);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.943 0.005 115.685);
  --chart-1: oklch(0.943 0.005 115.685);
  --chart-2: oklch(0.934 0.006 295.47);
  --chart-3: oklch(0.934 0.006 295.47);
  --chart-4: oklch(0.959 0.003 295.513);
  --chart-5: oklch(0.945 0.007 115.717);
}