Red is a shadcn/ui theme built around a light yellow primary color (#dadcb2) with light indigo accents (#b4b2dc). The light mode uses a neutral background (#ffffff). Dark mode keeps the light yellow primary (#dadcb2) on a neutral background (#040401).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040401black |
| Foreground | #0c0c03black | #fbfbf8snow |
| Card | #ffffffwhite | #040401black |
| Card foreground | #0c0c03black | #fbfbf8snow |
| Popover | #ffffffwhite | #040401black |
| Popover foreground | #0c0c03black | #fbfbf8snow |
| Primary | #dadcb2palegoldenrod | #dadcb2palegoldenrod |
| Primary foreground | #3e3f1cdarkolivegreen | #3e3f1cdarkolivegreen |
| Secondary | #b4b2dclightsteelblue | #b4b2dclightsteelblue |
| Secondary foreground | #1e1c3fmidnightblue | #1e1c3fmidnightblue |
| Muted | #dfdfecgainsboro | #131320black |
| Muted foreground | #444356darkslategray | #aaa9bcdarkgray |
| Accent | #b4b2dclightsteelblue | #b4b2dclightsteelblue |
| Accent foreground | #1e1c3fmidnightblue | #1e1c3fmidnightblue |
| Destructive | #970702darkred | #fd1a12red |
| Destructive foreground | #fececdpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #dadcb2palegoldenrod | #dadcb2palegoldenrod |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.63:1 | AAA |
| Text on card | 19.63:1 | AAA |
| Primary button | 7.70:1 | AAA |
| Secondary button | 7.96:1 | AAA |
| Muted text | 7.27:1 | AAA |
| Accent | 7.96:1 | AAA |
| Destructive | 6.34:1 | AA |
| Text on background | 19.81:1 | AAA |
| Text on card | 19.81:1 | AAA |
| Primary button | 7.70:1 | AAA |
| Secondary button | 7.96:1 | AAA |
| Muted text | 7.99:1 | AAA |
| Accent | 7.96:1 | AAA |
| Destructive | 3.95:1 | AA Large |
Paste this into your globals.css to use Red in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.151 0.022 110.749);
--muted: oklch(0.907 0.019 288.323);
--muted-foreground: oklch(0.392 0.031 287.176);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.151 0.022 110.749);
--card: oklch(1 0 180);
--card-foreground: oklch(0.151 0.022 110.749);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.883 0.056 109.861);
--primary-foreground: oklch(0.358 0.053 111.353);
--secondary: oklch(0.778 0.06 287.198);
--secondary-foreground: oklch(0.251 0.064 282.986);
--accent: oklch(0.778 0.06 287.198);
--accent-foreground: oklch(0.251 0.064 282.986);
--destructive: oklch(0.428 0.172 29.602);
--destructive-foreground: oklch(0.893 0.055 20.543);
--ring: oklch(0.883 0.056 109.861);
--chart-1: oklch(0.883 0.056 109.861);
--chart-2: oklch(0.778 0.06 287.198);
--chart-3: oklch(0.778 0.06 287.198);
--chart-4: oklch(0.809 0.052 287.478);
--chart-5: oklch(0.887 0.061 109.939);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.103 0.013 110.414);
--foreground: oklch(0.989 0.004 108.787);
--muted: oklch(0.193 0.028 285.793);
--muted-foreground: oklch(0.742 0.026 288.04);
--popover: oklch(0.103 0.013 110.414);
--popover-foreground: oklch(0.989 0.004 108.787);
--card: oklch(0.103 0.013 110.414);
--card-foreground: oklch(0.989 0.004 108.787);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.883 0.056 109.861);
--primary-foreground: oklch(0.358 0.053 111.353);
--secondary: oklch(0.778 0.06 287.198);
--secondary-foreground: oklch(0.251 0.064 282.986);
--accent: oklch(0.778 0.06 287.198);
--accent-foreground: oklch(0.251 0.064 282.986);
--destructive: oklch(0.63 0.25 29.181);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.883 0.056 109.861);
--chart-1: oklch(0.883 0.056 109.861);
--chart-2: oklch(0.778 0.06 287.198);
--chart-3: oklch(0.778 0.06 287.198);
--chart-4: oklch(0.809 0.052 287.478);
--chart-5: oklch(0.887 0.061 109.939);
}