Revolution is a shadcn/ui theme built around a neutral gray primary color (#2f322f) with neutral gray accents (#322f2f). The light mode uses a neutral background (#fbfefb). Dark mode keeps the neutral gray primary (#2f322f) on a green-tinted background (#060a05).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefbwhite | #060a05black |
| Foreground | #020901black | #fcfdfbsnow |
| Card | #fbfefbwhite | #060a05black |
| Card foreground | #020901black | #fcfdfbsnow |
| Popover | #fbfefbwhite | #060a05black |
| Popover foreground | #020901black | #fcfdfbsnow |
| Primary | #2f322fdarkslategray | #2f322fdarkslategray |
| Primary foreground | #c8cbc8silver | #c8cbc8silver |
| Secondary | #2f2f32darkslategray | #2f2f32darkslategray |
| Secondary foreground | #c8c8cbsilver | #c8c8cbsilver |
| Muted | #e4e4e7gainsboro | #18181bblack |
| Muted foreground | #484c60darkslategray | #9fa3b7darkgray |
| Accent | #322f2fdarkslategray | #322f2fdarkslategray |
| Accent foreground | #cbc8c8silver | #cbc8c8silver |
| Destructive | #aa3108firebrick | #ef440borangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #2f322fdarkslategray | #2f322fdarkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.83:1 | AAA |
| Text on card | 19.83:1 | AAA |
| Primary button | 7.92:1 | AAA |
| Secondary button | 7.96:1 | AAA |
| Muted text | 6.68:1 | AA |
| Accent | 7.97:1 | AAA |
| Destructive | 6.65:1 | AA |
| Text on background | 19.52:1 | AAA |
| Text on card | 19.52:1 | AAA |
| Primary button | 7.92:1 | AAA |
| Secondary button | 7.96:1 | AAA |
| Muted text | 7.07:1 | AAA |
| Accent | 7.97:1 | AAA |
| Destructive | 3.82:1 | AA Large |
Paste this into your globals.css to use Revolution in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.005 141.055);
--foreground: oklch(0.126 0.03 138.745);
--muted: oklch(0.92 0.004 278.253);
--muted-foreground: oklch(0.421 0.034 277.028);
--popover: oklch(0.994 0.005 141.055);
--popover-foreground: oklch(0.126 0.03 138.745);
--card: oklch(0.994 0.005 141.055);
--card-foreground: oklch(0.126 0.03 138.745);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.313 0.006 141.022);
--primary-foreground: oklch(0.839 0.005 141.051);
--secondary: oklch(0.307 0.004 278.106);
--secondary-foreground: oklch(0.834 0.004 278.252);
--accent: oklch(0.308 0.004 6.94);
--accent-foreground: oklch(0.835 0.004 6.705);
--destructive: oklch(0.494 0.164 35.998);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.313 0.006 141.022);
--chart-1: oklch(0.313 0.006 141.022);
--chart-2: oklch(0.307 0.004 278.106);
--chart-3: oklch(0.308 0.004 6.94);
--chart-4: oklch(0.337 0.005 278.099);
--chart-5: oklch(0.316 0.012 140.981);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.138 0.015 140.041);
--foreground: oklch(0.994 0.003 141.058);
--muted: oklch(0.211 0.006 277.891);
--muted-foreground: oklch(0.718 0.029 277.695);
--popover: oklch(0.138 0.015 140.041);
--popover-foreground: oklch(0.994 0.003 141.058);
--card: oklch(0.138 0.015 140.041);
--card-foreground: oklch(0.994 0.003 141.058);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.313 0.006 141.022);
--primary-foreground: oklch(0.839 0.005 141.051);
--secondary: oklch(0.307 0.004 278.106);
--secondary-foreground: oklch(0.834 0.004 278.252);
--accent: oklch(0.308 0.004 6.94);
--accent-foreground: oklch(0.835 0.004 6.705);
--destructive: oklch(0.632 0.214 35.54);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.313 0.006 141.022);
--chart-1: oklch(0.313 0.006 141.022);
--chart-2: oklch(0.307 0.004 278.106);
--chart-3: oklch(0.308 0.004 6.94);
--chart-4: oklch(0.337 0.005 278.099);
--chart-5: oklch(0.316 0.012 140.981);
}