Tasty is a shadcn/ui theme built around a muted deep violet primary color (#120e1a) with muted light violet accents (#bdb5d4). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the muted deep violet primary (#120e1a) on a neutral background (#020104).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfbfewhite | #020104black |
| Foreground | #070410black | #fcfcfdwhite |
| Card | #f9f7fdghostwhite | #040208black |
| Card foreground | #05030cblack | #ffffffwhite |
| Popover | #f9f7fdghostwhite | #040208black |
| Popover foreground | #05030cblack | #ffffffwhite |
| Primary | #120e1ablack | #120e1ablack |
| Primary foreground | #a296c5darkgray | #a296c5darkgray |
| Secondary | #d3cfddlightgrey | #262527darkslategray |
| Secondary foreground | #383348darkslategray | #bebdc1silver |
| Muted | #f2f2f3whitesmoke | #0c0c0dblack |
| Muted foreground | #595562dimgray | #a09daadarkgray |
| Accent | #bdb5d4lightsteelblue | #322f3ddarkslategray |
| Accent foreground | #262037darkslategray | #ccc8d5lightgrey |
| Destructive | #c01907firebrick | #f7402borangered |
| Destructive foreground | #fffbfasnow | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #120e1ablack | #120e1ablack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.69:1 | AAA |
| Text on card | 19.25:1 | AAA |
| Primary button | 6.96:1 | AA |
| Secondary button | 7.93:1 | AAA |
| Muted text | 6.45:1 | AA |
| Accent | 7.98:1 | AAA |
| Destructive | 6.03:1 | AA |
| Text on background | 20.29:1 | AAA |
| Text on card | 20.62:1 | AAA |
| Primary button | 6.96:1 | AA |
| Secondary button | 8.16:1 | AAA |
| Muted text | 7.34:1 | AAA |
| Accent | 7.97:1 | AAA |
| Destructive | 3.66:1 | AA Large |
Paste this into your globals.css to use Tasty in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.004 298.499);
--foreground: oklch(0.123 0.031 296.978);
--muted: oklch(0.961 0.002 298.535);
--muted-foreground: oklch(0.459 0.021 297.762);
--popover: oklch(0.979 0.008 298.429);
--popover-foreground: oklch(0.111 0.027 298.154);
--card: oklch(0.979 0.008 298.429);
--card-foreground: oklch(0.111 0.027 298.154);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.176 0.024 296.042);
--primary-foreground: oklch(0.7 0.07 296.791);
--secondary: oklch(0.862 0.019 298.174);
--secondary-foreground: oklch(0.335 0.037 296.6);
--accent: oklch(0.79 0.044 297.596);
--accent-foreground: oklch(0.262 0.042 295.609);
--destructive: oklch(0.516 0.2 30.433);
--destructive-foreground: oklch(0.99 0.005 25.028);
--ring: oklch(0.176 0.024 296.042);
--chart-1: oklch(0.176 0.024 296.042);
--chart-2: oklch(0.862 0.019 298.174);
--chart-3: oklch(0.79 0.044 297.596);
--chart-4: oklch(0.889 0.016 298.26);
--chart-5: oklch(0.175 0.027 295.731);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.079 0.017 298.427);
--foreground: oklch(0.992 0.001 298.546);
--muted: oklch(0.156 0.003 298.261);
--muted-foreground: oklch(0.702 0.019 298.096);
--popover: oklch(0.099 0.021 298.427);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.099 0.021 298.427);
--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.176 0.024 296.042);
--primary-foreground: oklch(0.7 0.07 296.791);
--secondary: oklch(0.266 0.004 298.285);
--secondary-foreground: oklch(0.801 0.005 298.448);
--accent: oklch(0.313 0.025 297.149);
--accent-foreground: oklch(0.84 0.018 298.198);
--destructive: oklch(0.644 0.222 30.344);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.176 0.024 296.042);
--chart-1: oklch(0.176 0.024 296.042);
--chart-2: oklch(0.266 0.004 298.285);
--chart-3: oklch(0.313 0.025 297.149);
--chart-4: oklch(0.297 0.005 298.271);
--chart-5: oklch(0.175 0.027 295.731);
}