Red for shadcn/ui

Red is a shadcn/ui theme built around a near-white primary color (#ffffff) with near-white accents (#ffffff). The light mode uses a neutral background (#fcf8f8). Dark mode keeps the near-white primary (#ffffff) on a red-tinted background (#100404).

Color palette

TokenLightDark
Background
#fcf8f8snow
#100404black
Foreground
#140606black
#ffffffwhite
Card
#faf4f4whitesmoke
#140505black
Card foreground
#100505black
#ffffffwhite
Popover
#fcf8f8snow
#100404black
Popover foreground
#140606black
#ffffffwhite
Primary
#ffffffwhite
#ffffffwhite
Primary foreground
#333333darkslategray
#333333darkslategray
Secondary
#ffffffwhite
#ffffffwhite
Secondary foreground
#333333darkslategray
#333333darkslategray
Muted
#edd9d9gainsboro
#261212black
Muted foreground
#473838darkslategray
#c7b8b8silver
Accent
#ffffffwhite
#ffffffwhite
Accent foreground
#333333darkslategray
#333333darkslategray
Destructive
#a82d0bfirebrick
#f0400forangered
Destructive foreground
#fdece7linen
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ffffffwhite
#ffffffwhite

Contrast

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

Light mode
Text on background18.81:1AAA
Text on card18.52:1AAA
Primary button12.63:1AAA
Secondary button12.63:1AAA
Muted text8.20:1AAA
Accent12.63:1AAA
Destructive6.03:1AA
Dark mode
Text on background20.13:1AAA
Text on card19.89:1AAA
Primary button12.63:1AAA
Secondary button12.63:1AAA
Muted text9.31:1AAA
Accent12.63:1AAA
Destructive3.86:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.004 17.228);
  --foreground: oklch(0.145 0.027 20.849);
  --muted: oklch(0.901 0.022 17.575);
  --muted-foreground: oklch(0.358 0.022 18.221);
  --popover: oklch(0.982 0.004 17.228);
  --popover-foreground: oklch(0.145 0.027 20.849);
  --card: oklch(0.973 0.006 17.264);
  --card-foreground: oklch(0.133 0.023 20.597);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(1 0 180);
  --primary-foreground: oklch(0.321 0 180);
  --secondary: oklch(1 0 180);
  --secondary-foreground: oklch(0.321 0 180);
  --accent: oklch(1 0 180);
  --accent-foreground: oklch(0.321 0 180);
  --destructive: oklch(0.486 0.164 34.682);
  --destructive-foreground: oklch(0.955 0.02 35.957);
  --ring: oklch(1 0 180);
  --chart-1: oklch(1 0 180);
  --chart-2: oklch(1 0 180);
  --chart-3: oklch(1 0 180);
  --chart-4: oklch(1.023 0 180);
  --chart-5: oklch(1 0 180);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.132 0.025 21.016);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.211 0.034 20.288);
  --muted-foreground: oklch(0.794 0.017 17.526);
  --popover: oklch(0.132 0.025 21.016);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.144 0.029 21.284);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(1 0 180);
  --primary-foreground: oklch(0.321 0 180);
  --secondary: oklch(1 0 180);
  --secondary-foreground: oklch(0.321 0 180);
  --accent: oklch(1 0 180);
  --accent-foreground: oklch(0.321 0 180);
  --destructive: oklch(0.63 0.218 34.331);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(1 0 180);
  --chart-1: oklch(1 0 180);
  --chart-2: oklch(1 0 180);
  --chart-3: oklch(1 0 180);
  --chart-4: oklch(1.023 0 180);
  --chart-5: oklch(1 0 180);
}