Educated for shadcn/ui

Educated is a shadcn/ui theme built around a green primary color (#71db39) with violet accents (#a239db). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#71db39) on a green-tinted background (#090f05).

Color palette

TokenLightDark
Background
#ffffffwhite
#090f05black
Foreground
#0b1406black
#f7f9f6whitesmoke
Card
#fcfcfcsnow
#0b1306black
Card foreground
#091005black
#fafbf9snow
Popover
#ffffffwhite
#090f05black
Popover foreground
#0b1406black
#f7f9f6whitesmoke
Primary
#71db39yellowgreen
#71db39yellowgreen
Primary foreground
#1c3c0bdarkgreen
#1c3c0bdarkgreen
Secondary
#a239dbdarkorchid
#a239dbdarkorchid
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#dfdae1gainsboro
#221e25black
Muted foreground
#4d4d4ddarkslategray
#b3b3b3darkgray
Accent
#a239dbdarkorchid
#a239dbdarkorchid
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#c52911firebrick
#ee563ftomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#71db39yellowgreen
#71db39yellowgreen

Contrast

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

Light mode
Text on background18.80:1AAA
Text on card18.88:1AAA
Primary button6.97:1AA
Secondary button5.07:1AA
Muted text6.14:1AA
Accent5.07:1AA
Destructive5.67:1AA
Dark mode
Text on background18.30:1AAA
Text on card18.21:1AAA
Primary button6.97:1AA
Secondary button5.07:1AA
Muted text7.84:1AAA
Accent5.07:1AA
Destructive6.04:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.175 0.03 134.628);
  --muted: oklch(0.895 0.011 314.151);
  --muted-foreground: oklch(0.418 0 173.29);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.175 0.03 134.628);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.16 0.026 133.652);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.797 0.216 137.066);
  --primary-foreground: oklch(0.321 0.084 136.818);
  --secondary: oklch(0.569 0.236 310.578);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.569 0.236 310.578);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.536 0.195 31.527);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.797 0.216 137.066);
  --chart-1: oklch(0.797 0.216 137.066);
  --chart-2: oklch(0.569 0.236 310.578);
  --chart-3: oklch(0.569 0.236 310.578);
  --chart-4: oklch(0.592 0.226 311.183);
  --chart-5: oklch(0.805 0.223 137.22);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.159 0.025 133.687);
  --foreground: oklch(0.98 0.005 134.251);
  --muted: oklch(0.241 0.015 313.871);
  --muted-foreground: oklch(0.765 0 172.405);
  --popover: oklch(0.159 0.025 133.687);
  --popover-foreground: oklch(0.98 0.005 134.251);
  --card: oklch(0.174 0.029 134.658);
  --card-foreground: oklch(0.987 0.004 134.24);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.797 0.216 137.066);
  --primary-foreground: oklch(0.321 0.084 136.818);
  --secondary: oklch(0.569 0.236 310.578);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.569 0.236 310.578);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.654 0.192 31.362);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.797 0.216 137.066);
  --chart-1: oklch(0.797 0.216 137.066);
  --chart-2: oklch(0.569 0.236 310.578);
  --chart-3: oklch(0.569 0.236 310.578);
  --chart-4: oklch(0.592 0.226 311.183);
  --chart-5: oklch(0.805 0.223 137.22);
}