Tart is a shadcn/ui theme built around a muted red primary color (#b79185) with muted cyan accents (#85acb7). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted red primary (#b79185) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #160804black | #fdfcfcsnow |
| Card | #ffffffwhite | #000000black |
| Card foreground | #160804black | #fdfcfcsnow |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #160804black | #fdfcfcsnow |
| Primary | #b79185rosybrown | #b79185rosybrown |
| Primary foreground | #060404black | #060404black |
| Secondary | #85acb7darkgray | #85acb7darkgray |
| Secondary foreground | #040606black | #040606black |
| Muted | #e1e8ealavender | #151c1eblack |
| Muted foreground | #5f6667dimgray | #989ea0darkgray |
| Accent | #85acb7darkgray | #85acb7darkgray |
| Accent foreground | #040606black | #040606black |
| Destructive | #bc1010firebrick | #e11414crimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #b79185rosybrown | #b79185rosybrown |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.61:1 | AAA |
| Text on card | 19.61:1 | AAA |
| Primary button | 7.19:1 | AAA |
| Secondary button | 8.26:1 | AAA |
| Muted text | 4.72:1 | AA |
| Accent | 8.26:1 | AAA |
| Destructive | 6.53:1 | AA |
| Text on background | 20.50:1 | AAA |
| Text on card | 20.50:1 | AAA |
| Primary button | 7.19:1 | AAA |
| Secondary button | 8.26:1 | AAA |
| Muted text | 6.36:1 | AA |
| Accent | 8.26:1 | AAA |
| Destructive | 4.86:1 | AA |
Paste this into your globals.css to use Tart in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.154 0.027 42.924);
--muted: oklch(0.926 0.008 217.791);
--muted-foreground: oklch(0.504 0.008 217.846);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.154 0.027 42.924);
--card: oklch(1 0 180);
--card-foreground: oklch(0.154 0.027 42.924);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.688 0.05 37.593);
--primary-foreground: oklch(0.114 0.006 40.619);
--secondary: oklch(0.719 0.045 218.382);
--secondary-foreground: oklch(0.118 0.006 215.408);
--accent: oklch(0.719 0.045 218.382);
--accent-foreground: oklch(0.118 0.006 215.408);
--destructive: oklch(0.504 0.199 28.414);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.688 0.05 37.593);
--chart-1: oklch(0.688 0.05 37.593);
--chart-2: oklch(0.719 0.045 218.382);
--chart-3: oklch(0.719 0.045 218.382);
--chart-4: oklch(0.741 0.042 218.277);
--chart-5: oklch(0.688 0.056 37.598);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.992 0.001 37.738);
--muted: oklch(0.22 0.011 218.169);
--muted-foreground: oklch(0.694 0.008 217.808);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.992 0.001 37.738);
--card: oklch(0 0 0);
--card-foreground: oklch(0.992 0.001 37.738);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.688 0.05 37.593);
--primary-foreground: oklch(0.114 0.006 40.619);
--secondary: oklch(0.719 0.045 218.382);
--secondary-foreground: oklch(0.118 0.006 215.408);
--accent: oklch(0.719 0.045 218.382);
--accent-foreground: oklch(0.118 0.006 215.408);
--destructive: oklch(0.577 0.229 28.531);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.688 0.05 37.593);
--chart-1: oklch(0.688 0.05 37.593);
--chart-2: oklch(0.719 0.045 218.382);
--chart-3: oklch(0.719 0.045 218.382);
--chart-4: oklch(0.741 0.042 218.277);
--chart-5: oklch(0.688 0.056 37.598);
}