University for shadcn/ui

University is a shadcn/ui theme built around a neutral gray primary color (#827373) with neutral gray accents (#827a73). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#827373) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#110404black
#faf5f5whitesmoke
Card
#ffffffwhite
#000000black
Card foreground
#110404black
#faf5f5whitesmoke
Popover
#ffffffwhite
#000000black
Popover foreground
#110404black
#faf5f5whitesmoke
Primary
#827373gray
#827373gray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#82737bgray
#82737bgray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#ded3d9gainsboro
#2c2126darkslategray
Muted foreground
#434242darkslategray
#bdbcbdsilver
Accent
#827a73gray
#827a73gray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#bb1007firebrick
#ec1409red
Destructive foreground
#fff6f5lavenderblush
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#827373gray
#827373gray

Contrast

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

Light mode
Text on background20.13:1AAA
Text on card20.13:1AAA
Primary button4.51:1AA
Secondary button4.48:1AA Large
Muted text6.88:1AA
Accent4.21:1AA Large
Destructive6.19:1AA
Dark mode
Text on background19.44:1AAA
Text on card19.44:1AAA
Primary button4.51:1AA
Secondary button4.48:1AA Large
Muted text8.22:1AAA
Accent4.21:1AA Large
Destructive4.48:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.13 0.028 20.159);
  --muted: oklch(0.878 0.015 344.716);
  --muted-foreground: oklch(0.379 0.002 344.429);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.13 0.028 20.159);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.13 0.028 20.159);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.569 0.018 16.553);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.572 0.021 345.216);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.585 0.014 65.67);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.502 0.199 29.519);
  --destructive-foreground: oklch(0.979 0.01 21.016);
  --ring: oklch(0.569 0.018 16.553);
  --chart-1: oklch(0.569 0.018 16.553);
  --chart-2: oklch(0.572 0.021 345.216);
  --chart-3: oklch(0.585 0.014 65.67);
  --chart-4: oklch(0.597 0.022 345.185);
  --chart-5: oklch(0.564 0.028 16.875);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.973 0.006 16.084);
  --muted: oklch(0.262 0.02 346.179);
  --muted-foreground: oklch(0.797 0.002 344.343);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.973 0.006 16.084);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.973 0.006 16.084);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.569 0.018 16.553);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.572 0.021 345.216);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.585 0.014 65.67);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.597 0.239 29.508);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.569 0.018 16.553);
  --chart-1: oklch(0.569 0.018 16.553);
  --chart-2: oklch(0.572 0.021 345.216);
  --chart-3: oklch(0.585 0.014 65.67);
  --chart-4: oklch(0.597 0.022 345.185);
  --chart-5: oklch(0.564 0.028 16.875);
}