Tasty is a shadcn/ui theme built around a deep orange primary color (#34200e) with muted light orange accents (#d7c9bc). The light mode uses a neutral background (#fefcfb). Dark mode keeps the deep orange primary (#34200e) on an orange-tinted background (#0a0705).
| Token | Light | Dark |
|---|---|---|
| Background | #fefcfbsnow | #0a0705black |
| Foreground | #130c06black | #ffffffwhite |
| Card | #fdfaf7snow | #0d0a07black |
| Card foreground | #100a05black | #ffffffwhite |
| Popover | #fefcfbsnow | #0a0705black |
| Popover foreground | #130c06black | #ffffffwhite |
| Primary | #34200eblack | #34200eblack |
| Primary foreground | #e1b893burlywood | #e1b893burlywood |
| Secondary | #e1dbd6gainsboro | #36302bdarkslategray |
| Secondary foreground | #4c4238darkslategray | #cfc9c4silver |
| Muted | #e4e0ddgainsboro | #221e1bblack |
| Muted foreground | #4c4239darkslategray | #c6bcb3silver |
| Accent | #d7c9bcsilver | #564639darkolivegreen |
| Accent foreground | #3d3024darkslategray | #e7e0dagainsboro |
| Destructive | #9e1b0afirebrick | #eb290forangered |
| Destructive foreground | #fde1ddmistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #34200eblack | #34200eblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.99:1 | AAA |
| Text on card | 18.87:1 | AAA |
| Primary button | 8.45:1 | AAA |
| Secondary button | 7.13:1 | AAA |
| Muted text | 7.46:1 | AAA |
| Accent | 7.84:1 | AAA |
| Destructive | 6.47:1 | AA |
| Text on background | 20.04:1 | AAA |
| Text on card | 19.73:1 | AAA |
| Primary button | 8.45:1 | AAA |
| Secondary button | 7.92:1 | AAA |
| Muted text | 8.83:1 | AAA |
| Accent | 6.87:1 | AA |
| Destructive | 4.33:1 | AA Large |
Paste this into your globals.css to use Tasty in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.993 0.002 64.058);
--foreground: oklch(0.163 0.018 64.69);
--muted: oklch(0.909 0.006 64.009);
--muted-foreground: oklch(0.385 0.02 63.389);
--popover: oklch(0.993 0.002 64.058);
--popover-foreground: oklch(0.163 0.018 64.69);
--card: oklch(0.986 0.005 64.027);
--card-foreground: oklch(0.15 0.016 67.963);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.264 0.042 60.534);
--primary-foreground: oklch(0.809 0.069 62.796);
--secondary: oklch(0.894 0.009 63.958);
--secondary-foreground: oklch(0.386 0.021 63.334);
--accent: oklch(0.843 0.023 63.728);
--accent-foreground: oklch(0.319 0.027 62.814);
--destructive: oklch(0.453 0.168 30.979);
--destructive-foreground: oklch(0.932 0.031 26.696);
--ring: oklch(0.264 0.042 60.534);
--chart-1: oklch(0.264 0.042 60.534);
--chart-2: oklch(0.894 0.009 63.958);
--chart-3: oklch(0.843 0.023 63.728);
--chart-4: oklch(0.917 0.007 63.99);
--chart-5: oklch(0.266 0.044 60.221);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.134 0.008 68.39);
--foreground: oklch(1 0 180);
--muted: oklch(0.24 0.008 63.646);
--muted-foreground: oklch(0.801 0.016 63.825);
--popover: oklch(0.134 0.008 68.39);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.148 0.009 66.015);
--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.264 0.042 60.534);
--primary-foreground: oklch(0.809 0.069 62.796);
--secondary: oklch(0.314 0.012 63.585);
--secondary-foreground: oklch(0.84 0.01 63.933);
--accent: oklch(0.408 0.03 63.023);
--accent-foreground: oklch(0.91 0.011 63.943);
--destructive: oklch(0.604 0.229 30.878);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.264 0.042 60.534);
--chart-1: oklch(0.264 0.042 60.534);
--chart-2: oklch(0.314 0.012 63.585);
--chart-3: oklch(0.408 0.03 63.023);
--chart-4: oklch(0.344 0.014 63.568);
--chart-5: oklch(0.266 0.044 60.221);
}