Clip for shadcn/ui

Clip is a shadcn/ui theme built around a muted pink primary color (#925d78) with muted blue accents (#5d7892). The light mode uses a neutral background (#fefbfc). Dark mode keeps the muted pink primary (#925d78) on a neutral background (#070405).

Color palette

TokenLightDark
Background
#fefbfcsnow
#070405black
Foreground
#15050dblack
#faf4f7whitesmoke
Card
#fcf8fasnow
#0a0508black
Card foreground
#11040ablack
#fcf8fasnow
Popover
#fcf8fasnow
#0a0508black
Popover foreground
#11040ablack
#fcf8fasnow
Primary
#925d78gray
#925d78gray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#78925dgray
#78925dgray
Secondary foreground
#000000black
#000000black
Muted
#f2f7eewhitesmoke
#0d1108black
Muted foreground
#42463fdarkslategray
#bdc0b9silver
Accent
#5d7892slategray
#5d7892slategray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#932506saddlebrown
#f65428tomato
Destructive foreground
#fdd8cebisque
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#925d78gray
#925d78gray

Contrast

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

Light mode
Text on background19.29:1AAA
Text on card19.03:1AAA
Primary button5.14:1AA
Secondary button6.08:1AA
Muted text8.85:1AAA
Accent4.59:1AA
Destructive6.35:1AA
Dark mode
Text on background18.85:1AAA
Text on card19.18:1AAA
Primary button5.14:1AA
Secondary button6.08:1AA
Muted text10.34:1AAA
Accent4.59:1AA
Destructive6.22:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 345.221);
  --foreground: oklch(0.147 0.035 349.048);
  --muted: oklch(0.97 0.013 128.611);
  --muted-foreground: oklch(0.387 0.012 128.805);
  --popover: oklch(0.982 0.006 345.299);
  --popover-foreground: oklch(0.134 0.031 347.277);
  --card: oklch(0.982 0.006 345.299);
  --card-foreground: oklch(0.134 0.031 347.277);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.546 0.077 348.584);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.627 0.081 130.057);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.562 0.051 248.76);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.439 0.15 34.579);
  --destructive-foreground: oklch(0.911 0.044 35.946);
  --ring: oklch(0.546 0.077 348.584);
  --chart-1: oklch(0.546 0.077 348.584);
  --chart-2: oklch(0.627 0.081 130.057);
  --chart-3: oklch(0.562 0.051 248.76);
  --chart-4: oklch(0.655 0.085 130.067);
  --chart-5: oklch(0.544 0.088 349.056);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.111 0.01 345.05);
  --foreground: oklch(0.974 0.008 345.349);
  --muted: oklch(0.171 0.02 129.657);
  --muted-foreground: oklch(0.803 0.01 128.598);
  --popover: oklch(0.127 0.012 345.05);
  --popover-foreground: oklch(0.982 0.005 345.279);
  --card: oklch(0.127 0.012 345.05);
  --card-foreground: oklch(0.982 0.005 345.279);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.546 0.077 348.584);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.627 0.081 130.057);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.562 0.051 248.76);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.662 0.205 35.603);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.546 0.077 348.584);
  --chart-1: oklch(0.546 0.077 348.584);
  --chart-2: oklch(0.627 0.081 130.057);
  --chart-3: oklch(0.562 0.051 248.76);
  --chart-4: oklch(0.655 0.085 130.067);
  --chart-5: oklch(0.544 0.088 349.056);
}