Dish is a shadcn/ui theme built around a muted light purple primary color (#e6d6e5) with muted light pink accents (#e6d6dc). The light mode uses a neutral background (#fdfbfd). Dark mode keeps the muted light purple primary (#e6d6e5) on a purple-tinted background (#0e070d).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbfdsnow | #0e070dblack |
| Foreground | #110310black | #ffffffwhite |
| Card | #fcf8fcsnow | #110910black |
| Card foreground | #0d030cblack | #ffffffwhite |
| Popover | #fdfbfdsnow | #0e070dblack |
| Popover foreground | #110310black | #ffffffwhite |
| Primary | #e6d6e5gainsboro | #e6d6e5gainsboro |
| Primary foreground | #563453darkslategray | #563453darkslategray |
| Secondary | #dfd6e6gainsboro | #dfd6e6gainsboro |
| Secondary foreground | #483456darkslategray | #483456darkslategray |
| Muted | #eeeaf0lavender | #120f15black |
| Muted foreground | #48434cdarkslategray | #b8b3bcsilver |
| Accent | #e6d6dcgainsboro | #e6d6dcgainsboro |
| Accent foreground | #563442darkslategray | #563442darkslategray |
| Destructive | #cc1f00firebrick | #ff4d2etomato |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e6d6e5gainsboro | #e6d6e5gainsboro |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.59:1 | AAA |
| Text on card | 19.26:1 | AAA |
| Primary button | 7.49:1 | AAA |
| Secondary button | 7.81:1 | AAA |
| Muted text | 8.10:1 | AAA |
| Accent | 7.62:1 | AAA |
| Destructive | 5.58:1 | AA |
| Text on background | 19.93:1 | AAA |
| Text on card | 19.65:1 | AAA |
| Primary button | 7.49:1 | AAA |
| Secondary button | 7.81:1 | AAA |
| Muted text | 9.23:1 | AAA |
| Accent | 7.62:1 | AAA |
| Destructive | 3.30:1 | AA Large |
Paste this into your globals.css to use Dish in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 328.099);
--foreground: oklch(0.137 0.039 330.263);
--muted: oklch(0.942 0.008 311.652);
--muted-foreground: oklch(0.391 0.016 311.403);
--popover: oklch(0.991 0.003 328.099);
--popover-foreground: oklch(0.137 0.039 330.263);
--card: oklch(0.983 0.007 328.135);
--card-foreground: oklch(0.123 0.034 329.885);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.893 0.027 328.378);
--primary-foreground: oklch(0.378 0.069 329.816);
--secondary: oklch(0.887 0.025 311.5);
--secondary-foreground: oklch(0.361 0.063 310.273);
--accent: oklch(0.89 0.02 350.304);
--accent-foreground: oklch(0.37 0.054 353.479);
--destructive: oklch(0.541 0.208 31.488);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.893 0.027 328.378);
--chart-1: oklch(0.893 0.027 328.378);
--chart-2: oklch(0.887 0.025 311.5);
--chart-3: oklch(0.89 0.02 350.304);
--chart-4: oklch(0.914 0.019 311.558);
--chart-5: oklch(0.892 0.03 328.415);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.141 0.018 329.192);
--foreground: oklch(1 0 180);
--muted: oklch(0.175 0.013 311.14);
--muted-foreground: oklch(0.774 0.013 311.587);
--popover: oklch(0.141 0.018 329.192);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.153 0.021 329.407);
--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.893 0.027 328.378);
--primary-foreground: oklch(0.378 0.069 329.816);
--secondary: oklch(0.887 0.025 311.5);
--secondary-foreground: oklch(0.361 0.063 310.273);
--accent: oklch(0.89 0.02 350.304);
--accent-foreground: oklch(0.37 0.054 353.479);
--destructive: oklch(0.67 0.219 32.378);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.893 0.027 328.378);
--chart-1: oklch(0.893 0.027 328.378);
--chart-2: oklch(0.887 0.025 311.5);
--chart-3: oklch(0.89 0.02 350.304);
--chart-4: oklch(0.914 0.019 311.558);
--chart-5: oklch(0.892 0.03 328.415);
}