Red for shadcn/ui

Red is a shadcn/ui theme built around a red primary color (#b43a2d) with muted light red accents (#d5c5c3). The light mode uses a neutral background (#fdf7f7). Dark mode keeps the red primary (#b43a2d) on a neutral background (#070303).

Color palette

TokenLightDark
Background
#fdf7f7snow
#070303black
Foreground
#160504black
#f8f7f7whitesmoke
Card
#fcf3f2lavenderblush
#0b0505black
Card foreground
#120403black
#faf9f9snow
Popover
#fdf7f7snow
#070303black
Popover foreground
#160504black
#f8f7f7whitesmoke
Primary
#b43a2dbrown
#b43a2dbrown
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#e4deddgainsboro
#303030darkslategray
Secondary foreground
#4f4140darkslategray
#c9c9c9silver
Muted
#f4f1f0whitesmoke
#0f0b0bblack
Muted foreground
#5a4b49darkolivegreen
#b6a5a5darkgray
Accent
#d5c5c3lightgrey
#443b3bdarkslategray
Accent foreground
#3c2c2adarkslategray
#dbd6d6gainsboro
Destructive
#812f03saddlebrown
#f96210orangered
Destructive foreground
#fdd1b9peachpuff
#000000black
Border
#e9e3e2gainsboro
#201918black
Input
#e9e3e2gainsboro
#201918black
Ring
#b43a2dbrown
#b43a2dbrown

Contrast

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

Light mode
Text on background18.77:1AAA
Text on card18.48:1AAA
Primary button5.86:1AA
Secondary button7.28:1AAA
Muted text7.35:1AAA
Accent7.93:1AAA
Destructive6.37:1AA
Dark mode
Text on background19.14:1AAA
Text on card19.24:1AAA
Primary button5.86:1AA
Secondary button7.91:1AAA
Muted text8.32:1AAA
Accent7.51:1AAA
Destructive6.76:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.006 25.043);
  --foreground: oklch(0.147 0.033 31.237);
  --muted: oklch(0.96 0.004 25.024);
  --muted-foreground: oklch(0.427 0.02 25.442);
  --popover: oklch(0.981 0.006 25.043);
  --popover-foreground: oklch(0.147 0.033 31.237);
  --card: oklch(0.972 0.01 25.072);
  --card-foreground: oklch(0.134 0.028 31.815);
  --border: oklch(0.92 0.007 25.053);
  --input: oklch(0.92 0.007 25.053);
  --primary: oklch(0.524 0.159 29.717);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.904 0.007 25.051);
  --secondary-foreground: oklch(0.39 0.02 25.485);
  --accent: oklch(0.835 0.019 25.188);
  --accent-foreground: oklch(0.31 0.025 25.845);
  --destructive: oklch(0.42 0.123 42.494);
  --destructive-foreground: oklch(0.893 0.059 49.876);
  --ring: oklch(0.524 0.159 29.717);
  --chart-1: oklch(0.524 0.159 29.717);
  --chart-2: oklch(0.904 0.007 25.051);
  --chart-3: oklch(0.835 0.019 25.188);
  --chart-4: oklch(0.928 0.005 25.034);
  --chart-5: oklch(0.526 0.166 29.914);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.11 0.011 28.185);
  --foreground: oklch(0.976 0.002 25.003);
  --muted: oklch(0.154 0.007 17.955);
  --muted-foreground: oklch(0.737 0.019 17.592);
  --popover: oklch(0.11 0.011 28.185);
  --popover-foreground: oklch(0.976 0.002 25.003);
  --card: oklch(0.126 0.012 28.171);
  --card-foreground: oklch(0.984 0.001 24.999);
  --border: oklch(0.221 0.011 25.495);
  --input: oklch(0.221 0.011 25.495);
  --primary: oklch(0.524 0.159 29.717);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.311 0 180);
  --secondary-foreground: oklch(0.837 0 171.254);
  --accent: oklch(0.363 0.012 17.742);
  --accent-foreground: oklch(0.881 0.006 17.269);
  --destructive: oklch(0.681 0.2 42.014);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.524 0.159 29.717);
  --chart-1: oklch(0.524 0.159 29.717);
  --chart-2: oklch(0.311 0 180);
  --chart-3: oklch(0.363 0.012 17.742);
  --chart-4: oklch(0.341 0 158.199);
  --chart-5: oklch(0.526 0.166 29.914);
}