Subdued for shadcn/ui

Subdued is a shadcn/ui theme built around a vivid red primary color (#931f0b) with muted red accents (#c6bab8). The light mode uses a neutral background (#fdfcfb). Dark mode keeps the vivid red primary (#931f0b) on a red-tinted background (#0b0505).

Color palette

TokenLightDark
Background
#fdfcfbsnow
#0b0505black
Foreground
#0c0503black
#faf5f5whitesmoke
Card
#fdfcfbsnow
#0b0505black
Card foreground
#0c0503black
#faf5f5whitesmoke
Popover
#fdfcfbsnow
#0b0505black
Popover foreground
#0c0503black
#faf5f5whitesmoke
Primary
#931f0bdarkred
#931f0bdarkred
Primary foreground
#fcdad4mistyrose
#fcdad4mistyrose
Secondary
#d0cecelightgrey
#2a2422darkslategray
Secondary foreground
#373534darkslategray
#c6bbb9silver
Muted
#f5f1f0whitesmoke
#0f0b0ablack
Muted foreground
#554744darkslategray
#bbadaadarkgray
Accent
#c6bab8silver
#493532darkslategray
Accent foreground
#2a2322darkslategray
#ded1celightgrey
Destructive
#920702darkred
#fc3831tomato
Destructive foreground
#fecac8pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#931f0bdarkred
#931f0bdarkred

Contrast

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

Light mode
Text on background19.72:1AAA
Text on card19.72:1AAA
Primary button6.58:1AA
Secondary button7.76:1AAA
Muted text7.86:1AAA
Accent8.19:1AAA
Destructive6.44:1AA
Dark mode
Text on background18.70:1AAA
Text on card18.70:1AAA
Primary button6.58:1AA
Secondary button8.18:1AAA
Muted text9.01:1AAA
Accent7.68:1AAA
Destructive3.65: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.992 0.002 29.474);
  --foreground: oklch(0.125 0.017 35.369);
  --muted: oklch(0.96 0.005 29.484);
  --muted-foreground: oklch(0.41 0.02 29.719);
  --popover: oklch(0.992 0.002 29.474);
  --popover-foreground: oklch(0.125 0.017 35.369);
  --card: oklch(0.992 0.002 29.474);
  --card-foreground: oklch(0.125 0.017 35.369);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.435 0.154 32.151);
  --primary-foreground: oklch(0.915 0.038 29.672);
  --secondary: oklch(0.852 0.002 29.475);
  --secondary-foreground: oklch(0.33 0.003 29.495);
  --accent: oklch(0.799 0.014 29.534);
  --accent-foreground: oklch(0.265 0.011 29.673);
  --destructive: oklch(0.417 0.167 29.554);
  --destructive-foreground: oklch(0.883 0.06 20.654);
  --ring: oklch(0.435 0.154 32.151);
  --chart-1: oklch(0.435 0.154 32.151);
  --chart-2: oklch(0.852 0.002 29.475);
  --chart-3: oklch(0.799 0.014 29.534);
  --chart-4: oklch(0.876 0.002 29.474);
  --chart-5: oklch(0.438 0.158 32.044);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.127 0.012 33.343);
  --foreground: oklch(0.975 0.005 29.485);
  --muted: oklch(0.155 0.007 29.71);
  --muted-foreground: oklch(0.758 0.017 29.558);
  --popover: oklch(0.127 0.012 33.343);
  --popover-foreground: oklch(0.975 0.005 29.485);
  --card: oklch(0.127 0.012 33.343);
  --card-foreground: oklch(0.975 0.005 29.485);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.435 0.154 32.151);
  --primary-foreground: oklch(0.915 0.038 29.672);
  --secondary: oklch(0.265 0.01 29.647);
  --secondary-foreground: oklch(0.8 0.013 29.527);
  --accent: oklch(0.35 0.029 30.001);
  --accent-foreground: oklch(0.87 0.015 29.534);
  --destructive: oklch(0.647 0.231 27.97);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.435 0.154 32.151);
  --chart-1: oklch(0.435 0.154 32.151);
  --chart-2: oklch(0.265 0.01 29.647);
  --chart-3: oklch(0.35 0.029 30.001);
  --chart-4: oklch(0.296 0.012 29.659);
  --chart-5: oklch(0.438 0.158 32.044);
}