Tasty is a shadcn/ui theme built around a neutral gray primary color (#606c69) with neutral gray accents (#60696c). The light mode uses a neutral background (#fbfefd). Dark mode keeps the neutral gray primary (#606c69) on a neutral background (#020807).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefdwhite | #020807black |
| Foreground | #010403black | #f6f9f8whitesmoke |
| Card | #fbfefdwhite | #020807black |
| Card foreground | #010403black | #f6f9f8whitesmoke |
| Popover | #fbfefdwhite | #020807black |
| Popover foreground | #010403black | #f6f9f8whitesmoke |
| Primary | #606c69dimgray | #606c69dimgray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #606c63dimgray | #606c63dimgray |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e2e9e4gainsboro | #161d18black |
| Muted foreground | #424843darkslategray | #b7bdb9silver |
| Accent | #60696cdimgray | #60696cdimgray |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #ca5216chocolate | #e97135tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #606c69dimgray | #606c69dimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.29:1 | AAA |
| Text on card | 20.29:1 | AAA |
| Primary button | 5.45:1 | AA |
| Secondary button | 5.48:1 | AA |
| Muted text | 7.58:1 | AAA |
| Accent | 5.60:1 | AA |
| Destructive | 4.43:1 | AA Large |
| Text on background | 19.04:1 | AAA |
| Text on card | 19.04:1 | AAA |
| Primary button | 5.45:1 | AA |
| Secondary button | 5.48:1 | AA |
| Muted text | 9.00:1 | AAA |
| Accent | 5.60:1 | AA |
| Destructive | 6.85:1 | AA |
Paste this into your globals.css to use Tasty in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.004 178.682);
--foreground: oklch(0.099 0.012 178.886);
--muted: oklch(0.927 0.01 153.067);
--muted-foreground: oklch(0.394 0.01 152.817);
--popover: oklch(0.995 0.004 178.682);
--popover-foreground: oklch(0.099 0.012 178.886);
--card: oklch(0.995 0.004 178.682);
--card-foreground: oklch(0.099 0.012 178.886);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.52 0.016 177.89);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.518 0.021 152.567);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.515 0.012 217.909);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.589 0.166 42.398);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.52 0.016 177.89);
--chart-1: oklch(0.52 0.016 177.89);
--chart-2: oklch(0.518 0.021 152.567);
--chart-3: oklch(0.515 0.012 217.909);
--chart-4: oklch(0.546 0.022 152.562);
--chart-5: oklch(0.526 0.023 177.45);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.125 0.015 178.888);
--foreground: oklch(0.979 0.003 178.698);
--muted: oklch(0.221 0.014 152.168);
--muted-foreground: oklch(0.792 0.008 153.065);
--popover: oklch(0.125 0.015 178.888);
--popover-foreground: oklch(0.979 0.003 178.698);
--card: oklch(0.125 0.015 178.888);
--card-foreground: oklch(0.979 0.003 178.698);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.52 0.016 177.89);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.518 0.021 152.567);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.515 0.012 217.909);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.68 0.165 44.643);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.52 0.016 177.89);
--chart-1: oklch(0.52 0.016 177.89);
--chart-2: oklch(0.518 0.021 152.567);
--chart-3: oklch(0.515 0.012 217.909);
--chart-4: oklch(0.546 0.022 152.562);
--chart-5: oklch(0.526 0.023 177.45);
}