Tart is a shadcn/ui theme built around a vivid deep blue primary color (#041634) with vivid deep orange accents (#342204). The light mode uses a neutral background (#f7f9fd). Dark mode keeps the vivid deep blue primary (#041634) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #f7f9fdghostwhite | #000000black |
| Foreground | #040a16black | #ffffffwhite |
| Card | #f2f6fcaliceblue | #030303black |
| Card foreground | #030811black | #ffffffwhite |
| Popover | #f2f6fcaliceblue | #030303black |
| Popover foreground | #030811black | #ffffffwhite |
| Primary | #041634black | #041634black |
| Primary foreground | #76a4f4cornflowerblue | #76a4f4cornflowerblue |
| Secondary | #342204black | #342204black |
| Secondary foreground | #ec9e18goldenrod | #ec9e18goldenrod |
| Muted | #e2e1dfgainsboro | #201f1dblack |
| Muted foreground | #574f42darkolivegreen | #bdb5a8darkgray |
| Accent | #342204black | #342204black |
| Accent foreground | #ec9e18goldenrod | #ec9e18goldenrod |
| Destructive | #9c0707darkred | #f41a1ared |
| Destructive foreground | #fdd8d8mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #041634black | #041634black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.78:1 | AAA |
| Text on card | 18.51:1 | AAA |
| Primary button | 7.18:1 | AAA |
| Secondary button | 6.85:1 | AA |
| Muted text | 6.17:1 | AA |
| Accent | 6.85:1 | AA |
| Destructive | 6.53:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 7.18:1 | AAA |
| Secondary button | 6.85:1 | AA |
| Muted text | 8.09:1 | AAA |
| Accent | 6.85:1 | AA |
| Destructive | 4.18:1 | AA Large |
Paste this into your globals.css to use Tart in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.006 261.512);
--foreground: oklch(0.145 0.028 256.491);
--muted: oklch(0.91 0.003 81.514);
--muted-foreground: oklch(0.432 0.024 81.348);
--popover: oklch(0.972 0.009 261.51);
--popover-foreground: oklch(0.134 0.024 254.015);
--card: oklch(0.972 0.009 261.51);
--card-foreground: oklch(0.134 0.024 254.015);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.205 0.065 259.56);
--primary-foreground: oklch(0.72 0.127 260.845);
--secondary: oklch(0.269 0.051 77.25);
--secondary-foreground: oklch(0.759 0.157 72.854);
--accent: oklch(0.269 0.051 77.25);
--accent-foreground: oklch(0.759 0.157 72.854);
--destructive: oklch(0.438 0.175 28.702);
--destructive-foreground: oklch(0.913 0.042 17.938);
--ring: oklch(0.205 0.065 259.56);
--chart-1: oklch(0.205 0.065 259.56);
--chart-2: oklch(0.269 0.051 77.25);
--chart-3: oklch(0.269 0.051 77.25);
--chart-4: oklch(0.312 0.061 75.973);
--chart-5: oklch(0.205 0.067 259.303);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.24 0.005 81.496);
--muted-foreground: oklch(0.777 0.021 81.48);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.092 0 180);
--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.205 0.065 259.56);
--primary-foreground: oklch(0.72 0.127 260.845);
--secondary: oklch(0.269 0.051 77.25);
--secondary-foreground: oklch(0.759 0.157 72.854);
--accent: oklch(0.269 0.051 77.25);
--accent-foreground: oklch(0.759 0.157 72.854);
--destructive: oklch(0.615 0.242 28.353);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.205 0.065 259.56);
--chart-1: oklch(0.205 0.065 259.56);
--chart-2: oklch(0.269 0.051 77.25);
--chart-3: oklch(0.269 0.051 77.25);
--chart-4: oklch(0.312 0.061 75.973);
--chart-5: oklch(0.205 0.067 259.303);
}