Clip for shadcn/ui

Clip is a shadcn/ui theme built around a muted deep violet primary color (#413456) with muted light violet accents (#cdc8d5). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the muted deep violet primary (#413456) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fcfbfewhite
#000000black
Foreground
#040209black
#faf9fbghostwhite
Card
#fcfbfewhite
#000000black
Card foreground
#040209black
#faf9fbghostwhite
Popover
#fcfbfewhite
#000000black
Popover foreground
#040209black
#faf9fbghostwhite
Primary
#413456darkslategray
#413456darkslategray
Primary foreground
#dcd6e6gainsboro
#dcd6e6gainsboro
Secondary
#cdc8d5lightgrey
#232126black
Secondary foreground
#342e3ddarkslategray
#bcb8c1silver
Muted
#efecf4whitesmoke
#0f0b13black
Muted foreground
#46404fdarkslategray
#b6b0bfsilver
Accent
#cdc8d5lightgrey
#232126black
Accent foreground
#342e3ddarkslategray
#bcb8c1silver
Destructive
#891e0bdarkred
#ef5034tomato
Destructive foreground
#fbd2cbpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#413456darkslategray
#413456darkslategray

Contrast

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

Light mode
Text on background19.97:1AAA
Text on card19.97:1AAA
Primary button8.01:1AAA
Secondary button7.98:1AAA
Muted text8.52:1AAA
Accent7.98:1AAA
Destructive6.74:1AA
Dark mode
Text on background20.00:1AAA
Text on card20.00:1AAA
Primary button8.01:1AAA
Secondary button8.15:1AAA
Muted text9.22:1AAA
Accent8.15:1AAA
Destructive3.58:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.005 304.273);
  --foreground: oklch(0.096 0.028 305.755);
  --muted: oklch(0.947 0.011 304.183);
  --muted-foreground: oklch(0.384 0.025 303.411);
  --popover: oklch(0.989 0.005 304.273);
  --popover-foreground: oklch(0.096 0.028 305.755);
  --card: oklch(0.989 0.005 304.273);
  --card-foreground: oklch(0.096 0.028 305.755);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.354 0.061 301.797);
  --primary-foreground: oklch(0.885 0.024 303.964);
  --secondary: oklch(0.84 0.02 304.012);
  --secondary-foreground: oklch(0.314 0.028 303.081);
  --accent: oklch(0.84 0.02 304.012);
  --accent-foreground: oklch(0.314 0.028 303.081);
  --destructive: oklch(0.414 0.145 32.212);
  --destructive-foreground: oklch(0.897 0.047 29.743);
  --ring: oklch(0.354 0.061 301.797);
  --chart-1: oklch(0.354 0.061 301.797);
  --chart-2: oklch(0.84 0.02 304.012);
  --chart-3: oklch(0.84 0.02 304.012);
  --chart-4: oklch(0.866 0.016 304.075);
  --chart-5: oklch(0.351 0.068 301.432);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.983 0.003 304.302);
  --muted: oklch(0.16 0.017 302.839);
  --muted-foreground: oklch(0.768 0.021 303.953);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.983 0.003 304.302);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.983 0.003 304.302);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.354 0.061 301.797);
  --primary-foreground: oklch(0.885 0.024 303.964);
  --secondary: oklch(0.253 0.01 303.795);
  --secondary-foreground: oklch(0.789 0.014 304.098);
  --accent: oklch(0.253 0.01 303.795);
  --accent-foreground: oklch(0.789 0.014 304.098);
  --destructive: oklch(0.647 0.199 32.36);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.354 0.061 301.797);
  --chart-1: oklch(0.354 0.061 301.797);
  --chart-2: oklch(0.253 0.01 303.795);
  --chart-3: oklch(0.253 0.01 303.795);
  --chart-4: oklch(0.283 0.011 303.765);
  --chart-5: oklch(0.351 0.068 301.432);
}