Administration for shadcn/ui

Administration is a shadcn/ui theme built around a muted deep yellow primary color (#453e31) with muted deep green accents (#414531). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep yellow primary (#453e31) on a neutral background (#040301).

Color palette

TokenLightDark
Background
#ffffffwhite
#040301black
Foreground
#100c05black
#fdfdfcwhite
Card
#fcfcfcsnow
#080602black
Card foreground
#0c0904black
#ffffffwhite
Popover
#ffffffwhite
#040301black
Popover foreground
#100c05black
#fdfdfcwhite
Primary
#453e31darkslategray
#453e31darkslategray
Primary foreground
#dbd6cclightgrey
#dbd6cclightgrey
Secondary
#453431darkslategray
#453431darkslategray
Secondary foreground
#dbcfcclightgrey
#dbcfcclightgrey
Muted
#eeedeclinen
#131111black
Muted foreground
#705b57dimgray
#a8938frosybrown
Accent
#414531darkslategray
#414531darkslategray
Accent foreground
#d9dbcclightgrey
#d9dbcclightgrey
Destructive
#da3f01orangered
#fe6a2ftomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#453e31darkslategray
#453e31darkslategray

Contrast

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

Light mode
Text on background19.50:1AAA
Text on card19.44:1AAA
Primary button7.31:1AAA
Secondary button7.73:1AAA
Muted text5.39:1AA
Accent7.07:1AAA
Destructive4.47:1AA Large
Dark mode
Text on background20.25:1AAA
Text on card20.25:1AAA
Primary button7.31:1AAA
Secondary button7.73:1AAA
Muted text6.47:1AA
Accent7.07:1AAA
Destructive7.29:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.156 0.017 86.99);
  --muted: oklch(0.946 0.002 31.047);
  --muted-foreground: oklch(0.491 0.029 31.28);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.156 0.017 86.99);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.141 0.015 89.718);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.366 0.024 84.501);
  --primary-foreground: oklch(0.878 0.014 84.585);
  --secondary: oklch(0.342 0.025 31.364);
  --secondary-foreground: oklch(0.863 0.014 31.079);
  --accent: oklch(0.38 0.033 115.666);
  --accent-foreground: oklch(0.886 0.02 114.486);
  --destructive: oklch(0.592 0.2 36.434);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.366 0.024 84.501);
  --chart-1: oklch(0.366 0.024 84.501);
  --chart-2: oklch(0.342 0.025 31.364);
  --chart-3: oklch(0.38 0.033 115.666);
  --chart-4: oklch(0.371 0.028 31.377);
  --chart-5: oklch(0.369 0.028 84.434);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.097 0.01 90.065);
  --foreground: oklch(0.993 0.001 84.553);
  --muted: oklch(0.18 0.003 31.072);
  --muted-foreground: oklch(0.681 0.027 31.167);
  --popover: oklch(0.097 0.01 90.065);
  --popover-foreground: oklch(0.993 0.001 84.553);
  --card: oklch(0.123 0.013 90.065);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.366 0.024 84.501);
  --primary-foreground: oklch(0.878 0.014 84.585);
  --secondary: oklch(0.342 0.025 31.364);
  --secondary-foreground: oklch(0.863 0.014 31.079);
  --accent: oklch(0.38 0.033 115.666);
  --accent-foreground: oklch(0.886 0.02 114.486);
  --destructive: oklch(0.701 0.194 40.039);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.366 0.024 84.501);
  --chart-1: oklch(0.366 0.024 84.501);
  --chart-2: oklch(0.342 0.025 31.364);
  --chart-3: oklch(0.38 0.033 115.666);
  --chart-4: oklch(0.371 0.028 31.377);
  --chart-5: oklch(0.369 0.028 84.434);
}