Torte is a shadcn/ui theme built around a green primary color (#4de669) with purple accents (#e64dc9). The light mode uses a neutral background (#f8fcf9). Dark mode keeps the green primary (#4de669) on a green-tinted background (#040c05).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fcf9mintcream | #040c05black |
| Foreground | #010401black | #ffffffwhite |
| Card | #f8fcf9mintcream | #040c05black |
| Card foreground | #010401black | #ffffffwhite |
| Popover | #f8fcf9mintcream | #040c05black |
| Popover foreground | #010401black | #ffffffwhite |
| Primary | #4de669mediumseagreen | #4de669mediumseagreen |
| Primary foreground | #000000black | #000000black |
| Secondary | #e64dc9orchid | #e64dc9orchid |
| Secondary foreground | #000000black | #000000black |
| Muted | #e3dee2gainsboro | #211c20black |
| Muted foreground | #5a5359dimgray | #aca5aadarkgray |
| Accent | #e64dc9orchid | #e64dc9orchid |
| Accent foreground | #000000black | #000000black |
| Destructive | #c82b04firebrick | #fb5a32tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #4de669mediumseagreen | #4de669mediumseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.86:1 | AAA |
| Text on card | 19.86:1 | AAA |
| Primary button | 12.77:1 | AAA |
| Secondary button | 6.24:1 | AA |
| Muted text | 5.61:1 | AA |
| Accent | 6.24:1 | AA |
| Destructive | 5.51:1 | AA |
| Text on background | 19.84:1 | AAA |
| Text on card | 19.84:1 | AAA |
| Primary button | 12.77:1 | AAA |
| Secondary button | 6.24:1 | AA |
| Muted text | 6.95:1 | AA |
| Accent | 6.24:1 | AA |
| Destructive | 6.61:1 | AA |
Paste this into your globals.css to use Torte in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.006 151.327);
--foreground: oklch(0.098 0.019 150.316);
--muted: oklch(0.905 0.008 331.525);
--muted-foreground: oklch(0.452 0.013 331.801);
--popover: oklch(0.987 0.006 151.327);
--popover-foreground: oklch(0.098 0.019 150.316);
--card: oklch(0.987 0.006 151.327);
--card-foreground: oklch(0.098 0.019 150.316);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.816 0.211 146.459);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.67 0.229 336.009);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.67 0.229 336.009);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.542 0.197 33.191);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.816 0.211 146.459);
--chart-1: oklch(0.816 0.211 146.459);
--chart-2: oklch(0.67 0.229 336.009);
--chart-3: oklch(0.67 0.229 336.009);
--chart-4: oklch(0.688 0.216 335.557);
--chart-5: oklch(0.823 0.217 146.296);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.14 0.023 150.431);
--foreground: oklch(1 0 180);
--muted: oklch(0.234 0.011 332.033);
--muted-foreground: oklch(0.729 0.011 331.625);
--popover: oklch(0.14 0.023 150.431);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.14 0.023 150.431);
--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.816 0.211 146.459);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.67 0.229 336.009);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.67 0.229 336.009);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.677 0.203 34.959);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.816 0.211 146.459);
--chart-1: oklch(0.816 0.211 146.459);
--chart-2: oklch(0.67 0.229 336.009);
--chart-3: oklch(0.67 0.229 336.009);
--chart-4: oklch(0.688 0.216 335.557);
--chart-5: oklch(0.823 0.217 146.296);
}