Tattered is a shadcn/ui theme built around a green primary color (#4a941e) with green accents (#1e942e). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#4a941e) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #040901black | #f7f8f6whitesmoke |
| Card | #ffffffwhite | #000000black |
| Card foreground | #040901black | #f7f8f6whitesmoke |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #040901black | #f7f8f6whitesmoke |
| Primary | #4a941eolivedrab | #4a941eolivedrab |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #84941eolivedrab | #84941eolivedrab |
| Secondary foreground | #000000black | #000000black |
| Muted | #e3e7cbgainsboro | #303418darkslategray |
| Muted foreground | #606250dimgray | #acaf9ddarkgray |
| Accent | #1e942eforestgreen | #1e942eforestgreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #aa3609firebrick | #f35516orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #4a941eolivedrab | #4a941eolivedrab |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.10:1 | AAA |
| Text on card | 20.10:1 | AAA |
| Primary button | 3.78:1 | AA Large |
| Secondary button | 6.25:1 | AA |
| Muted text | 4.91:1 | AA |
| Accent | 3.93:1 | AA Large |
| Destructive | 6.48:1 | AA |
| Text on background | 19.71:1 | AAA |
| Text on card | 19.71:1 | AAA |
| Primary button | 3.78:1 | AA Large |
| Secondary button | 6.25:1 | AA |
| Muted text | 5.74:1 | AA |
| Accent | 3.93:1 | AA Large |
| Destructive | 3.43:1 | AA Large |
Paste this into your globals.css to use Tattered in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.129 0.029 131.522);
--muted: oklch(0.916 0.037 113.29);
--muted-foreground: oklch(0.489 0.028 113.595);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.129 0.029 131.522);
--card: oklch(1 0 180);
--card-foreground: oklch(0.129 0.029 131.522);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.596 0.165 136.912);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.633 0.136 117.319);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.584 0.173 144.599);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.499 0.158 37.936);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.596 0.165 136.912);
--chart-1: oklch(0.596 0.165 136.912);
--chart-2: oklch(0.633 0.136 117.319);
--chart-3: oklch(0.584 0.173 144.599);
--chart-4: oklch(0.673 0.145 117.355);
--chart-5: oklch(0.603 0.17 137.094);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.979 0.003 133.627);
--muted: oklch(0.314 0.045 115.262);
--muted-foreground: oklch(0.746 0.025 113.171);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.979 0.003 133.627);
--card: oklch(0 0 0);
--card-foreground: oklch(0.979 0.003 133.627);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.596 0.165 136.912);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.633 0.136 117.319);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.584 0.173 144.599);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.657 0.204 38.349);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.596 0.165 136.912);
--chart-1: oklch(0.596 0.165 136.912);
--chart-2: oklch(0.633 0.136 117.319);
--chart-3: oklch(0.584 0.173 144.599);
--chart-4: oklch(0.673 0.145 117.355);
--chart-5: oklch(0.603 0.17 137.094);
}