Waffle for shadcn/ui

Waffle is a shadcn/ui theme built around a neutral gray primary color (#919191) with neutral gray accents (#919191). The light mode uses a neutral background (#fefbfb). Dark mode keeps the neutral gray primary (#919191) on a neutral background (#040101).

Color palette

TokenLightDark
Background
#fefbfbsnow
#040101black
Foreground
#080303black
#fdfcfcsnow
Card
#fcf8f8snow
#080303black
Card foreground
#040101black
#ffffffwhite
Popover
#fefbfbsnow
#040101black
Popover foreground
#080303black
#fdfcfcsnow
Primary
#919191lightslategray
#919191lightslategray
Primary foreground
#000000black
#000000black
Secondary
#919191lightslategray
#919191lightslategray
Secondary foreground
#000000black
#000000black
Muted
#e7d0d0gainsboro
#2f1818black
Muted foreground
#574c4cdarkslategray
#b3a8a8darkgray
Accent
#919191lightslategray
#919191lightslategray
Accent foreground
#000000black
#000000black
Destructive
#641807maroon
#ee3911orangered
Destructive foreground
#f9b4a4lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#919191lightslategray
#919191lightslategray

Contrast

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

Light mode
Text on background19.94:1AAA
Text on card19.68:1AAA
Primary button6.69:1AA
Secondary button6.69:1AA
Muted text5.61:1AA
Accent6.69:1AA
Destructive7.20:1AAA
Dark mode
Text on background20.27:1AAA
Text on card20.53:1AAA
Primary button6.69:1AA
Secondary button6.69:1AA
Muted text7.17:1AAA
Accent6.69:1AA
Destructive4.00:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.002 17.198);
  --foreground: oklch(0.105 0.016 20.039);
  --muted: oklch(0.876 0.026 17.667);
  --muted-foreground: oklch(0.428 0.015 17.768);
  --popover: oklch(0.991 0.002 17.198);
  --popover-foreground: oklch(0.105 0.016 20.039);
  --card: oklch(0.982 0.005 17.239);
  --card-foreground: oklch(0.083 0.012 20.039);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.658 0 180);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.658 0 180);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.658 0 180);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.336 0.112 33.831);
  --destructive-foreground: oklch(0.83 0.084 33.039);
  --ring: oklch(0.658 0 180);
  --chart-1: oklch(0.658 0 180);
  --chart-2: oklch(0.658 0 180);
  --chart-3: oklch(0.658 0 180);
  --chart-4: oklch(0.683 0 180);
  --chart-5: oklch(0.653 0.008 17.357);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.084 0.012 19.87);
  --foreground: oklch(0.991 0.002 17.188);
  --muted: oklch(0.242 0.038 20.236);
  --muted-foreground: oklch(0.74 0.013 17.456);
  --popover: oklch(0.084 0.012 19.87);
  --popover-foreground: oklch(0.991 0.002 17.188);
  --card: oklch(0.106 0.015 19.87);
  --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.658 0 180);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.658 0 180);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.658 0 180);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.622 0.222 33.059);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.658 0 180);
  --chart-1: oklch(0.658 0 180);
  --chart-2: oklch(0.658 0 180);
  --chart-3: oklch(0.658 0 180);
  --chart-4: oklch(0.683 0 180);
  --chart-5: oklch(0.653 0.008 17.357);
}