Average is a shadcn/ui theme built around a vivid deep green primary color (#066b2b) with vivid deep orange accents (#6b2b06). The light mode uses a neutral background (#fcfdfc). Dark mode keeps the vivid deep green primary (#066b2b) on a green-tinted background (#050a07).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfdfcwhite | #050a07black |
| Foreground | #000000black | #ffffffwhite |
| Card | #fcfdfcwhite | #050a07black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fcfdfcwhite | #050a07black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #066b2bforestgreen | #066b2bforestgreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #2b066bmidnightblue | #2b066bmidnightblue |
| Secondary foreground | #c6a8faplum | #c6a8faplum |
| Muted | #e7e2eelavender | #15111dblack |
| Muted foreground | #404040darkslategray | #bfbfbfsilver |
| Accent | #6b2b06saddlebrown | #6b2b06saddlebrown |
| Accent foreground | #fac6a8navajowhite | #fac6a8navajowhite |
| Destructive | #6d2008maroon | #ee4c1borangered |
| Destructive foreground | #f9c0aelightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #066b2bforestgreen | #066b2bforestgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.62:1 | AAA |
| Text on card | 20.62:1 | AAA |
| Primary button | 6.71:1 | AA |
| Secondary button | 7.77:1 | AAA |
| Muted text | 8.15:1 | AAA |
| Accent | 6.98:1 | AA |
| Destructive | 7.08:1 | AAA |
| Text on background | 19.90:1 | AAA |
| Text on card | 19.90:1 | AAA |
| Primary button | 6.71:1 | AA |
| Secondary button | 7.77:1 | AAA |
| Muted text | 10.09:1 | AAA |
| Accent | 6.98:1 | AA |
| Destructive | 3.68:1 | AA Large |
Paste this into your globals.css to use Average in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.993 0.002 158.669);
--foreground: oklch(0 0 0);
--muted: oklch(0.92 0.016 302.663);
--muted-foreground: oklch(0.371 0 168.69);
--popover: oklch(0.993 0.002 158.669);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.993 0.002 158.669);
--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.46 0.129 148.527);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.275 0.15 288.111);
--secondary-foreground: oklch(0.787 0.119 300.551);
--accent: oklch(0.374 0.102 45.005);
--accent-foreground: oklch(0.866 0.072 51.512);
--destructive: oklch(0.363 0.114 36.235);
--destructive-foreground: oklch(0.854 0.07 37.599);
--ring: oklch(0.46 0.129 148.527);
--chart-1: oklch(0.46 0.129 148.527);
--chart-2: oklch(0.275 0.15 288.111);
--chart-3: oklch(0.374 0.102 45.005);
--chart-4: oklch(0.3 0.165 287.539);
--chart-5: oklch(0.465 0.132 148.298);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.138 0.014 158.553);
--foreground: oklch(1 0 180);
--muted: oklch(0.19 0.024 300.985);
--muted-foreground: oklch(0.805 0 169.695);
--popover: oklch(0.138 0.014 158.553);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.138 0.014 158.553);
--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.46 0.129 148.527);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.275 0.15 288.111);
--secondary-foreground: oklch(0.787 0.119 300.551);
--accent: oklch(0.374 0.102 45.005);
--accent-foreground: oklch(0.866 0.072 51.512);
--destructive: oklch(0.64 0.206 35.958);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.46 0.129 148.527);
--chart-1: oklch(0.46 0.129 148.527);
--chart-2: oklch(0.275 0.15 288.111);
--chart-3: oklch(0.374 0.102 45.005);
--chart-4: oklch(0.3 0.165 287.539);
--chart-5: oklch(0.465 0.132 148.298);
}