Puny for shadcn/ui

Puny is a shadcn/ui theme built around a vivid teal primary color (#85f9c1) with vivid orange accents (#f9c185). The light mode uses a neutral background (#fbfdfc). Dark mode keeps the vivid teal primary (#85f9c1) on a neutral background (#020303).

Color palette

TokenLightDark
Background
#fbfdfcwhite
#020303black
Foreground
#05100ablack
#ffffffwhite
Card
#fbfdfcwhite
#020303black
Card foreground
#05100ablack
#ffffffwhite
Popover
#fbfdfcwhite
#020303black
Popover foreground
#05100ablack
#ffffffwhite
Primary
#85f9c1aquamarine
#85f9c1aquamarine
Primary foreground
#034927darkgreen
#034927darkgreen
Secondary
#c185f9violet
#c185f9violet
Secondary foreground
#270349midnightblue
#270349midnightblue
Muted
#f0edf3whitesmoke
#0f0c12black
Muted foreground
#4f4757darkslategray
#b0a8b8darkgray
Accent
#f9c185burlywood
#f9c185burlywood
Accent foreground
#492703maroon
#492703maroon
Destructive
#c03c0cfirebrick
#f36f3ftomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#85f9c1aquamarine
#85f9c1aquamarine

Contrast

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

Light mode
Text on background19.02:1AAA
Text on card19.02:1AAA
Primary button8.23:1AAA
Secondary button6.70:1AA
Muted text7.61:1AAA
Accent8.26:1AAA
Destructive5.39:1AA
Dark mode
Text on background20.63:1AAA
Text on card20.63:1AAA
Primary button8.23:1AAA
Secondary button6.70:1AA
Muted text8.43:1AAA
Accent8.26:1AAA
Destructive7.15:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.002 165.952);
  --foreground: oklch(0.158 0.02 164.026);
  --muted: oklch(0.949 0.009 309.028);
  --muted-foreground: oklch(0.413 0.028 308.416);
  --popover: oklch(0.994 0.002 165.952);
  --popover-foreground: oklch(0.158 0.02 164.026);
  --card: oklch(0.994 0.002 165.952);
  --card-foreground: oklch(0.158 0.02 164.026);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.9 0.133 161.04);
  --primary-foreground: oklch(0.357 0.086 155.023);
  --secondary: oklch(0.723 0.172 306.426);
  --secondary-foreground: oklch(0.23 0.115 300.503);
  --accent: oklch(0.849 0.1 67.675);
  --accent-foreground: oklch(0.312 0.069 61.541);
  --destructive: oklch(0.544 0.176 37.048);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.9 0.133 161.04);
  --chart-1: oklch(0.9 0.133 161.04);
  --chart-2: oklch(0.723 0.172 306.426);
  --chart-3: oklch(0.849 0.1 67.675);
  --chart-4: oklch(0.755 0.151 306.911);
  --chart-5: oklch(0.903 0.137 160.878);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.095 0.007 166.12);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.162 0.014 308.244);
  --muted-foreground: oklch(0.743 0.024 308.785);
  --popover: oklch(0.095 0.007 166.12);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.095 0.007 166.12);
  --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.9 0.133 161.04);
  --primary-foreground: oklch(0.357 0.086 155.023);
  --secondary: oklch(0.723 0.172 306.426);
  --secondary-foreground: oklch(0.23 0.115 300.503);
  --accent: oklch(0.849 0.1 67.675);
  --accent-foreground: oklch(0.312 0.069 61.541);
  --destructive: oklch(0.693 0.174 39.732);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.9 0.133 161.04);
  --chart-1: oklch(0.9 0.133 161.04);
  --chart-2: oklch(0.723 0.172 306.426);
  --chart-3: oklch(0.849 0.1 67.675);
  --chart-4: oklch(0.755 0.151 306.911);
  --chart-5: oklch(0.903 0.137 160.878);
}