Revival is a shadcn/ui theme built around a vivid green primary color (#13a424) with vivid purple accents (#a41393). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid green primary (#13a424) on a green-tinted background (#060e07).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #060e07black |
| Foreground | #010401black | #ffffffwhite |
| Card | #fcfcfcsnow | #081109black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #ffffffwhite | #060e07black |
| Popover foreground | #010401black | #ffffffwhite |
| Primary | #13a424forestgreen | #13a424forestgreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #a41393darkmagenta | #a41393darkmagenta |
| Secondary foreground | #fdedfblavenderblush | #fdedfblavenderblush |
| Muted | #f1e4eflavender | #1b0e19black |
| Muted foreground | #614c5fdimgray | #b39eb0darkgray |
| Accent | #a41393darkmagenta | #a41393darkmagenta |
| Accent foreground | #fdedfblavenderblush | #fdedfblavenderblush |
| Destructive | #c42e08firebrick | #e13509orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #13a424forestgreen | #13a424forestgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.60:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 3.28:1 | AA Large |
| Secondary button | 6.01:1 | AA |
| Muted text | 6.32:1 | AA |
| Accent | 6.01:1 | AA |
| Destructive | 5.62:1 | AA |
| Text on background | 19.54:1 | AAA |
| Text on card | 19.13:1 | AAA |
| Primary button | 3.28:1 | AA Large |
| Secondary button | 6.01:1 | AA |
| Muted text | 7.50:1 | AAA |
| Accent | 6.01:1 | AA |
| Destructive | 4.45:1 | AA Large |
Paste this into your globals.css to use Revival in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.098 0.02 147.744);
--muted: oklch(0.933 0.019 329.374);
--muted-foreground: oklch(0.446 0.04 330.127);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.098 0.02 147.744);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.626 0.199 143.729);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.501 0.213 334.137);
--secondary-foreground: oklch(0.962 0.025 329.437);
--accent: oklch(0.501 0.213 334.137);
--accent-foreground: oklch(0.962 0.025 329.437);
--destructive: oklch(0.537 0.191 33.479);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.626 0.199 143.729);
--chart-1: oklch(0.626 0.199 143.729);
--chart-2: oklch(0.501 0.213 334.137);
--chart-3: oklch(0.501 0.213 334.137);
--chart-4: oklch(0.531 0.226 334.171);
--chart-5: oklch(0.634 0.203 143.613);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.153 0.019 148.078);
--foreground: oklch(1 0 180);
--muted: oklch(0.187 0.029 330.804);
--muted-foreground: oklch(0.723 0.035 329.688);
--popover: oklch(0.153 0.019 148.078);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.167 0.022 147.643);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.626 0.199 143.729);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.501 0.213 334.137);
--secondary-foreground: oklch(0.962 0.025 329.437);
--accent: oklch(0.501 0.213 334.137);
--accent-foreground: oklch(0.962 0.025 329.437);
--destructive: oklch(0.595 0.213 33.336);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.626 0.199 143.729);
--chart-1: oklch(0.626 0.199 143.729);
--chart-2: oklch(0.501 0.213 334.137);
--chart-3: oklch(0.501 0.213 334.137);
--chart-4: oklch(0.531 0.226 334.171);
--chart-5: oklch(0.634 0.203 143.613);
}