Wafer for shadcn/ui

Wafer is a shadcn/ui theme built around a vivid light pink primary color (#fda5d3) with vivid light green accents (#a5fdd0). The light mode uses a neutral background (#fbf8fa). Dark mode keeps the vivid light pink primary (#fda5d3) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fbf8fasnow
#000000black
Foreground
#000000black
#ffffffwhite
Card
#faf5f7whitesmoke
#030303black
Card foreground
#000000black
#ffffffwhite
Popover
#faf5f7whitesmoke
#030303black
Popover foreground
#000000black
#ffffffwhite
Primary
#fda5d3lightpink
#fda5d3lightpink
Primary foreground
#6e023amaroon
#6e023amaroon
Secondary
#a5fdd0paleturquoise
#a5fdd0paleturquoise
Secondary foreground
#000a05black
#000a05black
Muted
#e9f1edwhitesmoke
#0e1612black
Muted foreground
#4b4e4cdarkslategray
#b1b4b2darkgray
Accent
#a5fdd0paleturquoise
#a5fdd0paleturquoise
Accent foreground
#000a05black
#000a05black
Destructive
#9b3d0dsaddlebrown
#ee763atomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fda5d3lightpink
#fda5d3lightpink

Contrast

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

Light mode
Text on background19.96:1AAA
Text on card19.46:1AAA
Primary button6.63:1AA
Secondary button16.81:1AAA
Muted text7.34:1AAA
Accent16.81:1AAA
Destructive6.87:1AA
Dark mode
Text on background21.00:1AAA
Text on card20.67:1AAA
Primary button6.63:1AA
Secondary button16.81:1AAA
Muted text8.79:1AAA
Accent16.81:1AAA
Destructive7.27:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.004 344.39);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.952 0.01 164.003);
  --muted-foreground: oklch(0.421 0.005 163.994);
  --popover: oklch(0.974 0.006 344.443);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.974 0.006 344.443);
  --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.822 0.118 347.69);
  --primary-foreground: oklch(0.351 0.141 358.35);
  --secondary: oklch(0.926 0.106 160.858);
  --secondary-foreground: oklch(0.129 0.026 164.459);
  --accent: oklch(0.926 0.106 160.858);
  --accent-foreground: oklch(0.129 0.026 164.459);
  --destructive: oklch(0.482 0.137 42.235);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.822 0.118 347.69);
  --chart-1: oklch(0.822 0.118 347.69);
  --chart-2: oklch(0.926 0.106 160.858);
  --chart-3: oklch(0.926 0.106 160.858);
  --chart-4: oklch(0.937 0.089 161.524);
  --chart-5: oklch(0.821 0.121 347.797);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.19 0.015 162.051);
  --muted-foreground: oklch(0.767 0.004 164.149);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --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.822 0.118 347.69);
  --primary-foreground: oklch(0.351 0.141 358.35);
  --secondary: oklch(0.926 0.106 160.858);
  --secondary-foreground: oklch(0.129 0.026 164.459);
  --accent: oklch(0.926 0.106 160.858);
  --accent-foreground: oklch(0.129 0.026 164.459);
  --destructive: oklch(0.696 0.165 44.872);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.822 0.118 347.69);
  --chart-1: oklch(0.822 0.118 347.69);
  --chart-2: oklch(0.926 0.106 160.858);
  --chart-3: oklch(0.926 0.106 160.858);
  --chart-4: oklch(0.937 0.089 161.524);
  --chart-5: oklch(0.821 0.121 347.797);
}