Proper for shadcn/ui

Proper is a shadcn/ui theme built around a vivid green primary color (#d9ed73) with muted light red accents (#cec5c5). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid green primary (#d9ed73) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#0f1203black
#fafaf9snow
Card
#ffffffwhite
#000000black
Card foreground
#0f1203black
#fafaf9snow
Popover
#ffffffwhite
#000000black
Popover foreground
#0f1203black
#fafaf9snow
Primary
#d9ed73khaki
#d9ed73khaki
Primary foreground
#232905black
#232905black
Secondary
#dededegainsboro
#2f2f2ddarkslategray
Secondary foreground
#454545darkslategray
#c8c8c6silver
Muted
#e2d5d5gainsboro
#282a1ddarkslategray
Muted foreground
#5c4d4ddimgray
#b0b2a3darkgray
Accent
#cec5c5silver
#3e4035darkslategray
Accent foreground
#352c2cdarkslategray
#d6d8d0lightgrey
Destructive
#8c2b0dsaddlebrown
#d24014chocolate
Destructive foreground
#fbdad0bisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d9ed73khaki
#d9ed73khaki

Contrast

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

Light mode
Text on background18.95:1AAA
Text on card18.95:1AAA
Primary button11.70:1AAA
Secondary button7.11:1AAA
Muted text5.59:1AA
Accent8.00:1AAA
Destructive6.51:1AA
Dark mode
Text on background20.10:1AAA
Text on card20.10:1AAA
Primary button11.70:1AAA
Secondary button8.03:1AAA
Muted text6.76:1AA
Accent7.33:1AAA
Destructive4.68:1AA

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.173 0.031 116.538);
  --muted: oklch(0.883 0.014 17.426);
  --muted-foreground: oklch(0.434 0.02 17.966);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.173 0.031 116.538);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.173 0.031 116.538);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.906 0.149 117.313);
  --primary-foreground: oklch(0.265 0.055 118.396);
  --secondary: oklch(0.9 0 188.746);
  --secondary-foreground: oklch(0.39 0 165.964);
  --accent: oklch(0.83 0.011 17.374);
  --accent-foreground: oklch(0.303 0.013 17.882);
  --destructive: oklch(0.433 0.137 36.13);
  --destructive-foreground: oklch(0.913 0.039 37.607);
  --ring: oklch(0.906 0.149 117.313);
  --chart-1: oklch(0.906 0.149 117.313);
  --chart-2: oklch(0.9 0 188.746);
  --chart-3: oklch(0.83 0.011 17.374);
  --chart-4: oklch(0.923 0 153.435);
  --chart-5: oklch(0.912 0.153 117.411);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.986 0.001 114.094);
  --muted: oklch(0.279 0.023 115.583);
  --muted-foreground: oklch(0.759 0.021 114.588);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.986 0.001 114.094);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.986 0.001 114.094);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.906 0.149 117.313);
  --primary-foreground: oklch(0.265 0.055 118.396);
  --secondary: oklch(0.303 0.003 114.266);
  --secondary-foreground: oklch(0.832 0.003 114.135);
  --accent: oklch(0.366 0.018 114.964);
  --accent-foreground: oklch(0.878 0.011 114.291);
  --destructive: oklch(0.58 0.19 35.72);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.906 0.149 117.313);
  --chart-1: oklch(0.906 0.149 117.313);
  --chart-2: oklch(0.303 0.003 114.266);
  --chart-3: oklch(0.366 0.018 114.964);
  --chart-4: oklch(0.334 0.004 114.273);
  --chart-5: oklch(0.912 0.153 117.411);
}