Appropriate for shadcn/ui

Appropriate is a shadcn/ui theme built around a red primary color (#df4020) with indigo accents (#4020df). The light mode uses a neutral background (#fefcfb). Dark mode keeps the red primary (#df4020) on a neutral background (#040201).

Color palette

TokenLightDark
Background
#fefcfbsnow
#040201black
Foreground
#0d0402black
#f8f7f7whitesmoke
Card
#fefcfbsnow
#040201black
Card foreground
#0d0402black
#f8f7f7whitesmoke
Popover
#fefcfbsnow
#040201black
Popover foreground
#0d0402black
#f8f7f7whitesmoke
Primary
#df4020chocolate
#df4020chocolate
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#20df40limegreen
#20df40limegreen
Secondary foreground
#062d0dblack
#062d0dblack
Muted
#e7e9e7lavender
#161816black
Muted foreground
#364939darkslategray
#b6c9b9silver
Accent
#4020dfroyalblue
#4020dfroyalblue
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#6f0801maroon
#fd4235tomato
Destructive foreground
#feaaa4lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#df4020chocolate
#df4020chocolate

Contrast

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

Light mode
Text on background19.77:1AAA
Text on card19.77:1AAA
Primary button4.29:1AA Large
Secondary button8.42:1AAA
Muted text7.94:1AAA
Accent8.43:1AAA
Destructive6.70:1AA
Dark mode
Text on background19.38:1AAA
Text on card19.38:1AAA
Primary button4.29:1AA Large
Secondary button8.42:1AAA
Muted text10.23:1AAA
Accent8.43:1AAA
Destructive3.49:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.002 31.048);
  --foreground: oklch(0.123 0.024 40.385);
  --muted: oklch(0.932 0.004 150.769);
  --muted-foreground: oklch(0.385 0.036 149.449);
  --popover: oklch(0.991 0.002 31.048);
  --popover-foreground: oklch(0.123 0.024 40.385);
  --card: oklch(0.991 0.002 31.048);
  --card-foreground: oklch(0.123 0.024 40.385);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.602 0.201 33.036);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.788 0.244 144.483);
  --secondary-foreground: oklch(0.26 0.07 146.013);
  --accent: oklch(0.45 0.258 275.901);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.345 0.135 30.476);
  --destructive-foreground: oklch(0.819 0.1 23.977);
  --ring: oklch(0.602 0.201 33.036);
  --chart-1: oklch(0.602 0.201 33.036);
  --chart-2: oklch(0.788 0.244 144.483);
  --chart-3: oklch(0.45 0.258 275.901);
  --chart-4: oklch(0.795 0.236 144.963);
  --chart-5: oklch(0.606 0.207 32.925);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.087 0.01 36.21);
  --foreground: oklch(0.977 0.002 31.047);
  --muted: oklch(0.206 0.005 150.475);
  --muted-foreground: oklch(0.816 0.03 150.302);
  --popover: oklch(0.087 0.01 36.21);
  --popover-foreground: oklch(0.977 0.002 31.047);
  --card: oklch(0.087 0.01 36.21);
  --card-foreground: oklch(0.977 0.002 31.047);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.602 0.201 33.036);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.788 0.244 144.483);
  --secondary-foreground: oklch(0.26 0.07 146.013);
  --accent: oklch(0.45 0.258 275.901);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.657 0.224 28.88);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.602 0.201 33.036);
  --chart-1: oklch(0.602 0.201 33.036);
  --chart-2: oklch(0.788 0.244 144.483);
  --chart-3: oklch(0.45 0.258 275.901);
  --chart-4: oklch(0.795 0.236 144.963);
  --chart-5: oklch(0.606 0.207 32.925);
}