Tan is a shadcn/ui theme built around a vivid blue primary color (#0580eb) with vivid indigo accents (#050ceb). The light mode uses a neutral background (#fbfdfe). Dark mode keeps the vivid blue primary (#0580eb) on a blue-tinted background (#040b10).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfdfewhite | #040b10black |
| Foreground | #040b11black | #f9fafaghostwhite |
| Card | #f7fafdghostwhite | #050d14black |
| Card foreground | #03080dblack | #fcfcfdwhite |
| Popover | #f7fafdghostwhite | #050d14black |
| Popover foreground | #03080dblack | #fcfcfdwhite |
| Primary | #0580ebdodgerblue | #0580ebdodgerblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #05ebe3darkturquoise | #05ebe3darkturquoise |
| Secondary foreground | #012322black | #012322black |
| Muted | #dce5e5gainsboro | #1a2323black |
| Muted foreground | #586a69dimgray | #95a7a6darkgray |
| Accent | #050cebblue | #050cebblue |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #cd3513firebrick | #ed5c3btomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0580ebdodgerblue | #0580ebdodgerblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.34:1 | AAA |
| Text on card | 19.20:1 | AAA |
| Primary button | 3.98:1 | AA Large |
| Secondary button | 11.06:1 | AAA |
| Muted text | 4.45:1 | AA Large |
| Accent | 9.29:1 | AAA |
| Destructive | 5.08:1 | AA |
| Text on background | 18.96:1 | AAA |
| Text on card | 19.03:1 | AAA |
| Primary button | 3.98:1 | AA Large |
| Secondary button | 11.06:1 | AAA |
| Muted text | 6.35:1 | AA |
| Accent | 9.29:1 | AAA |
| Destructive | 6.17:1 | AA |
Paste this into your globals.css to use Tan in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.992 0.003 244.122);
--foreground: oklch(0.143 0.019 240.07);
--muted: oklch(0.915 0.011 194.576);
--muted-foreground: oklch(0.508 0.021 194.027);
--popover: oklch(0.984 0.005 244.155);
--popover-foreground: oklch(0.129 0.016 236.286);
--card: oklch(0.984 0.005 244.155);
--card-foreground: oklch(0.129 0.016 236.286);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.6 0.186 253.472);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.848 0.146 190.563);
--secondary-foreground: oklch(0.232 0.039 191.569);
--accent: oklch(0.43 0.291 264.494);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.561 0.194 33.417);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.6 0.186 253.472);
--chart-1: oklch(0.6 0.186 253.472);
--chart-2: oklch(0.848 0.146 190.563);
--chart-3: oklch(0.43 0.291 264.494);
--chart-4: oklch(0.889 0.153 190.549);
--chart-5: oklch(0.603 0.191 253.858);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.143 0.017 240.538);
--foreground: oklch(0.985 0.001 244.1);
--muted: oklch(0.249 0.014 193.764);
--muted-foreground: oklch(0.714 0.02 194.282);
--popover: oklch(0.155 0.02 243.351);
--popover-foreground: oklch(0.992 0 244.095);
--card: oklch(0.155 0.02 243.351);
--card-foreground: oklch(0.992 0 244.095);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.6 0.186 253.472);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.848 0.146 190.563);
--secondary-foreground: oklch(0.232 0.039 191.569);
--accent: oklch(0.43 0.291 264.494);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.658 0.186 34.149);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.6 0.186 253.472);
--chart-1: oklch(0.6 0.186 253.472);
--chart-2: oklch(0.848 0.146 190.563);
--chart-3: oklch(0.43 0.291 264.494);
--chart-4: oklch(0.889 0.153 190.549);
--chart-5: oklch(0.603 0.191 253.858);
}