Flustered for shadcn/ui

Flustered is a shadcn/ui theme built around a muted light red primary color (#efe6e6) with muted light indigo accents (#e6e6ef). The light mode uses a neutral background (#fcf8f8). Dark mode keeps the muted light red primary (#efe6e6) on a neutral background (#040101).

Color palette

TokenLightDark
Background
#fcf8f8snow
#040101black
Foreground
#0f0506black
#faf4f5whitesmoke
Card
#fbf4f4lavenderblush
#080203black
Card foreground
#0b0404black
#fcf8f8snow
Popover
#fbf4f4lavenderblush
#080203black
Popover foreground
#0b0404black
#fcf8f8snow
Primary
#efe6e6linen
#efe6e6linen
Primary foreground
#643f41darkolivegreen
#643f41darkolivegreen
Secondary
#e6efe6beige
#e6efe6beige
Secondary foreground
#182618black
#182618black
Muted
#d3ead2gainsboro
#162d15black
Muted foreground
#404f40darkslategray
#b1bfb0silver
Accent
#e6e6eflavender
#e6e6eflavender
Accent foreground
#3f4164darkslategray
#3f4164darkslategray
Destructive
#702e0asaddlebrown
#ee8044coral
Destructive foreground
#f8ccb4peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#efe6e6linen
#efe6e6linen

Contrast

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

Light mode
Text on background19.03:1AAA
Text on card18.72:1AAA
Primary button7.35:1AAA
Secondary button13.46:1AAA
Muted text6.83:1AA
Accent7.88:1AAA
Destructive6.85:1AA
Dark mode
Text on background19.12:1AAA
Text on card19.50:1AAA
Primary button7.35:1AAA
Secondary button13.46:1AAA
Muted text7.67:1AAA
Accent7.88:1AAA
Destructive7.77:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.005 13.702);
  --foreground: oklch(0.134 0.021 16.03);
  --muted: oklch(0.914 0.041 143.863);
  --muted-foreground: oklch(0.411 0.032 143.662);
  --popover: oklch(0.973 0.007 13.751);
  --popover-foreground: oklch(0.121 0.018 15.627);
  --card: oklch(0.973 0.007 13.751);
  --card-foreground: oklch(0.121 0.018 15.627);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.932 0.01 13.825);
  --primary-foreground: oklch(0.411 0.053 16.356);
  --secondary: oklch(0.944 0.016 144.033);
  --secondary-foreground: oklch(0.25 0.032 143.347);
  --accent: oklch(0.928 0.012 283.745);
  --accent-foreground: oklch(0.389 0.06 280.887);
  --destructive: oklch(0.389 0.104 44.345);
  --destructive-foreground: oklch(0.877 0.059 49.86);
  --ring: oklch(0.932 0.01 13.825);
  --chart-1: oklch(0.932 0.01 13.825);
  --chart-2: oklch(0.944 0.016 144.033);
  --chart-3: oklch(0.928 0.012 283.745);
  --chart-4: oklch(0.965 0.01 144.071);
  --chart-5: oklch(0.931 0.012 13.854);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.083 0.014 15.882);
  --foreground: oklch(0.973 0.007 13.741);
  --muted: oklch(0.272 0.053 142.925);
  --muted-foreground: oklch(0.79 0.027 143.926);
  --popover: oklch(0.104 0.017 15.882);
  --popover-foreground: oklch(0.982 0.004 13.695);
  --card: oklch(0.104 0.017 15.882);
  --card-foreground: oklch(0.982 0.004 13.695);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.932 0.01 13.825);
  --primary-foreground: oklch(0.411 0.053 16.356);
  --secondary: oklch(0.944 0.016 144.033);
  --secondary-foreground: oklch(0.25 0.032 143.347);
  --accent: oklch(0.928 0.012 283.745);
  --accent-foreground: oklch(0.389 0.06 280.887);
  --destructive: oklch(0.711 0.154 46.991);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.932 0.01 13.825);
  --chart-1: oklch(0.932 0.01 13.825);
  --chart-2: oklch(0.944 0.016 144.033);
  --chart-3: oklch(0.928 0.012 283.745);
  --chart-4: oklch(0.965 0.01 144.071);
  --chart-5: oklch(0.931 0.012 13.854);
}