Wish for shadcn/ui

Wish is a shadcn/ui theme built around a muted teal primary color (#558b82) with muted light teal accents (#b8d5d1). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted teal primary (#558b82) on a neutral background (#040706).

Color palette

TokenLightDark
Background
#ffffffwhite
#040706black
Foreground
#010404black
#ffffffwhite
Card
#fcfcfcsnow
#050a09black
Card foreground
#000000black
#ffffffwhite
Popover
#ffffffwhite
#040706black
Popover foreground
#010404black
#ffffffwhite
Primary
#558b82slategray
#558b82slategray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#ccdbd9lightgrey
#222525darkslategray
Secondary foreground
#314541darkslategray
#b9c0bfsilver
Muted
#d8e8e6gainsboro
#172724black
Muted foreground
#394644darkslategray
#b9c6c4silver
Accent
#b8d5d1lightsteelblue
#364542darkslategray
Accent foreground
#223a36darkslategray
#d1dbd9lightgrey
Destructive
#d54407orangered
#f8530dorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#558b82slategray
#558b82slategray

Contrast

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

Light mode
Text on background20.57:1AAA
Text on card20.54:1AAA
Primary button3.87:1AA Large
Secondary button7.14:1AAA
Muted text7.80:1AAA
Accent7.83:1AAA
Destructive4.50:1AA
Dark mode
Text on background20.26:1AAA
Text on card19.91:1AAA
Primary button3.87:1AA Large
Secondary button8.31:1AAA
Muted text8.87:1AAA
Accent7.15:1AAA
Destructive3.37:1AA Large

CSS variables

Paste this into your globals.css to use Wish in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.101 0.014 185.056);
  --muted: oklch(0.919 0.017 184.953);
  --muted-foreground: oklch(0.383 0.017 184.258);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.101 0.014 185.056);
  --card: oklch(0.992 0 161.565);
  --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.597 0.059 182.5);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.88 0.016 184.964);
  --secondary-foreground: oklch(0.371 0.026 183.5);
  --accent: oklch(0.852 0.032 184.448);
  --accent-foreground: oklch(0.327 0.031 182.683);
  --destructive: oklch(0.589 0.19 37.983);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.597 0.059 182.5);
  --chart-1: oklch(0.597 0.059 182.5);
  --chart-2: oklch(0.88 0.016 184.964);
  --chart-3: oklch(0.852 0.032 184.448);
  --chart-4: oklch(0.901 0.013 185.061);
  --chart-5: oklch(0.604 0.065 182.159);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.121 0.008 185.25);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.256 0.022 182.955);
  --muted-foreground: oklch(0.815 0.014 184.987);
  --popover: oklch(0.121 0.008 185.25);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.138 0.009 185.25);
  --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.597 0.059 182.5);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.263 0.005 184.916);
  --secondary-foreground: oklch(0.802 0.008 185.204);
  --accent: oklch(0.375 0.019 184.04);
  --accent-foreground: oklch(0.884 0.011 185.128);
  --destructive: oklch(0.662 0.211 38.281);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.597 0.059 182.5);
  --chart-1: oklch(0.597 0.059 182.5);
  --chart-2: oklch(0.263 0.005 184.916);
  --chart-3: oklch(0.375 0.019 184.04);
  --chart-4: oklch(0.295 0.006 184.889);
  --chart-5: oklch(0.604 0.065 182.159);
}