Proper for shadcn/ui

Proper is a shadcn/ui theme built around a muted deep purple primary color (#513659) with muted deep purple accents (#59364f). The light mode uses a neutral background (#fbf8fc). Dark mode keeps the muted deep purple primary (#513659) on a neutral background (#030104).

Color palette

TokenLightDark
Background
#fbf8fcghostwhite
#030104black
Foreground
#070109black
#f9f5faghostwhite
Card
#f9f4fbghostwhite
#060307black
Card foreground
#040105black
#fbf8fbsnow
Popover
#fbf8fcghostwhite
#030104black
Popover foreground
#070109black
#f9f5faghostwhite
Primary
#513659darkslategray
#513659darkslategray
Primary foreground
#e5d9e8gainsboro
#e5d9e8gainsboro
Secondary
#403659darkslategray
#403659darkslategray
Secondary foreground
#ddd9e8gainsboro
#ddd9e8gainsboro
Muted
#e5e2eelavender
#14111dblack
Muted foreground
#3f3f40darkslategray
#bfbfc0silver
Accent
#59364fdarkslategray
#59364fdarkslategray
Accent foreground
#e8d9e4gainsboro
#e8d9e4gainsboro
Destructive
#81230esaddlebrown
#e74a27chocolate
Destructive foreground
#f9d1c8pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#513659darkslategray
#513659darkslategray

Contrast

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

Light mode
Text on background19.57:1AAA
Text on card19.15:1AAA
Primary button7.61:1AAA
Secondary button8.01:1AAA
Muted text8.22:1AAA
Accent7.49:1AAA
Destructive6.88:1AA
Dark mode
Text on background19.24:1AAA
Text on card19.46:1AAA
Primary button7.61:1AAA
Secondary button8.01:1AAA
Muted text10.15:1AAA
Accent7.49:1AAA
Destructive3.87:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.007 318.888);
  --foreground: oklch(0.102 0.034 321.625);
  --muted: oklch(0.918 0.018 298.973);
  --muted-foreground: oklch(0.369 0.002 299.202);
  --popover: oklch(0.982 0.007 318.888);
  --popover-foreground: oklch(0.102 0.034 321.625);
  --card: oklch(0.973 0.01 318.887);
  --card-foreground: oklch(0.081 0.027 321.625);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.379 0.066 318.782);
  --primary-foreground: oklch(0.899 0.023 318.881);
  --secondary: oklch(0.36 0.059 296.334);
  --secondary-foreground: oklch(0.893 0.02 298.913);
  --accent: oklch(0.384 0.061 337.878);
  --accent-foreground: oklch(0.9 0.021 335.616);
  --destructive: oklch(0.404 0.131 33.832);
  --destructive-foreground: oklch(0.892 0.047 32.77);
  --ring: oklch(0.379 0.066 318.782);
  --chart-1: oklch(0.379 0.066 318.782);
  --chart-2: oklch(0.36 0.059 296.334);
  --chart-3: oklch(0.384 0.061 337.878);
  --chart-4: oklch(0.385 0.064 296.276);
  --chart-5: oklch(0.378 0.074 318.752);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.086 0.015 320.394);
  --foreground: oklch(0.974 0.007 318.888);
  --muted: oklch(0.187 0.026 296.797);
  --muted-foreground: oklch(0.804 0.002 299.266);
  --popover: oklch(0.086 0.015 320.394);
  --popover-foreground: oklch(0.974 0.007 318.888);
  --card: oklch(0.108 0.019 320.394);
  --card-foreground: oklch(0.983 0.005 318.889);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.379 0.066 318.782);
  --primary-foreground: oklch(0.899 0.023 318.881);
  --secondary: oklch(0.36 0.059 296.334);
  --secondary-foreground: oklch(0.893 0.02 298.913);
  --accent: oklch(0.384 0.061 337.878);
  --accent-foreground: oklch(0.9 0.021 335.616);
  --destructive: oklch(0.627 0.199 33.945);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.379 0.066 318.782);
  --chart-1: oklch(0.379 0.066 318.782);
  --chart-2: oklch(0.36 0.059 296.334);
  --chart-3: oklch(0.384 0.061 337.878);
  --chart-4: oklch(0.385 0.064 296.276);
  --chart-5: oklch(0.378 0.074 318.752);
}