Proper for shadcn/ui

Proper is a shadcn/ui theme built around a muted yellow primary color (#7c7d68) with muted purple accents (#7d687c). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted yellow primary (#7c7d68) on a yellow-tinted background (#0a0a05).

Color palette

TokenLightDark
Background
#ffffffwhite
#0a0a05black
Foreground
#141405black
#ffffffwhite
Card
#fcfcfcsnow
#0d0d07black
Card foreground
#101004black
#ffffffwhite
Popover
#ffffffwhite
#0a0a05black
Popover foreground
#141405black
#ffffffwhite
Primary
#7c7d68gray
#7c7d68gray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#687c7dslategray
#687c7dslategray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#d8dedegainsboro
#212627darkslategray
Muted foreground
#4d5b5cdimgray
#a3b2b2darkgray
Accent
#7d687cgray
#7d687cgray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#af4004saddlebrown
#fb752dtomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#7c7d68gray
#7c7d68gray

Contrast

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

Light mode
Text on background18.55:1AAA
Text on card18.71:1AAA
Primary button4.20:1AA Large
Secondary button4.39:1AA Large
Muted text5.19:1AA
Accent5.04:1AA
Destructive5.92:1AA
Dark mode
Text on background19.83:1AAA
Text on card19.43:1AAA
Primary button4.20:1AA Large
Secondary button4.39:1AA Large
Muted text6.96:1AA
Accent5.04:1AA
Destructive7.67:1AAA

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.187 0.029 111.279);
  --muted: oklch(0.896 0.006 200.809);
  --muted-foreground: oklch(0.459 0.018 200.452);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.187 0.029 111.279);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.169 0.025 111.056);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.583 0.031 109.656);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.571 0.023 200.438);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.545 0.039 327.678);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.519 0.157 41.385);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.583 0.031 109.656);
  --chart-1: oklch(0.583 0.031 109.656);
  --chart-2: oklch(0.571 0.023 200.438);
  --chart-3: oklch(0.545 0.039 327.678);
  --chart-4: oklch(0.598 0.024 200.435);
  --chart-5: oklch(0.593 0.04 109.929);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.143 0.012 109.84);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.264 0.008 200.548);
  --muted-foreground: oklch(0.752 0.016 200.637);
  --popover: oklch(0.143 0.012 109.84);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.158 0.014 110.147);
  --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.583 0.031 109.656);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.571 0.023 200.438);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.545 0.039 327.678);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.711 0.182 45.062);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.583 0.031 109.656);
  --chart-1: oklch(0.583 0.031 109.656);
  --chart-2: oklch(0.571 0.023 200.438);
  --chart-3: oklch(0.545 0.039 327.678);
  --chart-4: oklch(0.598 0.024 200.435);
  --chart-5: oklch(0.593 0.04 109.929);
}