Understatement for shadcn/ui

Understatement is a shadcn/ui theme built around an orange primary color (#76532d) with violet accents (#532d76). The light mode uses a neutral background (#ffffff). Dark mode keeps the orange primary (#76532d) on a neutral background (#070503).

Color palette

TokenLightDark
Background
#ffffffwhite
#070503black
Foreground
#100a05black
#fcfaf8snow
Card
#ffffffwhite
#070503black
Card foreground
#100a05black
#fcfaf8snow
Popover
#ffffffwhite
#070503black
Popover foreground
#100a05black
#fcfaf8snow
Primary
#76532dsaddlebrown
#76532dsaddlebrown
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#2d7653seagreen
#2d7653seagreen
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#d1e6dcgainsboro
#192e24darkslategray
Muted foreground
#43514adarkslategray
#aebcb5silver
Accent
#532d76darkslateblue
#532d76darkslateblue
Accent foreground
#ebe1f4lavender
#ebe1f4lavender
Destructive
#792506maroon
#f46734tomato
Destructive foreground
#fbc9b6peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#76532dsaddlebrown
#76532dsaddlebrown

Contrast

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

Light mode
Text on background19.66:1AAA
Text on card19.66:1AAA
Primary button6.89:1AA
Secondary button5.46:1AA
Muted text6.37:1AA
Accent8.29:1AAA
Destructive6.78:1AA
Dark mode
Text on background19.51:1AAA
Text on card19.51:1AAA
Primary button6.89:1AA
Secondary button5.46:1AA
Muted text7.30:1AAA
Accent8.29:1AAA
Destructive6.84:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.151 0.016 73.185);
  --muted: oklch(0.906 0.026 165.235);
  --muted-foreground: oklch(0.42 0.02 164.682);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.151 0.016 73.185);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.151 0.016 73.185);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.471 0.071 66.405);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.511 0.093 159.298);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.383 0.123 305.121);
  --accent-foreground: oklch(0.924 0.027 308.824);
  --destructive: oklch(0.392 0.123 37.664);
  --destructive-foreground: oklch(0.875 0.063 40.927);
  --ring: oklch(0.471 0.071 66.405);
  --chart-1: oklch(0.471 0.071 66.405);
  --chart-2: oklch(0.511 0.093 159.298);
  --chart-3: oklch(0.383 0.123 305.121);
  --chart-4: oklch(0.544 0.1 159.215);
  --chart-5: oklch(0.474 0.075 66.023);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.119 0.01 75.917);
  --foreground: oklch(0.986 0.003 69.621);
  --muted: oklch(0.28 0.033 162.342);
  --muted-foreground: oklch(0.782 0.017 165.416);
  --popover: oklch(0.119 0.01 75.917);
  --popover-foreground: oklch(0.986 0.003 69.621);
  --card: oklch(0.119 0.01 75.917);
  --card-foreground: oklch(0.986 0.003 69.621);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.471 0.071 66.405);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.511 0.093 159.298);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.383 0.123 305.121);
  --accent-foreground: oklch(0.924 0.027 308.824);
  --destructive: oklch(0.683 0.186 39.241);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.471 0.071 66.405);
  --chart-1: oklch(0.471 0.071 66.405);
  --chart-2: oklch(0.511 0.093 159.298);
  --chart-3: oklch(0.383 0.123 305.121);
  --chart-4: oklch(0.544 0.1 159.215);
  --chart-5: oklch(0.474 0.075 66.023);
}