Puny for shadcn/ui

Puny is a shadcn/ui theme built around a vivid green primary color (#d2ff70) with muted light green accents (#e6e8e3). The light mode uses a neutral background (#fdfdfc). Dark mode keeps the vivid green primary (#d2ff70) on a neutral background (#060802).

Color palette

TokenLightDark
Background
#fdfdfcwhite
#060802black
Foreground
#090c03black
#ffffffwhite
Card
#fafcf8snow
#090c03black
Card foreground
#060802black
#ffffffwhite
Popover
#fdfdfcwhite
#060802black
Popover foreground
#090c03black
#ffffffwhite
Primary
#d2ff70khaki
#d2ff70khaki
Primary foreground
#2a3d00darkgreen
#2a3d00darkgreen
Secondary
#e6e8e3gainsboro
#2d2f28darkslategray
Secondary foreground
#4f5346darkslategray
#c6c9c0silver
Muted
#e9eae6linen
#181915black
Muted foreground
#484946darkslategray
#b8b9b6silver
Accent
#e6e8e3gainsboro
#2d2f28darkslategray
Accent foreground
#4f5346darkslategray
#c6c9c0silver
Destructive
#7d0503maroon
#f50905red
Destructive foreground
#fdb5b4lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d2ff70khaki
#d2ff70khaki

Contrast

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

Light mode
Text on background19.38:1AAA
Text on card19.46:1AAA
Primary button10.34:1AAA
Secondary button6.39:1AA
Muted text7.49:1AAA
Accent6.39:1AA
Destructive6.57:1AA
Dark mode
Text on background20.12:1AAA
Text on card19.71:1AAA
Primary button10.34:1AAA
Secondary button8.10:1AAA
Muted text8.98:1AAA
Accent8.10:1AAA
Destructive4.26: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.994 0.002 120.804);
  --foreground: oklch(0.149 0.024 120.938);
  --muted: oklch(0.935 0.005 120.857);
  --muted-foreground: oklch(0.403 0.005 120.966);
  --popover: oklch(0.994 0.002 120.804);
  --popover-foreground: oklch(0.149 0.024 120.938);
  --card: oklch(0.988 0.004 120.842);
  --card-foreground: oklch(0.13 0.021 120.512);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.94 0.176 124.43);
  --primary-foreground: oklch(0.332 0.085 126.955);
  --secondary: oklch(0.928 0.006 120.88);
  --secondary-foreground: oklch(0.435 0.023 121.636);
  --accent: oklch(0.928 0.006 120.88);
  --accent-foreground: oklch(0.435 0.023 121.636);
  --destructive: oklch(0.373 0.149 29.235);
  --destructive-foreground: oklch(0.841 0.084 20.093);
  --ring: oklch(0.94 0.176 124.43);
  --chart-1: oklch(0.94 0.176 124.43);
  --chart-2: oklch(0.928 0.006 120.88);
  --chart-3: oklch(0.928 0.006 120.88);
  --chart-4: oklch(0.95 0.004 120.844);
  --chart-5: oklch(0.945 0.181 124.529);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.128 0.018 120.536);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.21 0.007 121.344);
  --muted-foreground: oklch(0.784 0.004 120.854);
  --popover: oklch(0.128 0.018 120.536);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.147 0.021 120.827);
  --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.94 0.176 124.43);
  --primary-foreground: oklch(0.332 0.085 126.955);
  --secondary: oklch(0.3 0.013 121.464);
  --secondary-foreground: oklch(0.831 0.013 121.031);
  --accent: oklch(0.3 0.013 121.464);
  --accent-foreground: oklch(0.831 0.013 121.031);
  --destructive: oklch(0.611 0.248 29.232);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.94 0.176 124.43);
  --chart-1: oklch(0.94 0.176 124.43);
  --chart-2: oklch(0.3 0.013 121.464);
  --chart-3: oklch(0.3 0.013 121.464);
  --chart-4: oklch(0.332 0.014 121.49);
  --chart-5: oklch(0.945 0.181 124.529);
}