Enrollment for shadcn/ui

Enrollment is a shadcn/ui theme built around a vivid cyan primary color (#1fb4ea) with muted cyan accents (#abbdc4). The light mode uses a neutral background (#f8fbfc). Dark mode keeps the vivid cyan primary (#1fb4ea) on a neutral background (#040607).

Color palette

TokenLightDark
Background
#f8fbfcghostwhite
#040607black
Foreground
#000000black
#f6f8f8whitesmoke
Card
#f8fbfcghostwhite
#040607black
Card foreground
#000000black
#f6f8f8whitesmoke
Popover
#f8fbfcghostwhite
#040607black
Popover foreground
#000000black
#f6f8f8whitesmoke
Primary
#1fb4eadeepskyblue
#1fb4eadeepskyblue
Primary foreground
#052a38darkslategray
#052a38darkslategray
Secondary
#cdd3d5lightgrey
#181e20black
Secondary foreground
#333a3ddarkslategray
#abbabfsilver
Muted
#dcdfe0gainsboro
#1f2223black
Muted foreground
#394346darkslategray
#b9c2c6silver
Accent
#abbdc4silver
#232f34darkslategray
Accent foreground
#192124black
#b9cad0lightsteelblue
Destructive
#ad360bfirebrick
#f05219orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#1fb4eadeepskyblue
#1fb4eadeepskyblue

Contrast

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

Light mode
Text on background20.16:1AAA
Text on card20.16:1AAA
Primary button6.29:1AA
Secondary button7.65:1AAA
Muted text7.57:1AAA
Accent8.43:1AAA
Destructive6.36:1AA
Dark mode
Text on background19.07:1AAA
Text on card19.07:1AAA
Primary button6.29:1AA
Secondary button8.44:1AAA
Muted text8.82:1AAA
Accent8.10:1AAA
Destructive3.53:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.986 0.003 221.333);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.901 0.004 221.343);
  --muted-foreground: oklch(0.375 0.014 221.694);
  --popover: oklch(0.986 0.003 221.333);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.986 0.003 221.333);
  --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.722 0.138 229.804);
  --primary-foreground: oklch(0.269 0.047 227.233);
  --secondary: oklch(0.863 0.007 221.379);
  --secondary-foreground: oklch(0.344 0.011 221.638);
  --accent: oklch(0.788 0.022 221.581);
  --accent-foreground: oklch(0.242 0.012 221.907);
  --destructive: oklch(0.504 0.162 37.197);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.722 0.138 229.804);
  --chart-1: oklch(0.722 0.138 229.804);
  --chart-2: oklch(0.863 0.007 221.379);
  --chart-3: oklch(0.788 0.022 221.581);
  --chart-4: oklch(0.886 0.006 221.364);
  --chart-5: oklch(0.727 0.141 230.282);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.117 0.007 218.371);
  --foreground: oklch(0.978 0.002 221.321);
  --muted: oklch(0.25 0.006 221.519);
  --muted-foreground: oklch(0.809 0.011 221.434);
  --popover: oklch(0.117 0.007 218.371);
  --popover-foreground: oklch(0.978 0.002 221.321);
  --card: oklch(0.117 0.007 218.371);
  --card-foreground: oklch(0.978 0.002 221.321);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.722 0.138 229.804);
  --primary-foreground: oklch(0.269 0.047 227.233);
  --secondary: oklch(0.23 0.009 221.76);
  --secondary-foreground: oklch(0.779 0.019 221.539);
  --accent: oklch(0.297 0.019 222.151);
  --accent-foreground: oklch(0.827 0.021 221.552);
  --destructive: oklch(0.65 0.204 37.604);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.722 0.138 229.804);
  --chart-1: oklch(0.722 0.138 229.804);
  --chart-2: oklch(0.23 0.009 221.76);
  --chart-3: oklch(0.297 0.019 222.151);
  --chart-4: oklch(0.263 0.012 221.804);
  --chart-5: oklch(0.727 0.141 230.282);
}