Personnel for shadcn/ui

Personnel is a shadcn/ui theme built around a teal primary color (#4bddd1) with red accents (#dd4b57). The light mode uses a neutral background (#fcfdfd). Dark mode keeps the teal primary (#4bddd1) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fcfdfdwhite
#000000black
Foreground
#031110black
#f5fafamintcream
Card
#f8fcfbmintcream
#030303black
Card foreground
#020d0cblack
#f8fcfbmintcream
Popover
#fcfdfdwhite
#000000black
Popover foreground
#031110black
#f5fafamintcream
Primary
#4bddd1turquoise
#4bddd1turquoise
Primary foreground
#000000black
#000000black
Secondary
#dd4b57indianred
#dd4b57indianred
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#ded8d9gainsboro
#272121black
Muted foreground
#74585adimgray
#a78b8drosybrown
Accent
#dd4b57indianred
#dd4b57indianred
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#b94d0esienna
#e45e11chocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#4bddd1turquoise
#4bddd1turquoise

Contrast

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

Light mode
Text on background18.90:1AAA
Text on card19.03:1AAA
Primary button12.53:1AAA
Secondary button4.02:1AA Large
Muted text4.55:1AA
Accent4.02:1AA Large
Destructive5.09:1AA
Dark mode
Text on background19.93:1AAA
Text on card19.99:1AAA
Primary button12.53:1AAA
Secondary button4.02:1AA Large
Muted text5.08:1AA
Accent4.02:1AA Large
Destructive3.55:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.002 191.207);
  --foreground: oklch(0.165 0.023 188.785);
  --muted: oklch(0.888 0.006 11.405);
  --muted-foreground: oklch(0.49 0.038 12.973);
  --popover: oklch(0.994 0.002 191.207);
  --popover-foreground: oklch(0.165 0.023 188.785);
  --card: oklch(0.987 0.004 191.163);
  --card-foreground: oklch(0.147 0.02 189.545);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.817 0.123 187.095);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.617 0.181 19.492);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.617 0.181 19.492);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.554 0.155 44.111);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.817 0.123 187.095);
  --chart-1: oklch(0.817 0.123 187.095);
  --chart-2: oklch(0.617 0.181 19.492);
  --chart-3: oklch(0.617 0.181 19.492);
  --chart-4: oklch(0.639 0.169 18.322);
  --chart-5: oklch(0.825 0.127 186.952);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.981 0.006 191.126);
  --muted: oklch(0.254 0.009 12.007);
  --muted-foreground: oklch(0.663 0.035 12.406);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.981 0.006 191.126);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.987 0.004 191.168);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.817 0.123 187.095);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.617 0.181 19.492);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.617 0.181 19.492);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.644 0.183 43.727);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.817 0.123 187.095);
  --chart-1: oklch(0.817 0.123 187.095);
  --chart-2: oklch(0.617 0.181 19.492);
  --chart-3: oklch(0.617 0.181 19.492);
  --chart-4: oklch(0.639 0.169 18.322);
  --chart-5: oklch(0.825 0.127 186.952);
}