Content for shadcn/ui

Content is a shadcn/ui theme built around a vivid green primary color (#80fb4b) with vivid green accents (#4bfb6e). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid green primary (#80fb4b) on a green-tinted background (#060b04).

Color palette

TokenLightDark
Background
#ffffffwhite
#060b04black
Foreground
#020401black
#f9fcf8mintcream
Card
#ffffffwhite
#060b04black
Card foreground
#020401black
#f9fcf8mintcream
Popover
#ffffffwhite
#060b04black
Popover foreground
#020401black
#f9fcf8mintcream
Primary
#80fb4bgreenyellow
#80fb4bgreenyellow
Primary foreground
#061400black
#061400black
Secondary
#d8fb4bgreenyellow
#d8fb4bgreenyellow
Secondary foreground
#101400black
#101400black
Muted
#eaebe6linen
#181914black
Muted foreground
#4e4f4adarkslategray
#b4b5b0darkgray
Accent
#4bfb6emediumseagreen
#4bfb6emediumseagreen
Accent foreground
#001404black
#001404black
Destructive
#a22810firebrick
#e93e1corangered
Destructive foreground
#fdebe8linen
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#80fb4bgreenyellow
#80fb4bgreenyellow

Contrast

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

Light mode
Text on background20.58:1AAA
Text on card20.58:1AAA
Primary button14.31:1AAA
Secondary button15.92:1AAA
Muted text6.86:1AA
Accent13.94:1AAA
Destructive6.36:1AA
Dark mode
Text on background19.19:1AAA
Text on card19.19:1AAA
Primary button14.31:1AAA
Secondary button15.92:1AAA
Muted text8.52:1AAA
Accent13.94:1AAA
Destructive4.07:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.1 0.02 134.057);
  --muted: oklch(0.937 0.007 115.712);
  --muted-foreground: oklch(0.424 0.008 115.904);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.1 0.02 134.057);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.1 0.02 134.057);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.884 0.237 138.016);
  --primary-foreground: oklch(0.172 0.048 134.596);
  --secondary: oklch(0.933 0.197 120.288);
  --secondary-foreground: oklch(0.181 0.041 118.432);
  --accent: oklch(0.872 0.233 146.486);
  --accent-foreground: oklch(0.167 0.046 149.384);
  --destructive: oklch(0.472 0.162 32.898);
  --destructive-foreground: oklch(0.954 0.02 31.092);
  --ring: oklch(0.884 0.237 138.016);
  --chart-1: oklch(0.884 0.237 138.016);
  --chart-2: oklch(0.933 0.197 120.288);
  --chart-3: oklch(0.872 0.233 146.486);
  --chart-4: oklch(0.937 0.186 119.826);
  --chart-5: oklch(0.89 0.242 138.101);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.141 0.019 134.759);
  --foreground: oklch(0.987 0.005 136.041);
  --muted: oklch(0.212 0.01 116.422);
  --muted-foreground: oklch(0.77 0.006 115.733);
  --popover: oklch(0.141 0.019 134.759);
  --popover-foreground: oklch(0.987 0.005 136.041);
  --card: oklch(0.141 0.019 134.759);
  --card-foreground: oklch(0.987 0.005 136.041);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.884 0.237 138.016);
  --primary-foreground: oklch(0.172 0.048 134.596);
  --secondary: oklch(0.933 0.197 120.288);
  --secondary-foreground: oklch(0.181 0.041 118.432);
  --accent: oklch(0.872 0.233 146.486);
  --accent-foreground: oklch(0.167 0.046 149.384);
  --destructive: oklch(0.616 0.212 32.886);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.884 0.237 138.016);
  --chart-1: oklch(0.884 0.237 138.016);
  --chart-2: oklch(0.933 0.197 120.288);
  --chart-3: oklch(0.872 0.233 146.486);
  --chart-4: oklch(0.937 0.186 119.826);
  --chart-5: oklch(0.89 0.242 138.101);
}