Administrator for shadcn/ui

Administrator is a shadcn/ui theme built around a muted pink primary color (#5e454f) with muted teal accents (#455e54). The light mode uses a neutral background (#fefbfc). Dark mode keeps the muted pink primary (#5e454f) on a pink-tinted background (#0e0609).

Color palette

TokenLightDark
Background
#fefbfcsnow
#0e0609black
Foreground
#000000black
#fbf8fasnow
Card
#fdf7f9snow
#12080cblack
Card foreground
#000000black
#fdfcfcsnow
Popover
#fdf7f9snow
#12080cblack
Popover foreground
#000000black
#fdfcfcsnow
Primary
#5e454fdimgray
#5e454fdimgray
Primary foreground
#eee8ealinen
#eee8ealinen
Secondary
#455e54darkslategray
#455e54darkslategray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#d8e9e2gainsboro
#162720black
Muted foreground
#3e4140darkslategray
#bec1c0silver
Accent
#455e54darkslategray
#455e54darkslategray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#d21904firebrick
#eb1c05red
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#5e454fdimgray
#5e454fdimgray

Contrast

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

Light mode
Text on background20.42:1AAA
Text on card19.85:1AAA
Primary button7.09:1AAA
Secondary button7.04:1AAA
Muted text8.20:1AAA
Accent7.04:1AAA
Destructive5.41:1AA
Dark mode
Text on background18.96:1AAA
Text on card19.27:1AAA
Primary button7.09:1AAA
Secondary button7.04:1AAA
Muted text8.56:1AAA
Accent7.04:1AAA
Destructive4.47:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 350.718);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.92 0.021 169.953);
  --muted-foreground: oklch(0.373 0.004 170.328);
  --popover: oklch(0.981 0.007 350.815);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.981 0.007 350.815);
  --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.421 0.037 352.957);
  --primary-foreground: oklch(0.935 0.007 350.845);
  --secondary: oklch(0.458 0.034 168.327);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.458 0.034 168.327);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.55 0.215 30.379);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.421 0.037 352.957);
  --chart-1: oklch(0.421 0.037 352.957);
  --chart-2: oklch(0.458 0.034 168.327);
  --chart-3: oklch(0.458 0.034 168.327);
  --chart-4: oklch(0.488 0.036 168.297);
  --chart-5: oklch(0.419 0.044 353.433);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.138 0.018 351.795);
  --foreground: oklch(0.983 0.004 350.724);
  --muted: oklch(0.257 0.027 167.063);
  --muted-foreground: oklch(0.807 0.003 170.511);
  --popover: oklch(0.15 0.02 353.579);
  --popover-foreground: oklch(0.991 0.002 350.673);
  --card: oklch(0.15 0.02 353.579);
  --card-foreground: oklch(0.991 0.002 350.673);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.421 0.037 352.957);
  --primary-foreground: oklch(0.935 0.007 350.845);
  --secondary: oklch(0.458 0.034 168.327);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.458 0.034 168.327);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.598 0.235 30.313);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.421 0.037 352.957);
  --chart-1: oklch(0.421 0.037 352.957);
  --chart-2: oklch(0.458 0.034 168.327);
  --chart-3: oklch(0.458 0.034 168.327);
  --chart-4: oklch(0.488 0.036 168.297);
  --chart-5: oklch(0.419 0.044 353.433);
}