Flustered for shadcn/ui

Flustered is a shadcn/ui theme built around a muted deep red primary color (#0e0c0b) with muted deep cyan accents (#0b0e0e). The light mode uses a neutral background (#fcf8f8). Dark mode keeps the muted deep red primary (#0e0c0b) on a red-tinted background (#0f0606).

Color palette

TokenLightDark
Background
#fcf8f8snow
#0f0606black
Foreground
#000000black
#fbf9f8snow
Card
#faf5f4whitesmoke
#130807black
Card foreground
#000000black
#fdfcfcsnow
Popover
#faf5f4whitesmoke
#130807black
Popover foreground
#000000black
#fdfcfcsnow
Primary
#0e0c0bblack
#0e0c0bblack
Primary foreground
#b09d9bdarkgray
#b09d9bdarkgray
Secondary
#0b0e0eblack
#0b0e0eblack
Secondary foreground
#9baeb0darkgray
#9baeb0darkgray
Muted
#cee6e8gainsboro
#172e31darkslategray
Muted foreground
#394546darkslategray
#b9c4c6silver
Accent
#0b0e0eblack
#0b0e0eblack
Accent foreground
#9baeb0darkgray
#9baeb0darkgray
Destructive
#c64415chocolate
#ea6839tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0e0c0bblack
#0e0c0bblack

Contrast

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

Light mode
Text on background19.95:1AAA
Text on card19.44:1AAA
Primary button7.57:1AAA
Secondary button8.37:1AAA
Muted text7.60:1AAA
Accent8.37:1AAA
Destructive4.93:1AA
Dark mode
Text on background19.04:1AAA
Text on card19.25:1AAA
Primary button7.57:1AAA
Secondary button8.37:1AAA
Muted text8.00:1AAA
Accent8.37:1AAA
Destructive6.53:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.004 25.021);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.907 0.025 204.807);
  --muted-foreground: oklch(0.38 0.015 204.748);
  --popover: oklch(0.974 0.006 25.037);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.974 0.006 25.037);
  --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.155 0.005 25.27);
  --primary-foreground: oklch(0.713 0.023 25.284);
  --secondary: oklch(0.161 0.005 204.802);
  --secondary-foreground: oklch(0.738 0.022 204.796);
  --accent: oklch(0.161 0.005 204.802);
  --accent-foreground: oklch(0.738 0.022 204.796);
  --destructive: oklch(0.565 0.175 37.828);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.155 0.005 25.27);
  --chart-1: oklch(0.155 0.005 25.27);
  --chart-2: oklch(0.161 0.005 204.802);
  --chart-3: oklch(0.161 0.005 204.802);
  --chart-4: oklch(0.197 0.007 204.769);
  --chart-5: oklch(0.155 0.006 25.355);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.138 0.017 28.344);
  --foreground: oklch(0.983 0.003 25.015);
  --muted: oklch(0.283 0.029 204.819);
  --muted-foreground: oklch(0.813 0.013 204.876);
  --popover: oklch(0.15 0.02 27.744);
  --popover-foreground: oklch(0.992 0.002 25.002);
  --card: oklch(0.15 0.02 27.744);
  --card-foreground: oklch(0.992 0.002 25.002);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.155 0.005 25.27);
  --primary-foreground: oklch(0.713 0.023 25.284);
  --secondary: oklch(0.161 0.005 204.802);
  --secondary-foreground: oklch(0.738 0.022 204.796);
  --accent: oklch(0.161 0.005 204.802);
  --accent-foreground: oklch(0.738 0.022 204.796);
  --destructive: oklch(0.67 0.173 39.576);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.155 0.005 25.27);
  --chart-1: oklch(0.155 0.005 25.27);
  --chart-2: oklch(0.161 0.005 204.802);
  --chart-3: oklch(0.161 0.005 204.802);
  --chart-4: oklch(0.197 0.007 204.769);
  --chart-5: oklch(0.155 0.006 25.355);
}