Academy for shadcn/ui

Academy is a shadcn/ui theme built around a muted light green primary color (#cedcc7) with muted light pink accents (#dcc7ce). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light green primary (#cedcc7) on a green-tinted background (#070a05).

Color palette

TokenLightDark
Background
#ffffffwhite
#070a05black
Foreground
#000000black
#fcfdfcwhite
Card
#fcfcfcsnow
#090e07black
Card foreground
#000000black
#ffffffwhite
Popover
#ffffffwhite
#070a05black
Popover foreground
#000000black
#fcfdfcwhite
Primary
#cedcc7lightgrey
#cedcc7lightgrey
Primary foreground
#34452bdarkslategray
#34452bdarkslategray
Secondary
#c7cedclightgrey
#c7cedclightgrey
Secondary foreground
#2b3445darkslategray
#2b3445darkslategray
Muted
#e4e7eclavender
#13161bblack
Muted foreground
#576175dimgray
#8a94a8lightslategray
Accent
#dcc7cethistle
#dcc7cethistle
Accent foreground
#452b34darkslategray
#452b34darkslategray
Destructive
#89280bsaddlebrown
#ed5526chocolate
Destructive foreground
#fbd6cbbisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#cedcc7lightgrey
#cedcc7lightgrey

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card20.54:1AAA
Primary button7.20:1AAA
Secondary button7.89:1AAA
Muted text5.01:1AA
Accent7.91:1AAA
Destructive6.56:1AA
Dark mode
Text on background19.51:1AAA
Text on card19.52:1AAA
Primary button7.20:1AAA
Secondary button7.89:1AAA
Muted text5.95:1AA
Accent7.91:1AAA
Destructive3.54:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.927 0.008 263.038);
  --muted-foreground: oklch(0.492 0.035 262.786);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.877 0.032 134.429);
  --primary-foreground: oklch(0.368 0.048 135.053);
  --secondary: oklch(0.85 0.021 262.994);
  --secondary-foreground: oklch(0.325 0.032 262.61);
  --accent: oklch(0.848 0.026 354.428);
  --accent-foreground: oklch(0.325 0.041 356.98);
  --destructive: oklch(0.425 0.136 35.994);
  --destructive-foreground: oklch(0.905 0.044 37.6);
  --ring: oklch(0.877 0.032 134.429);
  --chart-1: oklch(0.877 0.032 134.429);
  --chart-2: oklch(0.85 0.021 262.994);
  --chart-3: oklch(0.848 0.026 354.428);
  --chart-4: oklch(0.875 0.017 263.009);
  --chart-5: oklch(0.879 0.036 134.456);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.139 0.014 133.276);
  --foreground: oklch(0.994 0.003 134.235);
  --muted: oklch(0.198 0.012 262.846);
  --muted-foreground: oklch(0.666 0.032 262.9);
  --popover: oklch(0.139 0.014 133.276);
  --popover-foreground: oklch(0.994 0.003 134.235);
  --card: oklch(0.154 0.016 133.889);
  --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.877 0.032 134.429);
  --primary-foreground: oklch(0.368 0.048 135.053);
  --secondary: oklch(0.85 0.021 262.994);
  --secondary-foreground: oklch(0.325 0.032 262.61);
  --accent: oklch(0.848 0.026 354.428);
  --accent-foreground: oklch(0.325 0.041 356.98);
  --destructive: oklch(0.649 0.197 36.55);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.877 0.032 134.429);
  --chart-1: oklch(0.877 0.032 134.429);
  --chart-2: oklch(0.85 0.021 262.994);
  --chart-3: oklch(0.848 0.026 354.428);
  --chart-4: oklch(0.875 0.017 263.009);
  --chart-5: oklch(0.879 0.036 134.456);
}