red2 for shadcn/ui

red2 is a shadcn/ui theme built around a blue primary color (#467cc8) with muted light indigo accents (#eaeaef). The light mode uses a neutral background (#fbfcfe). Dark mode keeps the blue primary (#467cc8) on a blue-tinted background (#05090f).

Color palette

TokenLightDark
Background
#fbfcfewhite
#05090fblack
Foreground
#040910black
#f6f7f9whitesmoke
Card
#f7f9fdghostwhite
#060c13black
Card foreground
#03070cblack
#f9fafbghostwhite
Popover
#f7f9fdghostwhite
#060c13black
Popover foreground
#03070cblack
#f9fafbghostwhite
Primary
#467cc8steelblue
#467cc8steelblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#46bdc8mediumturquoise
#46bdc8mediumturquoise
Secondary foreground
#0f3033darkslategray
#0f3033darkslategray
Muted
#d3e2e4gainsboro
#1b2b2cdarkslategray
Muted foreground
#5c6060dimgray
#9fa2a3darkgray
Accent
#eaeaeflavender
#5146c8slateblue
Accent foreground
#000000black
#ffffffwhite
Destructive
#9e1710firebrick
#ec453ctomato
Destructive foreground
#fce4e3mistyrose
#ffffffwhite
Border
#e7e8e9lavender
#242628darkslategray
Input
#e7e8e9lavender
#242628darkslategray
Ring
#467cc8steelblue
#467cc8steelblue

Contrast

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

Light mode
Text on background19.47:1AAA
Text on card19.21:1AAA
Primary button4.20:1AA Large
Secondary button6.29:1AA
Muted text4.78:1AA
Accent17.46:1AAA
Destructive6.73:1AA
Dark mode
Text on background18.58:1AAA
Text on card18.80:1AAA
Primary button4.20:1AA Large
Secondary button6.29:1AA
Muted text5.74:1AA
Accent6.83:1AA
Destructive3.83:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 256.662);
  --foreground: oklch(0.138 0.019 251.098);
  --muted: oklch(0.902 0.016 203.423);
  --muted-foreground: oklch(0.486 0.004 203.499);
  --popover: oklch(0.983 0.005 256.673);
  --popover-foreground: oklch(0.125 0.016 248.403);
  --card: oklch(0.983 0.005 256.673);
  --card-foreground: oklch(0.125 0.016 248.403);
  --border: oklch(0.93 0.002 256.661);
  --input: oklch(0.93 0.002 256.661);
  --primary: oklch(0.586 0.13 257.128);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.737 0.105 203.681);
  --secondary-foreground: oklch(0.287 0.038 203.47);
  --accent: oklch(0.938 0.008 290.091);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.449 0.17 29.145);
  --destructive-foreground: oklch(0.939 0.026 21.259);
  --ring: oklch(0.586 0.13 257.128);
  --chart-1: oklch(0.586 0.13 257.128);
  --chart-2: oklch(0.737 0.105 203.681);
  --chart-3: oklch(0.938 0.008 290.091);
  --chart-4: oklch(0.752 0.101 203.495);
  --chart-5: oklch(0.585 0.137 257.197);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.139 0.016 252.255);
  --foreground: oklch(0.976 0.003 256.665);
  --muted: oklch(0.274 0.02 203.129);
  --muted-foreground: oklch(0.71 0.004 203.529);
  --popover: oklch(0.151 0.019 254.973);
  --popover-foreground: oklch(0.984 0.002 256.661);
  --card: oklch(0.151 0.019 254.973);
  --card-foreground: oklch(0.984 0.002 256.661);
  --border: oklch(0.268 0.005 256.716);
  --input: oklch(0.268 0.005 256.716);
  --primary: oklch(0.586 0.13 257.128);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.737 0.105 203.681);
  --secondary-foreground: oklch(0.287 0.038 203.47);
  --accent: oklch(0.487 0.193 280.189);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.631 0.205 27.671);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.586 0.13 257.128);
  --chart-1: oklch(0.586 0.13 257.128);
  --chart-2: oklch(0.737 0.105 203.681);
  --chart-3: oklch(0.487 0.193 280.189);
  --chart-4: oklch(0.752 0.101 203.495);
  --chart-5: oklch(0.585 0.137 257.197);
}