Strident for shadcn/ui

Strident is a shadcn/ui theme built around a red primary color (#dd6e6e) with indigo accents (#6e6edd). The light mode uses a neutral background (#fefbfb). Dark mode keeps the red primary (#dd6e6e) on a red-tinted background (#0e0606).

Color palette

TokenLightDark
Background
#fefbfbsnow
#0e0606black
Foreground
#0c0303black
#f9f6f6whitesmoke
Card
#fdf6f6snow
#120808black
Card foreground
#080202black
#fbf9f9snow
Popover
#fefbfbsnow
#0e0606black
Popover foreground
#0c0303black
#f9f6f6whitesmoke
Primary
#dd6e6eindianred
#dd6e6eindianred
Primary foreground
#150505black
#150505black
Secondary
#6edd6elightgreen
#6edd6elightgreen
Secondary foreground
#051505black
#051505black
Muted
#eaf5eahoneydew
#0a150ablack
Muted foreground
#4b534bdarkslategray
#acb4acdarkgray
Accent
#6e6eddmediumslateblue
#6e6eddmediumslateblue
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#6f0606maroon
#de0d0dred
Destructive foreground
#faadadlightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#dd6e6eindianred
#dd6e6eindianred

Contrast

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

Light mode
Text on background19.78:1AAA
Text on card19.37:1AAA
Primary button6.20:1AA
Secondary button10.97:1AAA
Muted text7.11:1AAA
Accent4.23:1AA Large
Destructive6.83:1AA
Dark mode
Text on background18.63:1AAA
Text on card18.85:1AAA
Primary button6.20:1AA
Secondary button10.97:1AAA
Muted text8.79:1AAA
Accent4.23:1AA Large
Destructive5.04:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.004 17.22);
  --foreground: oklch(0.118 0.022 20.823);
  --muted: oklch(0.959 0.019 145.428);
  --muted-foreground: oklch(0.433 0.016 145.286);
  --popover: oklch(0.99 0.004 17.22);
  --popover-foreground: oklch(0.118 0.022 20.823);
  --card: oklch(0.98 0.007 17.283);
  --card-foreground: oklch(0.103 0.019 20.789);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.669 0.139 21.482);
  --primary-foreground: oklch(0.143 0.031 21.755);
  --secondary: oklch(0.807 0.181 143.671);
  --secondary-foreground: oklch(0.174 0.04 143.6);
  --accent: oklch(0.595 0.164 280.164);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.344 0.135 28.289);
  --destructive-foreground: oklch(0.822 0.091 19.201);
  --ring: oklch(0.669 0.139 21.482);
  --chart-1: oklch(0.669 0.139 21.482);
  --chart-2: oklch(0.807 0.181 143.671);
  --chart-3: oklch(0.595 0.164 280.164);
  --chart-4: oklch(0.821 0.167 143.863);
  --chart-5: oklch(0.668 0.145 21.758);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.136 0.016 19.368);
  --foreground: oklch(0.975 0.004 17.219);
  --muted: oklch(0.18 0.027 144.334);
  --muted-foreground: oklch(0.761 0.014 145.434);
  --popover: oklch(0.136 0.016 19.368);
  --popover-foreground: oklch(0.975 0.004 17.219);
  --card: oklch(0.148 0.019 19.557);
  --card-foreground: oklch(0.983 0.002 17.198);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.669 0.139 21.482);
  --primary-foreground: oklch(0.143 0.031 21.755);
  --secondary: oklch(0.807 0.181 143.671);
  --secondary-foreground: oklch(0.174 0.04 143.6);
  --accent: oklch(0.595 0.164 280.164);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.568 0.229 28.797);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.669 0.139 21.482);
  --chart-1: oklch(0.669 0.139 21.482);
  --chart-2: oklch(0.807 0.181 143.671);
  --chart-3: oklch(0.595 0.164 280.164);
  --chart-4: oklch(0.821 0.167 143.863);
  --chart-5: oklch(0.668 0.145 21.758);
}