Red is a shadcn/ui theme built around a blue primary color (#467cc8) with indigo accents (#5146c8). The light mode uses a neutral background (#fbfcfe). Dark mode keeps the blue primary (#467cc8) on a blue-tinted background (#05090f).
| Token | Light | Dark |
|---|---|---|
| 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 | #5146c8slateblue | #5146c8slateblue |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #9e1710firebrick | #ec453ctomato |
| Destructive foreground | #fce4e3mistyrose | #ffffffwhite |
| Border | #e7e8e9lavender | #242628darkslategray |
| Input | #e7e8e9lavender | #242628darkslategray |
| Ring | #467cc8steelblue | #467cc8steelblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.47:1 | AAA |
| Text on card | 19.21:1 | AAA |
| Primary button | 4.20:1 | AA Large |
| Secondary button | 6.29:1 | AA |
| Muted text | 4.78:1 | AA |
| Accent | 6.83:1 | AA |
| Destructive | 6.73:1 | AA |
| Text on background | 18.58:1 | AAA |
| Text on card | 18.80:1 | AAA |
| Primary button | 4.20:1 | AA Large |
| Secondary button | 6.29:1 | AA |
| Muted text | 5.74:1 | AA |
| Accent | 6.83:1 | AA |
| Destructive | 3.83:1 | AA Large |
Paste this into your globals.css to use Red 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.487 0.193 280.189);
--accent-foreground: oklch(1 0 180);
--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.487 0.193 280.189);
--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);
}