Revenge is a shadcn/ui theme built around a deep green primary color (#495a16) with muted light green accents (#cfd7b7). The light mode uses a neutral background (#fdfdfc). Dark mode keeps the deep green primary (#495a16) on a neutral background (#060803).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfdfcwhite | #060803black |
| Foreground | #111604black | #fbfcf8snow |
| Card | #fbfcf8snow | #0a0b04black |
| Card foreground | #0e1103black | #fdfdfcwhite |
| Popover | #fdfdfcwhite | #060803black |
| Popover foreground | #111604black | #fbfcf8snow |
| Primary | #495a16darkolivegreen | #495a16darkolivegreen |
| Primary foreground | #dfedb6palegoldenrod | #dfedb6palegoldenrod |
| Secondary | #dadecelightgrey | #303229darkslategray |
| Secondary foreground | #434932darkslategray | #cacdc1silver |
| Muted | #eaece4beige | #191b13black |
| Muted foreground | #4e5242darkolivegreen | #b9bdadsilver |
| Accent | #cfd7b7lightgrey | #4b5138darkolivegreen |
| Accent foreground | #343b21darkslategray | #e1e4d8gainsboro |
| Destructive | #cb4015firebrick | #e85021chocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #495a16darkolivegreen | #495a16darkolivegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.11:1 | AAA |
| Text on card | 18.47:1 | AAA |
| Primary button | 6.15:1 | AA |
| Secondary button | 6.84:1 | AA |
| Muted text | 6.73:1 | AA |
| Accent | 7.81:1 | AAA |
| Destructive | 4.90:1 | AA |
| Text on background | 19.54:1 | AAA |
| Text on card | 19.38:1 | AAA |
| Primary button | 6.15:1 | AA |
| Secondary button | 8.01:1 | AAA |
| Muted text | 9.09:1 | AAA |
| Accent | 6.40:1 | AA |
| Destructive | 3.76:1 | AA Large |
Paste this into your globals.css to use Revenge in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.002 117.866);
--foreground: oklch(0.188 0.035 120.656);
--muted: oklch(0.939 0.01 118.013);
--muted-foreground: oklch(0.43 0.026 118.923);
--popover: oklch(0.994 0.002 117.866);
--popover-foreground: oklch(0.188 0.035 120.656);
--card: oklch(0.988 0.005 117.908);
--card-foreground: oklch(0.17 0.031 119.883);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.438 0.093 122.539);
--primary-foreground: oklch(0.921 0.073 119.26);
--secondary: oklch(0.893 0.021 118.246);
--secondary-foreground: oklch(0.392 0.038 119.586);
--accent: oklch(0.864 0.043 118.713);
--accent-foreground: oklch(0.338 0.043 120.183);
--destructive: oklch(0.568 0.183 35.936);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.438 0.093 122.539);
--chart-1: oklch(0.438 0.093 122.539);
--chart-2: oklch(0.893 0.021 118.246);
--chart-3: oklch(0.864 0.043 118.713);
--chart-4: oklch(0.913 0.017 118.158);
--chart-5: oklch(0.443 0.096 122.739);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.128 0.017 118.003);
--foreground: oklch(0.989 0.005 117.915);
--muted: oklch(0.216 0.014 118.999);
--muted-foreground: oklch(0.791 0.023 118.339);
--popover: oklch(0.128 0.017 118.003);
--popover-foreground: oklch(0.989 0.005 117.915);
--card: oklch(0.146 0.019 118.226);
--card-foreground: oklch(0.994 0.003 117.87);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.438 0.093 122.539);
--primary-foreground: oklch(0.921 0.073 119.26);
--secondary: oklch(0.314 0.016 118.745);
--secondary-foreground: oklch(0.841 0.016 118.154);
--accent: oklch(0.423 0.04 119.534);
--accent-foreground: oklch(0.913 0.016 118.141);
--destructive: oklch(0.634 0.196 36.377);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.438 0.093 122.539);
--chart-1: oklch(0.438 0.093 122.539);
--chart-2: oklch(0.314 0.016 118.745);
--chart-3: oklch(0.423 0.04 119.534);
--chart-4: oklch(0.346 0.018 118.775);
--chart-5: oklch(0.443 0.096 122.739);
}