Waiver for shadcn/ui

Waiver is a shadcn/ui theme built around a muted teal primary color (#8da5a1) with muted red accents (#a58d91). The light mode uses a neutral background (#fcfdfd). Dark mode keeps the muted teal primary (#8da5a1) on a neutral background (#020807).

Color palette

TokenLightDark
Background
#fcfdfdwhite
#020807black
Foreground
#010908black
#f9fbfamintcream
Card
#f8fcfbmintcream
#040c0ablack
Card foreground
#010504black
#fcfdfdwhite
Popover
#f8fcfbmintcream
#040c0ablack
Popover foreground
#010504black
#fcfdfdwhite
Primary
#8da5a1darkseagreen
#8da5a1darkseagreen
Primary foreground
#000000black
#000000black
Secondary
#a58d91rosybrown
#a58d91rosybrown
Secondary foreground
#000000black
#000000black
Muted
#eae1e3gainsboro
#1e1517black
Muted foreground
#5c5153dimgray
#aea3a5darkgray
Accent
#a58d91rosybrown
#a58d91rosybrown
Accent foreground
#000000black
#000000black
Destructive
#e35502orangered
#fc5e03orangered
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#8da5a1darkseagreen
#8da5a1darkseagreen

Contrast

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

Light mode
Text on background19.76:1AAA
Text on card19.78:1AAA
Primary button8.04:1AAA
Secondary button6.81:1AA
Muted text5.93:1AA
Accent6.81:1AA
Destructive3.77:1AA Large
Dark mode
Text on background19.43:1AAA
Text on card19.43:1AAA
Primary button8.04:1AAA
Secondary button6.81:1AA
Muted text7.30:1AAA
Accent6.81:1AA
Destructive6.76:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.002 184.258);
  --foreground: oklch(0.128 0.019 184.004);
  --muted: oklch(0.917 0.01 4.607);
  --muted-foreground: oklch(0.448 0.014 5.133);
  --popover: oklch(0.987 0.004 184.204);
  --popover-foreground: oklch(0.102 0.015 184.004);
  --card: oklch(0.987 0.004 184.204);
  --card-foreground: oklch(0.102 0.015 184.004);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.703 0.028 183.209);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.666 0.03 5.49);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.666 0.03 5.49);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.631 0.191 41.587);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.703 0.028 183.209);
  --chart-1: oklch(0.703 0.028 183.209);
  --chart-2: oklch(0.666 0.03 5.49);
  --chart-3: oklch(0.666 0.03 5.49);
  --chart-4: oklch(0.692 0.028 5.35);
  --chart-5: oklch(0.708 0.035 182.942);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.124 0.013 184.087);
  --foreground: oklch(0.986 0.001 184.273);
  --muted: oklch(0.208 0.015 6.223);
  --muted-foreground: oklch(0.725 0.012 4.761);
  --popover: oklch(0.143 0.015 183.579);
  --popover-foreground: oklch(0.993 0.001 184.292);
  --card: oklch(0.143 0.015 183.579);
  --card-foreground: oklch(0.993 0.001 184.292);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.703 0.028 183.209);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.666 0.03 5.49);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.666 0.03 5.49);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.682 0.208 41.342);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.703 0.028 183.209);
  --chart-1: oklch(0.703 0.028 183.209);
  --chart-2: oklch(0.666 0.03 5.49);
  --chart-3: oklch(0.666 0.03 5.49);
  --chart-4: oklch(0.692 0.028 5.35);
  --chart-5: oklch(0.708 0.035 182.942);
}