Tomato is a shadcn/ui theme built around a muted violet primary color (#857792) with muted green accents (#849277). The light mode uses a neutral background (#fcfcfd). Dark mode keeps the muted violet primary (#857792) on a violet-tinted background (#08030c).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfcfdwhite | #08030cblack |
| Foreground | #000000black | #fcfcfdwhite |
| Card | #faf8fcghostwhite | #0a0410black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fcfcfdwhite | #08030cblack |
| Popover foreground | #000000black | #fcfcfdwhite |
| Primary | #857792gray | #857792gray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #849277gray | #849277gray |
| Secondary foreground | #000000black | #000000black |
| Muted | #f2f4f1whitesmoke | #0d0e0bblack |
| Muted foreground | #666c60dimgray | #999f93darkgray |
| Accent | #849277gray | #849277gray |
| Accent foreground | #000000black | #000000black |
| Destructive | #b90404firebrick | #fa1e1ered |
| Destructive foreground | #fff0f0lavenderblush | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #857792gray | #857792gray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.45:1 | AAA |
| Text on card | 19.91:1 | AAA |
| Primary button | 4.15:1 | AA Large |
| Secondary button | 6.36:1 | AA |
| Muted text | 4.88:1 | AA |
| Accent | 6.36:1 | AA |
| Destructive | 6.16:1 | AA |
| Text on background | 19.90:1 | AAA |
| Text on card | 20.20:1 | AAA |
| Primary button | 4.15:1 | AA Large |
| Secondary button | 6.36:1 | AA |
| Muted text | 7.12:1 | AAA |
| Accent | 6.36:1 | AA |
| Destructive | 3.97:1 | AA Large |
Paste this into your globals.css to use Tomato in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.002 309.1);
--foreground: oklch(0 0 0);
--muted: oklch(0.964 0.004 129.174);
--muted-foreground: oklch(0.522 0.02 129.544);
--popover: oklch(0.991 0.002 309.1);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.982 0.005 309.073);
--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.592 0.043 308.355);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.641 0.042 129.848);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.641 0.042 129.848);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.494 0.201 29.042);
--destructive-foreground: oklch(0.967 0.016 17.432);
--ring: oklch(0.592 0.043 308.355);
--chart-1: oklch(0.592 0.043 308.355);
--chart-2: oklch(0.641 0.042 129.848);
--chart-3: oklch(0.641 0.042 129.848);
--chart-4: oklch(0.665 0.039 129.77);
--chart-5: oklch(0.586 0.055 308.132);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.116 0.027 310.562);
--foreground: oklch(0.992 0.001 309.118);
--muted: oklch(0.162 0.007 129.578);
--muted-foreground: oklch(0.694 0.019 129.418);
--popover: oklch(0.116 0.027 310.562);
--popover-foreground: oklch(0.992 0.001 309.118);
--card: oklch(0.129 0.031 308.951);
--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.592 0.043 308.355);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.641 0.042 129.848);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.641 0.042 129.848);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.628 0.245 28.201);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.592 0.043 308.355);
--chart-1: oklch(0.592 0.043 308.355);
--chart-2: oklch(0.641 0.042 129.848);
--chart-3: oklch(0.641 0.042 129.848);
--chart-4: oklch(0.665 0.039 129.77);
--chart-5: oklch(0.586 0.055 308.132);
}