Educated for shadcn/ui

Educated is a shadcn/ui theme built around a cyan primary color (#52bfda) with green accents (#bfda52). The light mode uses a neutral background (#ffffff). Dark mode keeps the cyan primary (#52bfda) on a neutral background (#010304).

Color palette

TokenLightDark
Background
#ffffffwhite
#010304black
Foreground
#030a0cblack
#fcfdfdwhite
Card
#fcfcfcsnow
#030707black
Card foreground
#020708black
#ffffffwhite
Popover
#ffffffwhite
#010304black
Popover foreground
#030a0cblack
#fcfdfdwhite
Primary
#52bfdamediumturquoise
#52bfdamediumturquoise
Primary foreground
#000000black
#000000black
Secondary
#da52bforchid
#da52bforchid
Secondary foreground
#000000black
#000000black
Muted
#f1e9f0whitesmoke
#160e14black
Muted foreground
#524750darkslategray
#b8adb6darkgray
Accent
#bfda52darkkhaki
#bfda52darkkhaki
Accent foreground
#000000black
#000000black
Destructive
#a73406firebrick
#f86c35tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#52bfdamediumturquoise
#52bfdamediumturquoise

Contrast

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

Light mode
Text on background19.95:1AAA
Text on card19.82:1AAA
Primary button9.85:1AAA
Secondary button5.96:1AA
Muted text7.42:1AAA
Accent13.41:1AAA
Destructive6.68:1AA
Dark mode
Text on background20.25:1AAA
Text on card20.28:1AAA
Primary button9.85:1AAA
Secondary button5.96:1AA
Muted text8.76:1AAA
Accent13.41:1AAA
Destructive7.18:1AAA

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.138 0.014 211.092);
  --muted: oklch(0.942 0.013 332.208);
  --muted-foreground: oklch(0.412 0.02 332.704);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.138 0.014 211.092);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.12 0.012 210.275);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.753 0.106 217.017);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.656 0.208 336.409);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.844 0.163 119.64);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.492 0.159 37.624);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.753 0.106 217.017);
  --chart-1: oklch(0.753 0.106 217.017);
  --chart-2: oklch(0.656 0.208 336.409);
  --chart-3: oklch(0.844 0.163 119.64);
  --chart-4: oklch(0.676 0.195 335.968);
  --chart-5: oklch(0.758 0.109 217.244);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.095 0.008 210.879);
  --foreground: oklch(0.993 0.002 214.321);
  --muted: oklch(0.176 0.02 333.567);
  --muted-foreground: oklch(0.76 0.017 332.336);
  --popover: oklch(0.095 0.008 210.879);
  --popover-foreground: oklch(0.993 0.002 214.321);
  --card: oklch(0.12 0.01 210.879);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.753 0.106 217.017);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.656 0.208 336.409);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.844 0.163 119.64);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.695 0.184 40.472);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.753 0.106 217.017);
  --chart-1: oklch(0.753 0.106 217.017);
  --chart-2: oklch(0.656 0.208 336.409);
  --chart-3: oklch(0.844 0.163 119.64);
  --chart-4: oklch(0.676 0.195 335.968);
  --chart-5: oklch(0.758 0.109 217.244);
}