Tan is a shadcn/ui theme built around a teal primary color (#2bb17d) with orange accents (#b17d2b). The light mode uses a neutral background (#f8fcfa). Dark mode keeps the teal primary (#2bb17d) on a teal-tinted background (#050a08).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fcfamintcream | #050a08black |
| Foreground | #03160fblack | #fcfdfdwhite |
| Card | #f5faf8mintcream | #070e0bblack |
| Card foreground | #03120cblack | #ffffffwhite |
| Popover | #f8fcfamintcream | #050a08black |
| Popover foreground | #03160fblack | #fcfdfdwhite |
| Primary | #2bb17dmediumseagreen | #2bb17dmediumseagreen |
| Primary foreground | #030c09black | #030c09black |
| Secondary | #7d2bb1rebeccapurple | #7d2bb1rebeccapurple |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #dfd9e3gainsboro | #221c26black |
| Muted foreground | #57495fdimgray | #ada0b6darkgray |
| Accent | #b17d2bdarkgoldenrod | #b17d2bdarkgoldenrod |
| Accent foreground | #000000black | #000000black |
| Destructive | #6d0c08maroon | #ef302acrimson |
| Destructive foreground | #f9b1aelightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #2bb17dmediumseagreen | #2bb17dmediumseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.00:1 | AAA |
| Text on card | 18.16:1 | AAA |
| Primary button | 7.21:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 6.00:1 | AA |
| Accent | 5.83:1 | AA |
| Destructive | 6.99:1 | AA |
| Text on background | 19.53:1 | AAA |
| Text on card | 19.54:1 | AAA |
| Primary button | 7.21:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 6.70:1 | AA |
| Accent | 5.83:1 | AA |
| Destructive | 4.09:1 | AA Large |
Paste this into your globals.css to use Tan in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.004 171.469);
--foreground: oklch(0.181 0.03 166.88);
--muted: oklch(0.893 0.015 312.871);
--muted-foreground: oklch(0.428 0.039 312.362);
--popover: oklch(0.987 0.004 171.469);
--popover-foreground: oklch(0.181 0.03 166.88);
--card: oklch(0.981 0.006 171.407);
--card-foreground: oklch(0.164 0.026 168.548);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.676 0.136 162.164);
--primary-foreground: oklch(0.143 0.019 171.3);
--secondary: oklch(0.478 0.201 308.584);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.628 0.115 75.102);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.344 0.13 28.715);
--destructive-foreground: oklch(0.827 0.085 21.27);
--ring: oklch(0.676 0.136 162.164);
--chart-1: oklch(0.676 0.136 162.164);
--chart-2: oklch(0.478 0.201 308.584);
--chart-3: oklch(0.628 0.115 75.102);
--chart-4: oklch(0.501 0.212 308.534);
--chart-5: oklch(0.685 0.14 161.733);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.138 0.011 171.763);
--foreground: oklch(0.993 0.001 171.555);
--muted: oklch(0.239 0.021 312.397);
--muted-foreground: oklch(0.724 0.035 312.661);
--popover: oklch(0.138 0.011 171.763);
--popover-foreground: oklch(0.993 0.001 171.555);
--card: oklch(0.153 0.013 170.063);
--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.676 0.136 162.164);
--primary-foreground: oklch(0.143 0.019 171.3);
--secondary: oklch(0.478 0.201 308.584);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.628 0.115 75.102);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.618 0.226 28.212);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.676 0.136 162.164);
--chart-1: oklch(0.676 0.136 162.164);
--chart-2: oklch(0.478 0.201 308.584);
--chart-3: oklch(0.628 0.115 75.102);
--chart-4: oklch(0.501 0.212 308.534);
--chart-5: oklch(0.685 0.14 161.733);
}