Tart is a shadcn/ui theme built around a muted light violet primary color (#e0dee3) with muted light violet accents (#c1bcc8). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the muted light violet primary (#e0dee3) on a violet-tinted background (#07040b).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfbfewhite | #07040bblack |
| Foreground | #050208black | #fcfcfdwhite |
| Card | #faf7fdghostwhite | #0a050fblack |
| Card foreground | #020104black | #ffffffwhite |
| Popover | #faf7fdghostwhite | #0a050fblack |
| Popover foreground | #020104black | #ffffffwhite |
| Primary | #e0dee3gainsboro | #e0dee3gainsboro |
| Primary foreground | #47424ddarkslategray | #47424ddarkslategray |
| Secondary | #cecdd0lightgrey | #1c1820black |
| Secondary foreground | #353338darkslategray | #b4abbfsilver |
| Muted | #e5deedlavender | #191221black |
| Muted foreground | #544c5ddimgray | #aaa2b3darkgray |
| Accent | #c1bcc8silver | #282032darkslategray |
| Accent foreground | #29252ddarkslategray | #c1b4cfsilver |
| Destructive | #c73605firebrick | #fa6533tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e0dee3gainsboro | #e0dee3gainsboro |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.01:1 | AAA |
| Text on card | 19.60:1 | AAA |
| Primary button | 7.30:1 | AAA |
| Secondary button | 7.87:1 | AAA |
| Muted text | 6.24:1 | AA |
| Accent | 8.07:1 | AAA |
| Destructive | 5.32:1 | AA |
| Text on background | 19.85:1 | AAA |
| Text on card | 20.14:1 | AAA |
| Primary button | 7.30:1 | AAA |
| Secondary button | 7.92:1 | AAA |
| Muted text | 7.40:1 | AAA |
| Accent | 7.97:1 | AAA |
| Destructive | 6.95:1 | AA |
Paste this into your globals.css to use Tart in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.004 307.062);
--foreground: oklch(0.102 0.022 308.517);
--muted: oklch(0.911 0.02 306.837);
--muted-foreground: oklch(0.43 0.029 306.285);
--popover: oklch(0.98 0.008 307.011);
--popover-foreground: oklch(0.081 0.017 308.517);
--card: oklch(0.98 0.008 307.011);
--card-foreground: oklch(0.081 0.017 308.517);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.904 0.007 307.016);
--primary-foreground: oklch(0.388 0.02 306.473);
--secondary: oklch(0.85 0.006 307.03);
--secondary-foreground: oklch(0.326 0.008 306.814);
--accent: oklch(0.803 0.018 306.836);
--accent-foreground: oklch(0.271 0.016 306.398);
--destructive: oklch(0.549 0.188 35.362);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.904 0.007 307.016);
--chart-1: oklch(0.904 0.007 307.016);
--chart-2: oklch(0.85 0.006 307.03);
--chart-3: oklch(0.803 0.018 306.836);
--chart-4: oklch(0.874 0.005 307.045);
--chart-5: oklch(0.902 0.01 306.98);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.119 0.022 308.188);
--foreground: oklch(0.991 0.002 307.086);
--muted: oklch(0.199 0.03 305.258);
--muted-foreground: oklch(0.726 0.026 306.682);
--popover: oklch(0.131 0.025 306.805);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.131 0.025 306.805);
--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.904 0.007 307.016);
--primary-foreground: oklch(0.388 0.02 306.473);
--secondary: oklch(0.217 0.016 306.207);
--secondary-foreground: oklch(0.755 0.031 306.609);
--accent: oklch(0.261 0.035 305.452);
--accent-foreground: oklch(0.79 0.04 306.494);
--destructive: oklch(0.689 0.193 38.037);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.904 0.007 307.016);
--chart-1: oklch(0.904 0.007 307.016);
--chart-2: oklch(0.217 0.016 306.207);
--chart-3: oklch(0.261 0.035 305.452);
--chart-4: oklch(0.248 0.02 306.133);
--chart-5: oklch(0.902 0.01 306.98);
}