Pomelo for shadcn/ui

Pomelo is a shadcn/ui theme built around a near-black primary color (#1c1c1c) with near-black accents (#1c1c1c). The light mode uses a neutral background (#fdf6f6). Dark mode keeps the near-black primary (#1c1c1c) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdf6f6snow
#000000black
Foreground
#150404black
#fdfcfcsnow
Card
#fcf2f2lavenderblush
#030303black
Card foreground
#110303black
#ffffffwhite
Popover
#fdf6f6snow
#000000black
Popover foreground
#150404black
#fdfcfcsnow
Primary
#1c1c1cblack
#1c1c1cblack
Primary foreground
#b5b5b5silver
#b5b5b5silver
Secondary
#1c1c1cblack
#1c1c1cblack
Secondary foreground
#b5b5b5silver
#b5b5b5silver
Muted
#f3f1f1whitesmoke
#0e0c0cblack
Muted foreground
#4b3f3fdarkslategray
#c0b4b4silver
Accent
#1c1c1cblack
#1c1c1cblack
Accent foreground
#b5b5b5silver
#b5b5b5silver
Destructive
#be3609firebrick
#f55824tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#1c1c1cblack
#1c1c1cblack

Contrast

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

Light mode
Text on background18.80:1AAA
Text on card18.46:1AAA
Primary button8.30:1AAA
Secondary button8.30:1AAA
Muted text8.97:1AAA
Accent8.30:1AAA
Destructive5.63:1AA
Dark mode
Text on background20.50:1AAA
Text on card20.67:1AAA
Primary button8.30:1AAA
Secondary button8.30:1AAA
Muted text9.70:1AAA
Accent8.30:1AAA
Destructive6.29:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.98 0.007 17.282);
  --foreground: oklch(0.142 0.035 22.536);
  --muted: oklch(0.96 0.002 17.2);
  --muted-foreground: oklch(0.379 0.017 17.939);
  --popover: oklch(0.98 0.007 17.282);
  --popover-foreground: oklch(0.142 0.035 22.536);
  --card: oklch(0.97 0.011 17.347);
  --card-foreground: oklch(0.129 0.03 22.237);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.227 0 164.055);
  --primary-foreground: oklch(0.773 0 180);
  --secondary: oklch(0.227 0 164.055);
  --secondary-foreground: oklch(0.773 0 180);
  --accent: oklch(0.227 0 164.055);
  --accent-foreground: oklch(0.773 0 180);
  --destructive: oklch(0.535 0.179 35.833);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.227 0 164.055);
  --chart-1: oklch(0.227 0 164.055);
  --chart-2: oklch(0.227 0 164.055);
  --chart-3: oklch(0.227 0 164.055);
  --chart-4: oklch(0.259 0 167.471);
  --chart-5: oklch(0.225 0.003 17.351);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.992 0.001 17.176);
  --muted: oklch(0.155 0.004 17.585);
  --muted-foreground: oklch(0.78 0.014 17.461);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.992 0.001 17.176);
  --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.227 0 164.055);
  --primary-foreground: oklch(0.773 0 180);
  --secondary: oklch(0.227 0 164.055);
  --secondary-foreground: oklch(0.773 0 180);
  --accent: oklch(0.227 0 164.055);
  --accent-foreground: oklch(0.773 0 180);
  --destructive: oklch(0.664 0.202 37.336);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.227 0 164.055);
  --chart-1: oklch(0.227 0 164.055);
  --chart-2: oklch(0.227 0 164.055);
  --chart-3: oklch(0.227 0 164.055);
  --chart-4: oklch(0.259 0 167.471);
  --chart-5: oklch(0.225 0.003 17.351);
}