Tame is a shadcn/ui theme built around a vivid green primary color (#afee5d) with vivid violet accents (#9c5dee). The light mode uses a neutral background (#fafdf7). Dark mode keeps the vivid green primary (#afee5d) on a green-tinted background (#080b04).
| Token | Light | Dark |
|---|---|---|
| Background | #fafdf7mintcream | #080b04black |
| Foreground | #0b1005black | #ffffffwhite |
| Card | #fafdf7mintcream | #080b04black |
| Card foreground | #0b1005black | #ffffffwhite |
| Popover | #fafdf7mintcream | #080b04black |
| Popover foreground | #0b1005black | #ffffffwhite |
| Primary | #afee5dgreenyellow | #afee5dgreenyellow |
| Primary foreground | #0e1702black | #0e1702black |
| Secondary | #9c5deemediumpurple | #9c5deemediumpurple |
| Secondary foreground | #000000black | #000000black |
| Muted | #e7e1eflavender | #16101eblack |
| Muted foreground | #3f3748darkslategray | #beb7c8silver |
| Accent | #9c5deemediumpurple | #9c5deemediumpurple |
| Accent foreground | #000000black | #000000black |
| Destructive | #6c0b04maroon | #f8473atomato |
| Destructive foreground | #fcaca6lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #afee5dgreenyellow | #afee5dgreenyellow |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.73:1 | AAA |
| Text on card | 18.73:1 | AAA |
| Primary button | 13.33:1 | AAA |
| Secondary button | 5.23:1 | AA |
| Muted text | 8.86:1 | AAA |
| Accent | 5.23:1 | AA |
| Destructive | 6.85:1 | AA |
| Text on background | 19.81:1 | AAA |
| Text on card | 19.81:1 | AAA |
| Primary button | 13.33:1 | AAA |
| Secondary button | 5.23:1 | AA |
| Muted text | 9.58:1 | AAA |
| Accent | 5.23:1 | AA |
| Destructive | 3.53:1 | AA Large |
Paste this into your globals.css to use Tame in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.008 125.843);
--foreground: oklch(0.162 0.024 126.486);
--muted: oklch(0.919 0.02 305.447);
--muted-foreground: oklch(0.353 0.03 304.611);
--popover: oklch(0.99 0.008 125.843);
--popover-foreground: oklch(0.162 0.024 126.486);
--card: oklch(0.99 0.008 125.843);
--card-foreground: oklch(0.162 0.024 126.486);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.878 0.185 129.399);
--primary-foreground: oklch(0.19 0.043 127.869);
--secondary: oklch(0.619 0.209 300.312);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.619 0.209 300.312);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.341 0.13 30.048);
--destructive-foreground: oklch(0.82 0.095 23.861);
--ring: oklch(0.878 0.185 129.399);
--chart-1: oklch(0.878 0.185 129.399);
--chart-2: oklch(0.619 0.209 300.312);
--chart-3: oklch(0.619 0.209 300.312);
--chart-4: oklch(0.649 0.193 301.192);
--chart-5: oklch(0.885 0.191 129.533);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.143 0.017 125.134);
--foreground: oklch(1 0 180);
--muted: oklch(0.188 0.03 303.574);
--muted-foreground: oklch(0.79 0.024 305.329);
--popover: oklch(0.143 0.017 125.134);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.143 0.017 125.134);
--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.878 0.185 129.399);
--primary-foreground: oklch(0.19 0.043 127.869);
--secondary: oklch(0.619 0.209 300.312);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.619 0.209 300.312);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.653 0.215 28.599);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.878 0.185 129.399);
--chart-1: oklch(0.878 0.185 129.399);
--chart-2: oklch(0.619 0.209 300.312);
--chart-3: oklch(0.619 0.209 300.312);
--chart-4: oklch(0.649 0.193 301.192);
--chart-5: oklch(0.885 0.191 129.533);
}