Pomelo for shadcn/ui

Pomelo is a shadcn/ui theme built around a deep green primary color (#041109) with deep pink accents (#11040b). The light mode uses a neutral background (#f7fdf9). Dark mode keeps the deep green primary (#041109) on a green-tinted background (#040b07).

Color palette

TokenLightDark
Background
#f7fdf9mintcream
#040b07black
Foreground
#000000black
#f9fbfamintcream
Card
#f2fcf7mintcream
#060f09black
Card foreground
#000000black
#fcfdfcwhite
Popover
#f2fcf7mintcream
#060f09black
Popover foreground
#000000black
#fcfdfcwhite
Primary
#041109black
#041109black
Primary foreground
#2bb665mediumseagreen
#2bb665mediumseagreen
Secondary
#11040bblack
#11040bblack
Secondary foreground
#dc6aadpalevioletred
#dc6aadpalevioletred
Muted
#f4f0f3whitesmoke
#0f0b0dblack
Muted foreground
#5e555adimgray
#aaa1a6darkgray
Accent
#11040bblack
#11040bblack
Accent foreground
#dc6aadpalevioletred
#dc6aadpalevioletred
Destructive
#630303maroon
#f91a1ared
Destructive foreground
#fc9c9clightsalmon
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#041109black
#041109black

Contrast

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

Light mode
Text on background20.39:1AAA
Text on card20.09:1AAA
Primary button7.34:1AAA
Secondary button6.42:1AA
Muted text6.37:1AA
Accent6.42:1AA
Destructive6.70:1AA
Dark mode
Text on background19.12:1AAA
Text on card19.10:1AAA
Primary button7.34:1AAA
Secondary button6.42:1AA
Muted text7.79:1AAA
Accent6.42:1AA
Destructive4.03:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.009 160.804);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.959 0.006 341.151);
  --muted-foreground: oklch(0.459 0.014 341.719);
  --popover: oklch(0.983 0.013 160.696);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.983 0.013 160.696);
  --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.16 0.026 159.042);
  --primary-foreground: oklch(0.685 0.165 152.285);
  --secondary: oklch(0.135 0.031 343.352);
  --secondary-foreground: oklch(0.68 0.161 346.173);
  --accent: oklch(0.135 0.031 343.352);
  --accent-foreground: oklch(0.68 0.161 346.173);
  --destructive: oklch(0.317 0.127 28.746);
  --destructive-foreground: oklch(0.79 0.116 19.994);
  --ring: oklch(0.16 0.026 159.042);
  --chart-1: oklch(0.16 0.026 159.042);
  --chart-2: oklch(0.135 0.031 343.352);
  --chart-3: oklch(0.135 0.031 343.352);
  --chart-4: oklch(0.172 0.044 346.342);
  --chart-5: oklch(0.16 0.027 158.952);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.14 0.016 160.878);
  --foreground: oklch(0.986 0.003 160.93);
  --muted: oklch(0.154 0.009 342.332);
  --muted-foreground: oklch(0.719 0.013 341.419);
  --popover: oklch(0.155 0.018 159.582);
  --popover-foreground: oklch(0.993 0.002 160.972);
  --card: oklch(0.155 0.018 159.582);
  --card-foreground: oklch(0.993 0.002 160.972);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.16 0.026 159.042);
  --primary-foreground: oklch(0.685 0.165 152.285);
  --secondary: oklch(0.135 0.031 343.352);
  --secondary-foreground: oklch(0.68 0.161 346.173);
  --accent: oklch(0.135 0.031 343.352);
  --accent-foreground: oklch(0.68 0.161 346.173);
  --destructive: oklch(0.624 0.246 28.381);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.16 0.026 159.042);
  --chart-1: oklch(0.16 0.026 159.042);
  --chart-2: oklch(0.135 0.031 343.352);
  --chart-3: oklch(0.135 0.031 343.352);
  --chart-4: oklch(0.172 0.044 346.342);
  --chart-5: oklch(0.16 0.027 158.952);
}