Clause for shadcn/ui

Clause is a shadcn/ui theme built around a muted light pink primary color (#dbccd3) with muted light pink accents (#d3cace). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light pink primary (#dbccd3) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#040102black
#f9f6f7whitesmoke
Card
#fcfcfcsnow
#030303black
Card foreground
#000000black
#fbf9fasnow
Popover
#fcfcfcsnow
#030303black
Popover foreground
#000000black
#fbf9fasnow
Primary
#dbccd3lightgrey
#dbccd3lightgrey
Primary foreground
#453139darkslategray
#453139darkslategray
Secondary
#dfdddegainsboro
#1e1519black
Secondary foreground
#484244darkslategray
#c1a4b1darkgray
Muted
#f3ecefwhitesmoke
#130c0fblack
Muted foreground
#554e51darkslategray
#b1aaaddarkgray
Accent
#d3cacelightgrey
#351d27darkslategray
Accent foreground
#3a3135darkslategray
#d4b0bfsilver
Destructive
#b6360cfirebrick
#f2683atomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#dbccd3lightgrey
#dbccd3lightgrey

Contrast

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

Light mode
Text on background20.78:1AAA
Text on card20.54:1AAA
Primary button7.77:1AAA
Secondary button7.24:1AAA
Muted text6.97:1AA
Accent7.85:1AAA
Destructive5.94:1AA
Dark mode
Text on background19.55:1AAA
Text on card19.72:1AAA
Primary button7.77:1AAA
Secondary button7.84:1AAA
Muted text8.49:1AAA
Accent7.94:1AAA
Destructive6.85:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.083 0.019 348.33);
  --muted: oklch(0.95 0.009 348.983);
  --muted-foreground: oklch(0.432 0.01 349.347);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0 0 0);
  --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.86 0.018 349.32);
  --primary-foreground: oklch(0.338 0.032 351.214);
  --secondary: oklch(0.898 0.003 348.834);
  --secondary-foreground: oklch(0.386 0.008 349.331);
  --accent: oklch(0.848 0.011 349.089);
  --accent-foreground: oklch(0.324 0.016 350.017);
  --destructive: oklch(0.521 0.171 36.221);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.86 0.018 349.32);
  --chart-1: oklch(0.86 0.018 349.32);
  --chart-2: oklch(0.898 0.003 348.834);
  --chart-3: oklch(0.848 0.011 349.089);
  --chart-4: oklch(0.922 0.002 348.809);
  --chart-5: oklch(0.858 0.022 349.424);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.976 0.003 348.823);
  --muted: oklch(0.164 0.014 350.9);
  --muted-foreground: oklch(0.745 0.008 349.046);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(0.984 0.002 348.792);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.984 0.002 348.792);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.86 0.018 349.32);
  --primary-foreground: oklch(0.338 0.032 351.214);
  --secondary: oklch(0.208 0.018 350.947);
  --secondary-foreground: oklch(0.748 0.038 350.093);
  --accent: oklch(0.266 0.04 352.666);
  --accent-foreground: oklch(0.793 0.046 350.272);
  --destructive: oklch(0.683 0.181 38.374);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.86 0.018 349.32);
  --chart-1: oklch(0.86 0.018 349.32);
  --chart-2: oklch(0.208 0.018 350.947);
  --chart-3: oklch(0.266 0.04 352.666);
  --chart-4: oklch(0.239 0.022 351.146);
  --chart-5: oklch(0.858 0.022 349.424);
}