Enrollment for shadcn/ui

Enrollment is a shadcn/ui theme built around an orange primary color (#9f5941) with violet accents (#59419f). The light mode uses a neutral background (#ffffff). Dark mode keeps the orange primary (#9f5941) on an orange-tinted background (#0e0806).

Color palette

TokenLightDark
Background
#ffffffwhite
#0e0806black
Foreground
#000000black
#fbf9f9snow
Card
#ffffffwhite
#0e0806black
Card foreground
#000000black
#fbf9f9snow
Popover
#ffffffwhite
#0e0806black
Popover foreground
#000000black
#fbf9f9snow
Primary
#9f5941sienna
#9f5941sienna
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#419f59seagreen
#419f59seagreen
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#d2dfd5lightgrey
#202d23darkslategray
Muted foreground
#464e48darkslategray
#b1b9b3darkgray
Accent
#59419frebeccapurple
#59419frebeccapurple
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#6d0f09maroon
#ef4539tomato
Destructive foreground
#f8b4aflightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#9f5941sienna
#9f5941sienna

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button5.28:1AA
Secondary button3.30:1AA Large
Muted text6.25:1AA
Accent7.83:1AAA
Destructive7.06:1AAA
Dark mode
Text on background18.93:1AAA
Text on card18.93:1AAA
Primary button5.28:1AA
Secondary button3.30:1AA Large
Muted text7.18:1AAA
Accent7.83:1AAA
Destructive3.76:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.892 0.019 153.508);
  --muted-foreground: oklch(0.415 0.016 153.214);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --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.54 0.1 39.108);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.629 0.138 149.091);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.452 0.146 290.898);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.345 0.127 29.485);
  --destructive-foreground: oklch(0.832 0.081 23.556);
  --ring: oklch(0.54 0.1 39.108);
  --chart-1: oklch(0.54 0.1 39.108);
  --chart-2: oklch(0.629 0.138 149.091);
  --chart-3: oklch(0.452 0.146 290.898);
  --chart-4: oklch(0.661 0.145 149.06);
  --chart-5: oklch(0.541 0.107 39.059);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.143 0.011 42.506);
  --foreground: oklch(0.984 0.002 39.495);
  --muted: oklch(0.281 0.025 152.237);
  --muted-foreground: oklch(0.778 0.014 153.579);
  --popover: oklch(0.143 0.011 42.506);
  --popover-foreground: oklch(0.984 0.002 39.495);
  --card: oklch(0.143 0.011 42.506);
  --card-foreground: oklch(0.984 0.002 39.495);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.54 0.1 39.108);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.629 0.138 149.091);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.452 0.146 290.898);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.636 0.208 28.543);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.54 0.1 39.108);
  --chart-1: oklch(0.54 0.1 39.108);
  --chart-2: oklch(0.629 0.138 149.091);
  --chart-3: oklch(0.452 0.146 290.898);
  --chart-4: oklch(0.661 0.145 149.06);
  --chart-5: oklch(0.541 0.107 39.059);
}