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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.77:1 | AAA |
| Text on card | 18.48:1 | AAA |
| Primary button | 5.86:1 | AA |
| Secondary button | 7.28:1 | AAA |
| Muted text | 7.35:1 | AAA |
| Accent | 7.93:1 | AAA |
| Destructive | 6.37:1 | AA |
| Text on background | 19.14:1 | AAA |
| Text on card | 19.24:1 | AAA |
| Primary button | 5.86:1 | AA |
| Secondary button | 7.91:1 | AAA |
| Muted text | 8.32:1 | AAA |
| Accent | 7.51:1 | AAA |
| Destructive | 6.76:1 | AA |
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);
}