Red for shadcn/ui

Red is a shadcn/ui theme built around a vivid light pink primary color (#fee7f0) with vivid light teal accents (#e7fef5). The light mode uses a neutral background (#fcf7f9). Dark mode keeps the vivid light pink primary (#fee7f0) on a pink-tinted background (#0c0307).

Color palette

TokenLightDark
Background
#fcf7f9snow
#0c0307black
Foreground
#110409black
#f9f6f7whitesmoke
Card
#fbf4f7lavenderblush
#100409black
Card foreground
#0d0307black
#fbf9fasnow
Popover
#fbf4f7lavenderblush
#100409black
Popover foreground
#0d0307black
#fbf9fasnow
Primary
#fee7f0lavenderblush
#fee7f0lavenderblush
Primary foreground
#aa0849brown
#aa0849brown
Secondary
#e7fef5honeydew
#e7fef5honeydew
Secondary foreground
#03492ddarkgreen
#03492ddarkgreen
Muted
#e5ebe9lavender
#141a18black
Muted foreground
#404f49darkslategray
#b0bfb9silver
Accent
#e7fef5honeydew
#e7fef5honeydew
Accent foreground
#03492ddarkgreen
#03492ddarkgreen
Destructive
#be3813firebrick
#e9481corangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fee7f0lavenderblush
#fee7f0lavenderblush

Contrast

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

Light mode
Text on background19.02:1AAA
Text on card18.71:1AAA
Primary button6.28:1AA
Secondary button9.95:1AAA
Muted text7.15:1AAA
Accent9.95:1AAA
Destructive5.56:1AA
Dark mode
Text on background18.92:1AAA
Text on card19.16:1AAA
Primary button6.28:1AA
Secondary button9.95:1AAA
Muted text9.23:1AAA
Accent9.95:1AAA
Destructive3.89: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.006 350.794);
  --foreground: oklch(0.133 0.031 352.377);
  --muted: oklch(0.935 0.008 170.388);
  --muted-foreground: oklch(0.413 0.022 168.972);
  --popover: oklch(0.973 0.009 350.882);
  --popover-foreground: oklch(0.119 0.027 350.612);
  --card: oklch(0.973 0.009 350.882);
  --card-foreground: oklch(0.119 0.027 350.612);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.948 0.028 351.442);
  --primary-foreground: oklch(0.477 0.187 7.641);
  --secondary: oklch(0.977 0.027 169.808);
  --secondary-foreground: oklch(0.359 0.08 159.373);
  --accent: oklch(0.977 0.027 169.808);
  --accent-foreground: oklch(0.359 0.08 159.373);
  --destructive: oklch(0.537 0.177 35.056);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.948 0.028 351.442);
  --chart-1: oklch(0.948 0.028 351.442);
  --chart-2: oklch(0.977 0.027 169.808);
  --chart-3: oklch(0.977 0.027 169.808);
  --chart-4: oklch(0.991 0.011 170.306);
  --chart-5: oklch(0.948 0.029 351.469);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.121 0.023 350.522);
  --foreground: oklch(0.975 0.004 350.739);
  --muted: oklch(0.211 0.011 169.062);
  --muted-foreground: oklch(0.792 0.019 169.908);
  --popover: oklch(0.135 0.026 352.175);
  --popover-foreground: oklch(0.983 0.003 350.7);
  --card: oklch(0.135 0.026 352.175);
  --card-foreground: oklch(0.983 0.003 350.7);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.948 0.028 351.442);
  --primary-foreground: oklch(0.477 0.187 7.641);
  --secondary: oklch(0.977 0.027 169.808);
  --secondary-foreground: oklch(0.359 0.08 159.373);
  --accent: oklch(0.977 0.027 169.808);
  --accent-foreground: oklch(0.359 0.08 159.373);
  --destructive: oklch(0.626 0.204 35.166);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.948 0.028 351.442);
  --chart-1: oklch(0.948 0.028 351.442);
  --chart-2: oklch(0.977 0.027 169.808);
  --chart-3: oklch(0.977 0.027 169.808);
  --chart-4: oklch(0.991 0.011 170.306);
  --chart-5: oklch(0.948 0.029 351.469);
}