Pupa for shadcn/ui

Pupa is a shadcn/ui theme built around a near-white primary color (#fafcf8) with muted green accents (#bcd0a9). The light mode uses a neutral background (#fafdf6). Dark mode keeps the near-white primary (#fafcf8) on a neutral background (#030401).

Color palette

TokenLightDark
Background
#fafdf6mintcream
#030401black
Foreground
#050902black
#ffffffwhite
Card
#f7fdf2honeydew
#050703black
Card foreground
#020401black
#ffffffwhite
Popover
#f7fdf2honeydew
#050703black
Popover foreground
#020401black
#ffffffwhite
Primary
#fafcf8snow
#fafcf8snow
Primary foreground
#2d3e1edarkslategray
#2d3e1edarkslategray
Secondary
#d6decelightgrey
#292d24darkslategray
Secondary foreground
#3d4932darkslategray
#c2c9bbsilver
Muted
#dbe4d3gainsboro
#232c1bblack
Muted foreground
#666e5edimgray
#99a191darkseagreen
Accent
#bcd0a9silver
#38422fdarkslategray
Accent foreground
#232e19black
#d1d9c9lightgrey
Destructive
#c55311chocolate
#ec6c22chocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fafcf8snow
#fafcf8snow

Contrast

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

Light mode
Text on background19.58:1AAA
Text on card19.84:1AAA
Primary button11.15:1AAA
Secondary button6.91:1AA
Muted text4.04:1AA Large
Accent8.62:1AAA
Destructive4.54:1AA
Dark mode
Text on background20.59:1AAA
Text on card20.20:1AAA
Primary button11.15:1AAA
Secondary button8.25:1AAA
Muted text5.42:1AA
Accent7.32:1AAA
Destructive6.74:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.01 129.233);
  --foreground: oklch(0.128 0.023 127.728);
  --muted: oklch(0.906 0.024 129.406);
  --muted-foreground: oklch(0.527 0.027 129.681);
  --popover: oklch(0.986 0.015 129.287);
  --popover-foreground: oklch(0.102 0.019 127.728);
  --card: oklch(0.986 0.015 129.287);
  --card-foreground: oklch(0.102 0.019 127.728);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.988 0.005 129.179);
  --primary-foreground: oklch(0.339 0.055 131.148);
  --secondary: oklch(0.89 0.023 129.397);
  --secondary-foreground: oklch(0.387 0.041 130.33);
  --accent: oklch(0.832 0.057 129.871);
  --accent-foreground: oklch(0.285 0.039 130.742);
  --destructive: oklch(0.582 0.161 44.343);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.988 0.005 129.179);
  --chart-1: oklch(0.988 0.005 129.179);
  --chart-2: oklch(0.89 0.023 129.397);
  --chart-3: oklch(0.832 0.057 129.871);
  --chart-4: oklch(0.911 0.018 129.339);
  --chart-5: oklch(0.988 0.005 129.183);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.099 0.012 128.185);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.279 0.031 130.411);
  --muted-foreground: oklch(0.698 0.025 129.514);
  --popover: oklch(0.124 0.015 128.185);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.124 0.015 128.185);
  --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.988 0.005 129.179);
  --primary-foreground: oklch(0.339 0.055 131.148);
  --secondary: oklch(0.291 0.017 129.771);
  --secondary-foreground: oklch(0.825 0.02 129.384);
  --accent: oklch(0.363 0.034 130.187);
  --accent-foreground: oklch(0.874 0.023 129.405);
  --destructive: oklch(0.677 0.177 45.723);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.988 0.005 129.179);
  --chart-1: oklch(0.988 0.005 129.179);
  --chart-2: oklch(0.291 0.017 129.771);
  --chart-3: oklch(0.363 0.034 130.187);
  --chart-4: oklch(0.323 0.02 129.797);
  --chart-5: oklch(0.988 0.005 129.183);
}