Uniform for shadcn/ui

Uniform is a shadcn/ui theme built around a deep yellow primary color (#41310c) with deep green accents (#36410c). The light mode uses a neutral background (#fcfbf8). Dark mode keeps the deep yellow primary (#41310c) on a neutral background (#070603).

Color palette

TokenLightDark
Background
#fcfbf8snow
#070603black
Foreground
#100c05black
#fbfaf9snow
Card
#faf8f5whitesmoke
#0b0905black
Card foreground
#0c0904black
#fdfdfcwhite
Popover
#faf8f5whitesmoke
#0b0905black
Popover foreground
#0c0904black
#fdfdfcwhite
Primary
#41310cdarkolivegreen
#41310cdarkolivegreen
Primary foreground
#ebd193khaki
#ebd193khaki
Secondary
#41160cmaroon
#41160cmaroon
Secondary foreground
#eba593burlywood
#eba593burlywood
Muted
#e7d0cblightgrey
#341e18black
Muted foreground
#493a37darkslategray
#c8bab6silver
Accent
#36410cdarkolivegreen
#36410cdarkolivegreen
Accent foreground
#bcdb3dyellowgreen
#bcdb3dyellowgreen
Destructive
#990806darkred
#f72f2bcrimson
Destructive foreground
#fdd3d3pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#41310cdarkolivegreen
#41310cdarkolivegreen

Contrast

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

Light mode
Text on background18.78:1AAA
Text on card18.79:1AAA
Primary button8.45:1AAA
Secondary button7.68:1AAA
Muted text7.35:1AAA
Accent6.98:1AA
Destructive6.47:1AA
Dark mode
Text on background19.43:1AAA
Text on card19.56:1AAA
Primary button8.45:1AAA
Secondary button7.68:1AAA
Muted text8.29:1AAA
Accent6.98:1AA
Destructive3.88:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.003 87.438);
  --foreground: oklch(0.157 0.018 89.796);
  --muted: oklch(0.876 0.027 34.302);
  --muted-foreground: oklch(0.364 0.021 34.356);
  --popover: oklch(0.98 0.005 87.447);
  --popover-foreground: oklch(0.142 0.016 92.24);
  --card: oklch(0.98 0.005 87.447);
  --card-foreground: oklch(0.142 0.016 92.24);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.322 0.056 84.866);
  --primary-foreground: oklch(0.868 0.084 87.368);
  --secondary: oklch(0.266 0.069 35.206);
  --secondary-foreground: oklch(0.785 0.088 34.585);
  --accent: oklch(0.353 0.075 120.345);
  --accent-foreground: oklch(0.842 0.18 120.407);
  --destructive: oklch(0.431 0.172 29.048);
  --destructive-foreground: oklch(0.904 0.047 19.209);
  --ring: oklch(0.322 0.056 84.866);
  --chart-1: oklch(0.322 0.056 84.866);
  --chart-2: oklch(0.266 0.069 35.206);
  --chart-3: oklch(0.353 0.075 120.345);
  --chart-4: oklch(0.298 0.08 35.183);
  --chart-5: oklch(0.325 0.058 84.563);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.122 0.01 91.533);
  --foreground: oklch(0.986 0.002 87.433);
  --muted: oklch(0.262 0.037 34.758);
  --muted-foreground: oklch(0.799 0.017 34.297);
  --popover: oklch(0.139 0.012 91.441);
  --popover-foreground: oklch(0.993 0.001 87.426);
  --card: oklch(0.139 0.012 91.441);
  --card-foreground: oklch(0.993 0.001 87.426);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.322 0.056 84.866);
  --primary-foreground: oklch(0.868 0.084 87.368);
  --secondary: oklch(0.266 0.069 35.206);
  --secondary-foreground: oklch(0.785 0.088 34.585);
  --accent: oklch(0.353 0.075 120.345);
  --accent-foreground: oklch(0.842 0.18 120.407);
  --destructive: oklch(0.632 0.234 27.775);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.322 0.056 84.866);
  --chart-1: oklch(0.322 0.056 84.866);
  --chart-2: oklch(0.266 0.069 35.206);
  --chart-3: oklch(0.353 0.075 120.345);
  --chart-4: oklch(0.298 0.08 35.183);
  --chart-5: oklch(0.325 0.058 84.563);
}