Crisp for shadcn/ui

Crisp is a shadcn/ui theme built around a light pink primary color (#eec8d9) with light red accents (#eecac8). The light mode uses a neutral background (#ffffff). Dark mode keeps the light pink primary (#eec8d9) on a neutral background (#040102).

Color palette

TokenLightDark
Background
#ffffffwhite
#040102black
Foreground
#000000black
#fdfcfcsnow
Card
#ffffffwhite
#040102black
Card foreground
#000000black
#fdfcfcsnow
Popover
#ffffffwhite
#040102black
Popover foreground
#000000black
#fdfcfcsnow
Primary
#eec8d9pink
#eec8d9pink
Primary foreground
#651f3fbrown
#651f3fbrown
Secondary
#eec8ecthistle
#eec8ecthistle
Secondary foreground
#651f62purple
#651f62purple
Muted
#f0eaf0whitesmoke
#150f14black
Muted foreground
#705c6fdimgray
#a38fa2darkgray
Accent
#eecac8pink
#eecac8pink
Accent foreground
#65231fsaddlebrown
#65231fsaddlebrown
Destructive
#a13f12saddlebrown
#e65d1echocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#eec8d9pink
#eec8d9pink

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button7.65:1AAA
Secondary button7.35:1AAA
Muted text5.15:1AA
Accent7.69:1AAA
Destructive6.50:1AA
Dark mode
Text on background20.28:1AAA
Text on card20.28:1AAA
Primary button7.65:1AAA
Secondary button7.35:1AAA
Muted text6.31:1AA
Accent7.69:1AAA
Destructive3.52:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.944 0.009 327.125);
  --muted-foreground: oklch(0.501 0.039 327.738);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --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.871 0.048 349.264);
  --primary-foreground: oklch(0.36 0.106 356.016);
  --secondary: oklch(0.877 0.064 327.685);
  --secondary-foreground: oklch(0.377 0.131 329.885);
  --accent: oklch(0.87 0.041 21.533);
  --accent-foreground: oklch(0.356 0.097 26.235);
  --destructive: oklch(0.496 0.14 41.52);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.871 0.048 349.264);
  --chart-1: oklch(0.871 0.048 349.264);
  --chart-2: oklch(0.877 0.064 327.685);
  --chart-3: oklch(0.87 0.041 21.533);
  --chart-4: oklch(0.903 0.05 327.533);
  --chart-5: oklch(0.87 0.051 349.347);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.084 0.017 347.492);
  --foreground: oklch(0.992 0.001 347.85);
  --muted: oklch(0.178 0.013 327.708);
  --muted-foreground: oklch(0.674 0.037 327.528);
  --popover: oklch(0.084 0.017 347.492);
  --popover-foreground: oklch(0.992 0.001 347.85);
  --card: oklch(0.084 0.017 347.492);
  --card-foreground: oklch(0.992 0.001 347.85);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.871 0.048 349.264);
  --primary-foreground: oklch(0.36 0.106 356.016);
  --secondary: oklch(0.877 0.064 327.685);
  --secondary-foreground: oklch(0.377 0.131 329.885);
  --accent: oklch(0.87 0.041 21.533);
  --accent-foreground: oklch(0.356 0.097 26.235);
  --destructive: oklch(0.647 0.184 41.479);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.871 0.048 349.264);
  --chart-1: oklch(0.871 0.048 349.264);
  --chart-2: oklch(0.877 0.064 327.685);
  --chart-3: oklch(0.87 0.041 21.533);
  --chart-4: oklch(0.903 0.05 327.533);
  --chart-5: oklch(0.87 0.051 349.347);
}