Proper for shadcn/ui

Proper is a shadcn/ui theme built around a deep red primary color (#350b09) with deep indigo accents (#0b0935). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep red primary (#350b09) on a red-tinted background (#0a0505).

Color palette

TokenLightDark
Background
#ffffffwhite
#0a0505black
Foreground
#100504black
#ffffffwhite
Card
#fcfcfcsnow
#0e0707black
Card foreground
#0c0403black
#ffffffwhite
Popover
#ffffffwhite
#0a0505black
Popover foreground
#100504black
#ffffffwhite
Primary
#350b09black
#350b09black
Primary foreground
#eb8984lightcoral
#eb8984lightcoral
Secondary
#09350bdarkgreen
#09350bdarkgreen
Secondary foreground
#2cdd35limegreen
#2cdd35limegreen
Muted
#e2f3e3beige
#0c1d0dblack
Muted foreground
#575b58dimgray
#a4a8a4darkgray
Accent
#0b0935black
#0b0935black
Accent foreground
#dddcf9lavender
#dddcf9lavender
Destructive
#d01e11firebrick
#ef4134tomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#350b09black
#350b09black

Contrast

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

Light mode
Text on background20.08:1AAA
Text on card19.86:1AAA
Primary button7.03:1AAA
Secondary button7.57:1AAA
Muted text5.96:1AA
Accent14.23:1AAA
Destructive5.44:1AA
Dark mode
Text on background20.21:1AAA
Text on card19.95:1AAA
Primary button7.03:1AAA
Secondary button7.57:1AAA
Muted text7.30:1AAA
Accent14.23:1AAA
Destructive3.85:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.134 0.023 25.092);
  --muted: oklch(0.947 0.027 146.771);
  --muted-foreground: oklch(0.467 0.007 146.898);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.134 0.023 25.092);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.121 0.02 25.213);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.223 0.068 27.112);
  --primary-foreground: oklch(0.734 0.12 23.615);
  --secondary: oklch(0.288 0.083 143.692);
  --secondary-foreground: oklch(0.782 0.245 143.262);
  --accent: oklch(0.18 0.083 276.388);
  --accent-foreground: oklch(0.904 0.04 287.867);
  --destructive: oklch(0.548 0.211 29.706);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.223 0.068 27.112);
  --chart-1: oklch(0.223 0.068 27.112);
  --chart-2: oklch(0.288 0.083 143.692);
  --chart-3: oklch(0.18 0.083 276.388);
  --chart-4: oklch(0.332 0.099 143.536);
  --chart-5: oklch(0.224 0.07 27.515);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.126 0.011 22.94);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.209 0.037 145.174);
  --muted-foreground: oklch(0.726 0.006 146.958);
  --popover: oklch(0.126 0.011 22.94);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.139 0.012 22.807);
  --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.223 0.068 27.112);
  --primary-foreground: oklch(0.734 0.12 23.615);
  --secondary: oklch(0.288 0.083 143.692);
  --secondary-foreground: oklch(0.782 0.245 143.262);
  --accent: oklch(0.18 0.083 276.388);
  --accent-foreground: oklch(0.904 0.04 287.867);
  --destructive: oklch(0.631 0.212 28.759);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.223 0.068 27.112);
  --chart-1: oklch(0.223 0.068 27.112);
  --chart-2: oklch(0.288 0.083 143.692);
  --chart-3: oklch(0.18 0.083 276.388);
  --chart-4: oklch(0.332 0.099 143.536);
  --chart-5: oklch(0.224 0.07 27.515);
}