Pinstripe for shadcn/ui

Pinstripe is a shadcn/ui theme built around a light pink primary color (#f5d6e8) with muted light pink accents (#d8cad2). The light mode uses a neutral background (#fdf7fa). Dark mode keeps the light pink primary (#f5d6e8) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdf7fasnow
#000000black
Foreground
#0d0209black
#f9f5f8whitesmoke
Card
#fbf3f8lavenderblush
#030303black
Card foreground
#090206black
#fbf9fasnow
Popover
#fdf7fasnow
#000000black
Popover foreground
#0d0209black
#f9f5f8whitesmoke
Primary
#f5d6e8mistyrose
#f5d6e8mistyrose
Primary foreground
#7a1f54purple
#7a1f54purple
Secondary
#e8e3e6gainsboro
#342d31darkslategray
Secondary foreground
#54454edarkslategray
#cdc6calightgrey
Muted
#e0d1dagainsboro
#2e1f28darkslategray
Muted foreground
#5c5c5cdimgray
#a3a3a3darkgray
Accent
#d8cad2lightgrey
#513e49darkslategray
Accent foreground
#412f3adarkslategray
#e4dce1gainsboro
Destructive
#d01f0bfirebrick
#f54b38tomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f5d6e8mistyrose
#f5d6e8mistyrose

Contrast

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

Light mode
Text on background19.29:1AAA
Text on card18.88:1AAA
Primary button7.28:1AAA
Secondary button7.08:1AAA
Muted text4.56:1AA
Accent7.85:1AAA
Destructive5.39:1AA
Dark mode
Text on background19.44:1AAA
Text on card19.72:1AAA
Primary button7.28:1AAA
Secondary button7.99:1AAA
Muted text6.22:1AA
Accent7.31:1AAA
Destructive3.53:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.007 341.184);
  --foreground: oklch(0.12 0.032 341.716);
  --muted: oklch(0.876 0.021 341.555);
  --muted-foreground: oklch(0.474 0 198.435);
  --popover: oklch(0.982 0.007 341.184);
  --popover-foreground: oklch(0.12 0.032 341.716);
  --card: oklch(0.973 0.011 341.272);
  --card-foreground: oklch(0.104 0.027 341.119);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.907 0.041 342.038);
  --primary-foreground: oklch(0.405 0.137 349.189);
  --secondary: oklch(0.921 0.007 341.184);
  --secondary-foreground: oklch(0.409 0.025 342.39);
  --accent: oklch(0.853 0.02 341.551);
  --accent-foreground: oklch(0.33 0.031 343.091);
  --destructive: oklch(0.55 0.211 30.448);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.907 0.041 342.038);
  --chart-1: oklch(0.907 0.041 342.038);
  --chart-2: oklch(0.921 0.007 341.184);
  --chart-3: oklch(0.853 0.02 341.551);
  --chart-4: oklch(0.945 0.005 341.129);
  --chart-5: oklch(0.906 0.043 342.089);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.975 0.005 341.133);
  --muted: oklch(0.26 0.028 343.386);
  --muted-foreground: oklch(0.716 0 165.964);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.975 0.005 341.133);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.983 0.003 341.092);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.907 0.041 342.038);
  --primary-foreground: oklch(0.405 0.137 349.189);
  --secondary: oklch(0.306 0.012 341.899);
  --secondary-foreground: oklch(0.833 0.01 341.298);
  --accent: oklch(0.388 0.031 342.78);
  --accent-foreground: oklch(0.903 0.011 341.286);
  --destructive: oklch(0.652 0.209 29.995);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.907 0.041 342.038);
  --chart-1: oklch(0.907 0.041 342.038);
  --chart-2: oklch(0.306 0.012 341.899);
  --chart-3: oklch(0.388 0.031 342.78);
  --chart-4: oklch(0.336 0.014 341.927);
  --chart-5: oklch(0.906 0.043 342.089);
}