Torte is a shadcn/ui theme built around an orange primary color (#d07149) with violet accents (#7149d0). The light mode uses a neutral background (#ffffff). Dark mode keeps the orange primary (#d07149) on an orange-tinted background (#0e0906).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0e0906black |
| Foreground | #110703black | #fbf9f8snow |
| Card | #ffffffwhite | #0e0906black |
| Card foreground | #110703black | #fbf9f8snow |
| Popover | #ffffffwhite | #0e0906black |
| Popover foreground | #110703black | #fbf9f8snow |
| Primary | #d07149peru | #d07149peru |
| Primary foreground | #000000black | #000000black |
| Secondary | #49d071mediumseagreen | #49d071mediumseagreen |
| Secondary foreground | #103d1ddarkgreen | #103d1ddarkgreen |
| Muted | #d5e7dagainsboro | #182a1dblack |
| Muted foreground | #516c59dimgray | #93ae9bdarkseagreen |
| Accent | #7149d0slateblue | #7149d0slateblue |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #7d2707saddlebrown | #f25d26chocolate |
| Destructive foreground | #fbccbcpeachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d07149peru | #d07149peru |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.89:1 | AAA |
| Text on card | 19.89:1 | AAA |
| Primary button | 6.14:1 | AA |
| Secondary button | 6.17:1 | AA |
| Muted text | 4.47:1 | AA Large |
| Accent | 5.90:1 | AA |
| Destructive | 6.67:1 | AA |
| Text on background | 18.89:1 | AAA |
| Text on card | 18.89:1 | AAA |
| Primary button | 6.14:1 | AA |
| Secondary button | 6.17:1 | AA |
| Muted text | 6.28:1 | AA |
| Accent | 5.90:1 | AA |
| Destructive | 6.36:1 | AA |
Paste this into your globals.css to use Torte in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.144 0.023 52.313);
--muted: oklch(0.911 0.026 155.308);
--muted-foreground: oklch(0.503 0.043 154.125);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.144 0.023 52.313);
--card: oklch(1 0 180);
--card-foreground: oklch(0.144 0.023 52.313);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.649 0.132 43.164);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.762 0.178 149.802);
--secondary-foreground: oklch(0.32 0.074 149.891);
--accent: oklch(0.525 0.198 291.947);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.402 0.126 37.657);
--destructive-foreground: oklch(0.883 0.058 40.948);
--ring: oklch(0.649 0.132 43.164);
--chart-1: oklch(0.649 0.132 43.164);
--chart-2: oklch(0.762 0.178 149.802);
--chart-3: oklch(0.525 0.198 291.947);
--chart-4: oklch(0.775 0.168 150.419);
--chart-5: oklch(0.651 0.138 42.999);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.144 0.011 48.131);
--foreground: oklch(0.984 0.003 44.955);
--muted: oklch(0.266 0.035 153.057);
--muted-foreground: oklch(0.725 0.039 154.788);
--popover: oklch(0.144 0.011 48.131);
--popover-foreground: oklch(0.984 0.003 44.955);
--card: oklch(0.144 0.011 48.131);
--card-foreground: oklch(0.984 0.003 44.955);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.649 0.132 43.164);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.762 0.178 149.802);
--secondary-foreground: oklch(0.32 0.074 149.891);
--accent: oklch(0.525 0.198 291.947);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.666 0.195 38.533);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.649 0.132 43.164);
--chart-1: oklch(0.649 0.132 43.164);
--chart-2: oklch(0.762 0.178 149.802);
--chart-3: oklch(0.525 0.198 291.947);
--chart-4: oklch(0.775 0.168 150.419);
--chart-5: oklch(0.651 0.138 42.999);
}