Tasty is a shadcn/ui theme built around a vivid blue primary color (#1074b2) with muted blue accents (#afc3cf). The light mode uses a neutral background (#fbfdfe). Dark mode keeps the vivid blue primary (#1074b2) on a neutral background (#020303).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfdfewhite | #020303black |
| Foreground | #000000black | #fcfdfdwhite |
| Card | #fbfdfewhite | #020303black |
| Card foreground | #000000black | #fcfdfdwhite |
| Popover | #fbfdfewhite | #020303black |
| Popover foreground | #000000black | #fcfdfdwhite |
| Primary | #1074b2darkcyan | #1074b2darkcyan |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #cbd6dclightgrey | #283239darkslategray |
| Secondary foreground | #2f3d46darkslategray | #c0ccd3lightgrey |
| Muted | #e9ebeclavender | #131516black |
| Muted foreground | #53646edimgray | #91a1acdarkgray |
| Accent | #afc3cflightsteelblue | #364b59darkslategray |
| Accent foreground | #1d2830darkslategray | #d9e2e8gainsboro |
| Destructive | #812908saddlebrown | #f15a22chocolate |
| Destructive foreground | #fbd0c1peachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #1074b2darkcyan | #1074b2darkcyan |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.55:1 | AAA |
| Text on card | 20.55:1 | AAA |
| Primary button | 5.04:1 | AA |
| Secondary button | 7.54:1 | AAA |
| Muted text | 5.14:1 | AA |
| Accent | 8.24:1 | AAA |
| Destructive | 6.60:1 | AA |
| Text on background | 20.29:1 | AAA |
| Text on card | 20.29:1 | AAA |
| Primary button | 5.04:1 | AA |
| Secondary button | 7.94:1 | AAA |
| Muted text | 6.89:1 | AA |
| Accent | 6.89:1 | AA |
| Destructive | 6.20:1 | AA |
Paste this into your globals.css to use Tasty in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.992 0.002 234.537);
--foreground: oklch(0 0 0);
--muted: oklch(0.939 0.003 234.553);
--muted-foreground: oklch(0.493 0.026 235.362);
--popover: oklch(0.992 0.002 234.537);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0.002 234.537);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.538 0.128 244.078);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.869 0.015 234.755);
--secondary-foreground: oklch(0.352 0.025 235.685);
--accent: oklch(0.806 0.028 235.026);
--accent-foreground: oklch(0.271 0.021 235.874);
--destructive: oklch(0.411 0.129 37.673);
--destructive-foreground: oklch(0.891 0.053 40.97);
--ring: oklch(0.538 0.128 244.078);
--chart-1: oklch(0.538 0.128 244.078);
--chart-2: oklch(0.869 0.015 234.755);
--chart-3: oklch(0.806 0.028 235.026);
--chart-4: oklch(0.892 0.012 234.703);
--chart-5: oklch(0.541 0.131 244.587);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.092 0.005 230.714);
--foreground: oklch(0.992 0.001 234.524);
--muted: oklch(0.193 0.005 234.856);
--muted-foreground: oklch(0.7 0.024 235.035);
--popover: oklch(0.092 0.005 230.714);
--popover-foreground: oklch(0.992 0.001 234.524);
--card: oklch(0.092 0.005 230.714);
--card-foreground: oklch(0.992 0.001 234.524);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.538 0.128 244.078);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.312 0.019 235.501);
--secondary-foreground: oklch(0.837 0.017 234.797);
--accent: oklch(0.402 0.034 236.037);
--accent-foreground: oklch(0.908 0.012 234.705);
--destructive: oklch(0.66 0.197 38.313);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.538 0.128 244.078);
--chart-1: oklch(0.538 0.128 244.078);
--chart-2: oklch(0.312 0.019 235.501);
--chart-3: oklch(0.402 0.034 236.037);
--chart-4: oklch(0.342 0.021 235.538);
--chart-5: oklch(0.541 0.131 244.587);
}