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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.80:1 | AAA |
| Text on card | 18.46:1 | AAA |
| Primary button | 8.30:1 | AAA |
| Secondary button | 8.30:1 | AAA |
| Muted text | 8.97:1 | AAA |
| Accent | 8.30:1 | AAA |
| Destructive | 5.63:1 | AA |
| Text on background | 20.50:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 8.30:1 | AAA |
| Secondary button | 8.30:1 | AAA |
| Muted text | 9.70:1 | AAA |
| Accent | 8.30:1 | AAA |
| Destructive | 6.29:1 | AA |
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);
}