Puny for shadcn/ui

Puny is a shadcn/ui theme built around a pink primary color (#c0267d) with green accents (#26c068). The light mode uses a neutral background (#fcf8fa). Dark mode keeps the pink primary (#c0267d) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fcf8fasnow
#000000black
Foreground
#000000black
#fdfcfdwhite
Card
#faf5f8whitesmoke
#030303black
Card foreground
#000000black
#ffffffwhite
Popover
#faf5f8whitesmoke
#030303black
Popover foreground
#000000black
#ffffffwhite
Primary
#c0267dmediumvioletred
#c0267dmediumvioletred
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#26c068mediumseagreen
#26c068mediumseagreen
Secondary foreground
#04150cblack
#04150cblack
Muted
#e2f3eahoneydew
#0c1d13black
Muted foreground
#4b4e4cdarkslategray
#b1b4b2darkgray
Accent
#26c068mediumseagreen
#26c068mediumseagreen
Accent foreground
#04150cblack
#04150cblack
Destructive
#9a1504darkred
#f93d24orangered
Destructive foreground
#fed7d2bisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c0267dmediumvioletred
#c0267dmediumvioletred

Contrast

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

Light mode
Text on background19.94:1AAA
Text on card19.43:1AAA
Primary button5.52:1AA
Secondary button7.86:1AAA
Muted text7.30:1AAA
Accent7.86:1AAA
Destructive6.37:1AA
Dark mode
Text on background20.51:1AAA
Text on card20.67:1AAA
Primary button5.52:1AA
Secondary button7.86:1AAA
Muted text8.38:1AAA
Accent7.86:1AAA
Destructive3.66:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.005 341.924);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.949 0.021 161.26);
  --muted-foreground: oklch(0.421 0.005 161.526);
  --popover: oklch(0.974 0.007 341.983);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.974 0.007 341.983);
  --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.546 0.202 351.768);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.711 0.175 152.283);
  --secondary-foreground: oklch(0.178 0.032 157.916);
  --accent: oklch(0.711 0.175 152.283);
  --accent-foreground: oklch(0.178 0.032 157.916);
  --destructive: oklch(0.441 0.168 30.996);
  --destructive-foreground: oklch(0.911 0.044 26.834);
  --ring: oklch(0.546 0.202 351.768);
  --chart-1: oklch(0.546 0.202 351.768);
  --chart-2: oklch(0.711 0.175 152.283);
  --chart-3: oklch(0.711 0.175 152.283);
  --chart-4: oklch(0.746 0.184 152.226);
  --chart-5: oklch(0.55 0.207 352.246);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.992 0.002 341.849);
  --muted: oklch(0.211 0.029 157.843);
  --muted-foreground: oklch(0.767 0.004 161.675);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.546 0.202 351.768);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.711 0.175 152.283);
  --secondary-foreground: oklch(0.178 0.032 157.916);
  --accent: oklch(0.711 0.175 152.283);
  --accent-foreground: oklch(0.178 0.032 157.916);
  --destructive: oklch(0.645 0.227 31.036);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.546 0.202 351.768);
  --chart-1: oklch(0.546 0.202 351.768);
  --chart-2: oklch(0.711 0.175 152.283);
  --chart-3: oklch(0.711 0.175 152.283);
  --chart-4: oklch(0.746 0.184 152.226);
  --chart-5: oklch(0.55 0.207 352.246);
}