Proper for shadcn/ui

Proper is a shadcn/ui theme built around a muted indigo primary color (#8b8c9c) with muted yellow accents (#9c9b8b). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted indigo primary (#8b8c9c) on a neutral background (#020204).

Color palette

TokenLightDark
Background
#ffffffwhite
#020204black
Foreground
#030416black
#ffffffwhite
Card
#ffffffwhite
#020204black
Card foreground
#030416black
#ffffffwhite
Popover
#ffffffwhite
#020204black
Popover foreground
#030416black
#ffffffwhite
Primary
#8b8c9clightslategray
#8b8c9clightslategray
Primary foreground
#000000black
#000000black
Secondary
#9c9b8brosybrown
#9c9b8brosybrown
Secondary foreground
#000000black
#000000black
Muted
#f1f0e4linen
#1b1a0eblack
Muted foreground
#5e5e5edimgray
#a1a1a1darkgray
Accent
#9c9b8brosybrown
#9c9b8brosybrown
Accent foreground
#000000black
#000000black
Destructive
#b3320ffirebrick
#ec4213orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#8b8c9clightslategray
#8b8c9clightslategray

Contrast

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

Light mode
Text on background20.33:1AAA
Text on card20.33:1AAA
Primary button6.36:1AA
Secondary button7.50:1AAA
Muted text5.66:1AA
Accent7.50:1AAA
Destructive6.19:1AA
Dark mode
Text on background20.77:1AAA
Text on card20.77:1AAA
Primary button6.36:1AA
Secondary button7.50:1AAA
Muted text6.77:1AA
Accent7.50:1AAA
Destructive3.92: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.123 0.043 273.229);
  --muted: oklch(0.953 0.016 103.379);
  --muted-foreground: oklch(0.483 0 180);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.123 0.043 273.229);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.123 0.043 273.229);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.646 0.024 282.462);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.687 0.023 103.647);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.687 0.023 103.647);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.512 0.171 34.866);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.646 0.024 282.462);
  --chart-1: oklch(0.646 0.024 282.462);
  --chart-2: oklch(0.687 0.023 103.647);
  --chart-3: oklch(0.687 0.023 103.647);
  --chart-4: oklch(0.71 0.021 103.591);
  --chart-5: oklch(0.639 0.033 282.191);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.082 0.011 279.529);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.214 0.022 104.594);
  --muted-foreground: oklch(0.708 0 158.199);
  --popover: oklch(0.082 0.011 279.529);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.082 0.011 279.529);
  --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.646 0.024 282.462);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.687 0.023 103.647);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.687 0.023 103.647);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.626 0.213 34.626);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.646 0.024 282.462);
  --chart-1: oklch(0.646 0.024 282.462);
  --chart-2: oklch(0.687 0.023 103.647);
  --chart-3: oklch(0.687 0.023 103.647);
  --chart-4: oklch(0.71 0.021 103.591);
  --chart-5: oklch(0.639 0.033 282.191);
}