Subdued for shadcn/ui

Subdued is a shadcn/ui theme built around a muted deep red primary color (#514345) with muted deep orange accents (#514743). The light mode uses a neutral background (#fcf8f9). Dark mode keeps the muted deep red primary (#514345) on a red-tinted background (#100406).

Color palette

TokenLightDark
Background
#fcf8f9snow
#100406black
Foreground
#080203black
#ffffffwhite
Card
#faf4f5whitesmoke
#140608black
Card foreground
#040102black
#ffffffwhite
Popover
#fcf8f9snow
#100406black
Popover foreground
#080203black
#ffffffwhite
Primary
#514345darkslategray
#514345darkslategray
Primary foreground
#e6e0e1gainsboro
#e6e0e1gainsboro
Secondary
#51434cdarkslategray
#51434cdarkslategray
Secondary foreground
#e6e0e4gainsboro
#e6e0e4gainsboro
Muted
#f3edf1whitesmoke
#120c10black
Muted foreground
#53414ddarkslategray
#beacb8silver
Accent
#514743darkslategray
#514743darkslategray
Accent foreground
#e6e2e0gainsboro
#e6e2e0gainsboro
Destructive
#662705maroon
#ef5b0borangered
Destructive foreground
#fbc1a2navajowhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#514345darkslategray
#514345darkslategray

Contrast

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

Light mode
Text on background19.51:1AAA
Text on card19.17:1AAA
Primary button7.22:1AAA
Secondary button7.17:1AAA
Muted text8.13:1AAA
Accent6.95:1AA
Destructive7.12:1AAA
Dark mode
Text on background20.11:1AAA
Text on card19.86:1AAA
Primary button7.22:1AAA
Secondary button7.17:1AAA
Muted text8.99:1AAA
Accent6.95:1AA
Destructive3.41:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.004 5.566);
  --foreground: oklch(0.106 0.016 5.959);
  --muted: oklch(0.951 0.008 337.444);
  --muted-foreground: oklch(0.399 0.031 338.749);
  --popover: oklch(0.982 0.004 5.566);
  --popover-foreground: oklch(0.106 0.016 5.959);
  --card: oklch(0.973 0.007 5.627);
  --card-foreground: oklch(0.084 0.013 5.959);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.397 0.021 6.777);
  --primary-foreground: oklch(0.912 0.006 5.626);
  --secondary: oklch(0.4 0.026 338.504);
  --secondary-foreground: oklch(0.913 0.008 337.438);
  --accent: oklch(0.408 0.016 48.315);
  --accent-foreground: oklch(0.915 0.005 48.686);
  --destructive: oklch(0.36 0.101 43.76);
  --destructive-foreground: oklch(0.856 0.078 49.587);
  --ring: oklch(0.397 0.021 6.777);
  --chart-1: oklch(0.397 0.021 6.777);
  --chart-2: oklch(0.4 0.026 338.504);
  --chart-3: oklch(0.408 0.016 48.315);
  --chart-4: oklch(0.428 0.028 338.523);
  --chart-5: oklch(0.394 0.027 7.202);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.133 0.024 7.179);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.165 0.013 338.8);
  --muted-foreground: oklch(0.764 0.026 337.939);
  --popover: oklch(0.133 0.024 7.179);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.146 0.028 8.46);
  --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.397 0.021 6.777);
  --primary-foreground: oklch(0.912 0.006 5.626);
  --secondary: oklch(0.4 0.026 338.504);
  --secondary-foreground: oklch(0.913 0.008 337.438);
  --accent: oklch(0.408 0.016 48.315);
  --accent-foreground: oklch(0.915 0.005 48.686);
  --destructive: oklch(0.657 0.197 41.486);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.397 0.021 6.777);
  --chart-1: oklch(0.397 0.021 6.777);
  --chart-2: oklch(0.4 0.026 338.504);
  --chart-3: oklch(0.408 0.016 48.315);
  --chart-4: oklch(0.428 0.028 338.523);
  --chart-5: oklch(0.394 0.027 7.202);
}