Strident for shadcn/ui

Strident is a shadcn/ui theme built around a muted deep red primary color (#322524) with neutral gray accents (#cfcece). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep red primary (#322524) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#000000black
#fbf9f9snow
Card
#ffffffwhite
#000000black
Card foreground
#000000black
#fbf9f9snow
Popover
#ffffffwhite
#000000black
Popover foreground
#000000black
#fbf9f9snow
Primary
#322524darkslategray
#322524darkslategray
Primary foreground
#cebcbbsilver
#cebcbbsilver
Secondary
#cfcecelightgrey
#313030darkslategray
Secondary foreground
#363535darkslategray
#cac9c9silver
Muted
#eddfdegainsboro
#211312black
Muted foreground
#666666dimgray
#999999darkgray
Accent
#cfcecelightgrey
#313030darkslategray
Accent foreground
#363535darkslategray
#cac9c9silver
Destructive
#900b09darkred
#e1120ered
Destructive foreground
#fcd0cfpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#322524darkslategray
#322524darkslategray

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button8.08:1AAA
Secondary button7.79:1AAA
Muted text4.41:1AA Large
Accent7.79:1AAA
Destructive6.73:1AA
Dark mode
Text on background20.02:1AAA
Text on card20.02:1AAA
Primary button8.08:1AAA
Secondary button7.96:1AAA
Muted text6.33:1AA
Accent7.96:1AAA
Destructive4.87:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.914 0.016 19.85);
  --muted-foreground: oklch(0.51 0 171.87);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.28 0.02 20.743);
  --primary-foreground: oklch(0.809 0.021 19.974);
  --secondary: oklch(0.852 0.001 19.623);
  --secondary-foreground: oklch(0.33 0.001 19.667);
  --accent: oklch(0.852 0.001 19.623);
  --accent-foreground: oklch(0.33 0.001 19.667);
  --destructive: oklch(0.415 0.163 28.712);
  --destructive-foreground: oklch(0.895 0.05 19.27);
  --ring: oklch(0.28 0.02 20.743);
  --chart-1: oklch(0.28 0.02 20.743);
  --chart-2: oklch(0.852 0.001 19.623);
  --chart-3: oklch(0.852 0.001 19.623);
  --chart-4: oklch(0.876 0.001 19.619);
  --chart-5: oklch(0.278 0.024 21.005);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.983 0.003 19.644);
  --muted: oklch(0.204 0.024 21.552);
  --muted-foreground: oklch(0.683 0 180);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.983 0.003 19.644);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.983 0.003 19.644);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.28 0.02 20.743);
  --primary-foreground: oklch(0.809 0.021 19.974);
  --secondary: oklch(0.31 0.001 19.666);
  --secondary-foreground: oklch(0.837 0.001 19.625);
  --accent: oklch(0.31 0.001 19.666);
  --accent-foreground: oklch(0.837 0.001 19.625);
  --destructive: oklch(0.576 0.23 28.953);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.28 0.02 20.743);
  --chart-1: oklch(0.28 0.02 20.743);
  --chart-2: oklch(0.31 0.001 19.666);
  --chart-3: oklch(0.31 0.001 19.666);
  --chart-4: oklch(0.34 0.002 19.668);
  --chart-5: oklch(0.278 0.024 21.005);
}