Faculty for shadcn/ui

Faculty is a shadcn/ui theme built around a deep purple primary color (#411f47) with deep teal accents (#1f4741). The light mode uses a neutral background (#fbf8fc). Dark mode keeps the deep purple primary (#411f47) on a purple-tinted background (#0d060e).

Color palette

TokenLightDark
Background
#fbf8fcghostwhite
#0d060eblack
Foreground
#080109black
#f8f6f9whitesmoke
Card
#fbf8fcghostwhite
#0d060eblack
Card foreground
#080109black
#f8f6f9whitesmoke
Popover
#fbf8fcghostwhite
#0d060eblack
Popover foreground
#080109black
#f8f6f9whitesmoke
Primary
#411f47darkslategray
#411f47darkslategray
Primary foreground
#dab8e0thistle
#dab8e0thistle
Secondary
#47411fdarkolivegreen
#47411fdarkolivegreen
Secondary foreground
#e0dab8wheat
#e0dab8wheat
Muted
#efeeeblinen
#141310black
Muted foreground
#615f51dimgray
#aeab9edarkgray
Accent
#1f4741darkslategray
#1f4741darkslategray
Accent foreground
#b8e0dapowderblue
#b8e0dapowderblue
Destructive
#831e07maroon
#f4532ftomato
Destructive foreground
#fccbc0pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#411f47darkslategray
#411f47darkslategray

Contrast

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

Light mode
Text on background19.54:1AAA
Text on card19.54:1AAA
Primary button7.91:1AAA
Secondary button7.30:1AAA
Muted text5.56:1AA
Accent7.19:1AAA
Destructive6.72:1AA
Dark mode
Text on background18.60:1AAA
Text on card18.60:1AAA
Primary button7.91:1AAA
Secondary button7.30:1AAA
Muted text8.06:1AAA
Accent7.19:1AAA
Destructive3.43:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.007 320.542);
  --foreground: oklch(0.104 0.031 322.911);
  --muted: oklch(0.95 0.004 97.322);
  --muted-foreground: oklch(0.482 0.021 97.791);
  --popover: oklch(0.982 0.007 320.542);
  --popover-foreground: oklch(0.104 0.031 322.911);
  --card: oklch(0.982 0.007 320.542);
  --card-foreground: oklch(0.104 0.031 322.911);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.304 0.082 320.743);
  --primary-foreground: oklch(0.824 0.067 320.652);
  --secondary: oklch(0.372 0.052 98.259);
  --secondary-foreground: oklch(0.884 0.046 97.875);
  --accent: oklch(0.368 0.048 181.237);
  --accent-foreground: oklch(0.877 0.044 184.096);
  --destructive: oklch(0.402 0.14 33.41);
  --destructive-foreground: oklch(0.882 0.058 32.829);
  --ring: oklch(0.304 0.082 320.743);
  --chart-1: oklch(0.304 0.082 320.743);
  --chart-2: oklch(0.372 0.052 98.259);
  --chart-3: oklch(0.368 0.048 181.237);
  --chart-4: oklch(0.408 0.058 98.246);
  --chart-5: oklch(0.303 0.087 320.725);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.138 0.022 321.144);
  --foreground: oklch(0.975 0.005 320.54);
  --muted: oklch(0.187 0.007 97.697);
  --muted-foreground: oklch(0.74 0.019 97.589);
  --popover: oklch(0.138 0.022 321.144);
  --popover-foreground: oklch(0.975 0.005 320.54);
  --card: oklch(0.138 0.022 321.144);
  --card-foreground: oklch(0.975 0.005 320.54);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.304 0.082 320.743);
  --primary-foreground: oklch(0.824 0.067 320.652);
  --secondary: oklch(0.372 0.052 98.259);
  --secondary-foreground: oklch(0.884 0.046 97.875);
  --accent: oklch(0.368 0.048 181.237);
  --accent-foreground: oklch(0.877 0.044 184.096);
  --destructive: oklch(0.658 0.203 34.026);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.304 0.082 320.743);
  --chart-1: oklch(0.304 0.082 320.743);
  --chart-2: oklch(0.372 0.052 98.259);
  --chart-3: oklch(0.368 0.048 181.237);
  --chart-4: oklch(0.408 0.058 98.246);
  --chart-5: oklch(0.303 0.087 320.725);
}