Red is a shadcn/ui theme built around a green primary color (#70cd71) with teal accents (#70cda0). The light mode uses a neutral background (#f7fdf7). Dark mode keeps the green primary (#70cd71) on a neutral background (#010401).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fdf7mintcream | #010401black |
| Foreground | #051405black | #f8fcf8mintcream |
| Card | #f7fdf7mintcream | #010401black |
| Card foreground | #051405black | #f8fcf8mintcream |
| Popover | #f7fdf7mintcream | #010401black |
| Popover foreground | #051405black | #f8fcf8mintcream |
| Primary | #70cd71darkseagreen | #70cd71darkseagreen |
| Primary foreground | #030803black | #030803black |
| Secondary | #9dcd70darkseagreen | #9dcd70darkseagreen |
| Secondary foreground | #050803black | #050803black |
| Muted | #e5ebe0gainsboro | #191f14black |
| Muted foreground | #5b6553dimgray | #a3ac9adarkgray |
| Accent | #70cda0mediumaquamarine | #70cda0mediumaquamarine |
| Accent foreground | #030805black | #030805black |
| Destructive | #6e110cmaroon | #e83a30crimson |
| Destructive foreground | #f7b9b6lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #70cd71darkseagreen | #70cd71darkseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.32:1 | AAA |
| Text on card | 18.32:1 | AAA |
| Primary button | 10.21:1 | AAA |
| Secondary button | 10.88:1 | AAA |
| Muted text | 5.03:1 | AA |
| Accent | 10.45:1 | AAA |
| Destructive | 7.17:1 | AAA |
| Text on background | 19.88:1 | AAA |
| Text on card | 19.88:1 | AAA |
| Primary button | 10.21:1 | AAA |
| Secondary button | 10.88:1 | AAA |
| Muted text | 7.15:1 | AAA |
| Accent | 10.45:1 | AAA |
| Destructive | 4.13:1 | AA Large |
Paste this into your globals.css to use Red in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.009 145.977);
--foreground: oklch(0.174 0.039 144.115);
--muted: oklch(0.932 0.015 129.302);
--muted-foreground: oklch(0.493 0.031 129.808);
--popover: oklch(0.987 0.009 145.977);
--popover-foreground: oklch(0.174 0.039 144.115);
--card: oklch(0.987 0.009 145.977);
--card-foreground: oklch(0.174 0.039 144.115);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.768 0.155 144.211);
--primary-foreground: oklch(0.121 0.02 144.703);
--secondary: oklch(0.792 0.133 131.224);
--secondary-foreground: oklch(0.125 0.017 128.086);
--accent: oklch(0.777 0.111 161.255);
--accent-foreground: oklch(0.123 0.014 166.171);
--destructive: oklch(0.35 0.127 28.778);
--destructive-foreground: oklch(0.841 0.072 22.154);
--ring: oklch(0.768 0.155 144.211);
--chart-1: oklch(0.768 0.155 144.211);
--chart-2: oklch(0.792 0.133 131.224);
--chart-3: oklch(0.777 0.111 161.255);
--chart-4: oklch(0.808 0.123 130.975);
--chart-5: oklch(0.773 0.163 144.114);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.097 0.018 144.499);
--foreground: oklch(0.986 0.006 146.006);
--muted: oklch(0.229 0.022 130.183);
--muted-foreground: oklch(0.733 0.028 129.537);
--popover: oklch(0.097 0.018 144.499);
--popover-foreground: oklch(0.986 0.006 146.006);
--card: oklch(0.097 0.018 144.499);
--card-foreground: oklch(0.986 0.006 146.006);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.768 0.155 144.211);
--primary-foreground: oklch(0.121 0.02 144.703);
--secondary: oklch(0.792 0.133 131.224);
--secondary-foreground: oklch(0.125 0.017 128.086);
--accent: oklch(0.777 0.111 161.255);
--accent-foreground: oklch(0.123 0.014 166.171);
--destructive: oklch(0.614 0.212 28.268);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.768 0.155 144.211);
--chart-1: oklch(0.768 0.155 144.211);
--chart-2: oklch(0.792 0.133 131.224);
--chart-3: oklch(0.777 0.111 161.255);
--chart-4: oklch(0.808 0.123 130.975);
--chart-5: oklch(0.773 0.163 144.114);
}