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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.81:1 | AAA |
| Text on card | 18.52:1 | AAA |
| Primary button | 12.63:1 | AAA |
| Secondary button | 12.63:1 | AAA |
| Muted text | 8.20:1 | AAA |
| Accent | 12.63:1 | AAA |
| Destructive | 6.03:1 | AA |
| Text on background | 20.13:1 | AAA |
| Text on card | 19.89:1 | AAA |
| Primary button | 12.63:1 | AAA |
| Secondary button | 12.63:1 | AAA |
| Muted text | 9.31:1 | AAA |
| Accent | 12.63:1 | AAA |
| Destructive | 3.86:1 | AA Large |
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);
}