Innocence for shadcn/ui

Innocence is a shadcn/ui theme built around a red primary color (#c21e29) with muted light red accents (#e6e0e0). The light mode uses a neutral background (#fefbfb). Dark mode keeps the red primary (#c21e29) on a red-tinted background (#100405).

Color palette

TokenLightDark
Background
#fefbfbsnow
#100405black
Foreground
#110304black
#f9f6f6whitesmoke
Card
#fcf8f8snow
#140506black
Card foreground
#0d0203black
#fbf9f9snow
Popover
#fefbfbsnow
#100405black
Popover foreground
#110304black
#f9f6f6whitesmoke
Primary
#c21e29firebrick
#c21e29firebrick
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#e6e0e0gainsboro
#2f2324darkslategray
Secondary foreground
#524243darkslategray
#cab9basilver
Muted
#efe7e7linen
#181011black
Muted foreground
#614c4edimgray
#b39e9fdarkgray
Accent
#e6e0e0gainsboro
#2f2324darkslategray
Accent foreground
#524243darkslategray
#cab9basilver
Destructive
#992e00saddlebrown
#ff6929tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c21e29firebrick
#c21e29firebrick

Contrast

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

Light mode
Text on background19.67:1AAA
Text on card19.35:1AAA
Primary button5.96:1AA
Secondary button7.25:1AAA
Muted text6.48:1AA
Accent7.25:1AAA
Destructive7.65:1AAA
Dark mode
Text on background18.74:1AAA
Text on card18.96:1AAA
Primary button5.96:1AA
Secondary button8.05:1AAA
Muted text7.39:1AAA
Accent8.05:1AAA
Destructive7.30:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.002 12.478);
  --foreground: oklch(0.13 0.03 15.999);
  --muted: oklch(0.933 0.009 12.626);
  --muted-foreground: oklch(0.44 0.028 13.792);
  --popover: oklch(0.991 0.002 12.478);
  --popover-foreground: oklch(0.13 0.03 15.999);
  --card: oklch(0.982 0.005 12.531);
  --card-foreground: oklch(0.116 0.026 15.363);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.525 0.196 24.765);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.911 0.007 12.581);
  --secondary-foreground: oklch(0.396 0.023 13.636);
  --accent: oklch(0.911 0.007 12.581);
  --accent-foreground: oklch(0.396 0.023 13.636);
  --destructive: oklch(0.46 0.15 38.208);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.525 0.196 24.765);
  --chart-1: oklch(0.525 0.196 24.765);
  --chart-2: oklch(0.911 0.007 12.581);
  --chart-3: oklch(0.911 0.007 12.581);
  --chart-4: oklch(0.936 0.005 12.535);
  --chart-5: oklch(0.529 0.201 25.266);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.132 0.026 15.358);
  --foreground: oklch(0.975 0.003 12.487);
  --muted: oklch(0.185 0.014 14.018);
  --muted-foreground: oklch(0.718 0.025 13.147);
  --popover: oklch(0.132 0.026 15.358);
  --popover-foreground: oklch(0.975 0.003 12.487);
  --card: oklch(0.144 0.03 16.082);
  --card-foreground: oklch(0.984 0.002 12.466);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.525 0.196 24.765);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.27 0.018 13.805);
  --secondary-foreground: oklch(0.801 0.02 12.939);
  --accent: oklch(0.27 0.018 13.805);
  --accent-foreground: oklch(0.801 0.02 12.939);
  --destructive: oklch(0.701 0.197 40.79);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.525 0.196 24.765);
  --chart-1: oklch(0.525 0.196 24.765);
  --chart-2: oklch(0.27 0.018 13.805);
  --chart-3: oklch(0.27 0.018 13.805);
  --chart-4: oklch(0.3 0.02 13.87);
  --chart-5: oklch(0.529 0.201 25.266);
}