Edupy for shadcn/ui

Edupy is a shadcn/ui theme built around a vivid green primary color (#00c247) with muted light green accents (#ccd7d0). The light mode uses a neutral background (#f8fcf9). Dark mode keeps the vivid green primary (#00c247) on a neutral background (#020302).

Color palette

TokenLightDark
Background
#f8fcf9mintcream
#020302black
Foreground
#031108black
#fcfdfcwhite
Card
#f4fbf6mintcream
#030705black
Card foreground
#020d06black
#ffffffwhite
Popover
#f8fcf9mintcream
#020302black
Popover foreground
#031108black
#fcfdfcwhite
Primary
#00c247limegreen
#00c247limegreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#42a5fecornflowerblue
#42a5fecornflowerblue
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e1e5e2gainsboro
#1e1a1ablack
Muted foreground
#5a5e5bdimgray
#a5a1a1darkgray
Accent
#ccd7d0lightgrey
#292929darkslategray
Accent foreground
#1f2923darkslategray
#c2c2c2silver
Destructive
#c61906firebrick
#d01d1dfirebrick
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e4e7e5gainsboro
#1a1e1cblack
Input
#e4e7e5gainsboro
#1a1e1cblack
Ring
#00c247limegreen
#00c247limegreen

Contrast

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

Light mode
Text on background18.66:1AAA
Text on card18.77:1AAA
Primary button2.38:1Fail
Secondary button2.60:1Fail
Muted text5.18:1AA
Accent10.10:1AAA
Destructive5.92:1AA
Dark mode
Text on background20.22:1AAA
Text on card20.26:1AAA
Primary button2.38:1Fail
Secondary button2.60:1Fail
Muted text6.74:1AA
Accent8.18:1AAA
Destructive5.41:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.006 158.581);
  --foreground: oklch(0.161 0.029 156.667);
  --muted: oklch(0.918 0.006 158.575);
  --muted-foreground: oklch(0.477 0.006 158.45);
  --popover: oklch(0.987 0.006 158.581);
  --popover-foreground: oklch(0.161 0.029 156.667);
  --card: oklch(0.981 0.009 158.51);
  --card-foreground: oklch(0.144 0.025 158.033);
  --border: oklch(0.925 0.005 158.606);
  --input: oklch(0.925 0.005 158.606);
  --primary: oklch(0.709 0.211 147.001);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.705 0.159 249.197);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.868 0.015 158.335);
  --accent-foreground: oklch(0.27 0.018 157.206);
  --destructive: oklch(0.527 0.205 30.415);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.709 0.211 147.001);
  --chart-1: oklch(0.709 0.211 147.001);
  --chart-2: oklch(0.705 0.159 249.197);
  --chart-3: oklch(0.868 0.015 158.335);
  --chart-4: oklch(0.726 0.148 248.419);
  --chart-5: oklch(0.716 0.215 146.795);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.096 0.009 158.568);
  --foreground: oklch(0.993 0.001 158.697);
  --muted: oklch(0.222 0.007 17.698);
  --muted-foreground: oklch(0.713 0.004 17.257);
  --popover: oklch(0.096 0.009 158.568);
  --popover-foreground: oklch(0.993 0.001 158.697);
  --card: oklch(0.121 0.012 158.568);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.23 0.008 157.992);
  --input: oklch(0.23 0.008 157.992);
  --primary: oklch(0.709 0.211 147.001);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.705 0.159 249.197);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.28 0 180);
  --accent-foreground: oklch(0.813 0 165.964);
  --destructive: oklch(0.549 0.21 27.788);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.709 0.211 147.001);
  --chart-1: oklch(0.709 0.211 147.001);
  --chart-2: oklch(0.705 0.159 249.197);
  --chart-3: oklch(0.28 0 180);
  --chart-4: oklch(0.726 0.148 248.419);
  --chart-5: oklch(0.716 0.215 146.795);
}