Dish for shadcn/ui

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).

Color palette

TokenLightDark
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

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background19.59:1AAA
Text on card19.26:1AAA
Primary button7.49:1AAA
Secondary button7.81:1AAA
Muted text8.10:1AAA
Accent7.62:1AAA
Destructive5.58:1AA
Dark mode
Text on background19.93:1AAA
Text on card19.65:1AAA
Primary button7.49:1AAA
Secondary button7.81:1AAA
Muted text9.23:1AAA
Accent7.62:1AAA
Destructive3.30:1AA Large

CSS variables

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);
}