Gem is a shadcn/ui theme built around a purple primary color (#7d266c) with green accents (#267d38). The light mode uses a neutral background (#fcf8fb). Dark mode keeps the purple primary (#7d266c) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf8fbsnow | #000000black |
| Foreground | #000000black | #ffffffwhite |
| Card | #fbf4f9lavenderblush | #030303black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fcf8fbsnow | #000000black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #7d266cpurple | #7d266cpurple |
| Primary foreground | #f5e0f1lavender | #f5e0f1lavender |
| Secondary | #267d38forestgreen | #267d38forestgreen |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #dfe7e0gainsboro | #18201ablack |
| Muted foreground | #575757dimgray | #a8a8a8darkgray |
| Accent | #267d38forestgreen | #267d38forestgreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #941605darkred | #f6290eorangered |
| Destructive foreground | #fdd3cepink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #7d266cpurple | #7d266cpurple |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.93:1 | AAA |
| Text on card | 19.41:1 | AAA |
| Primary button | 7.10:1 | AAA |
| Secondary button | 5.16:1 | AA |
| Muted text | 5.73:1 | AA |
| Accent | 5.16:1 | AA |
| Destructive | 6.49:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 7.10:1 | AAA |
| Secondary button | 5.16:1 | AA |
| Muted text | 6.99:1 | AA |
| Accent | 5.16:1 | AA |
| Destructive | 3.99:1 | AA Large |
Paste this into your globals.css to use Gem in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.983 0.006 332.102);
--foreground: oklch(0 0 0);
--muted: oklch(0.92 0.013 151.797);
--muted-foreground: oklch(0.456 0 180);
--popover: oklch(0.983 0.006 332.102);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.974 0.01 332.152);
--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.428 0.144 336.763);
--primary-foreground: oklch(0.929 0.033 332.52);
--secondary: oklch(0.521 0.132 146.907);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.521 0.132 146.907);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.428 0.162 31.008);
--destructive-foreground: oklch(0.902 0.048 26.884);
--ring: oklch(0.428 0.144 336.763);
--chart-1: oklch(0.428 0.144 336.763);
--chart-2: oklch(0.521 0.132 146.907);
--chart-3: oklch(0.521 0.132 146.907);
--chart-4: oklch(0.556 0.142 146.852);
--chart-5: oklch(0.43 0.15 336.99);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.234 0.018 150.807);
--muted-foreground: oklch(0.733 0 180);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--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.428 0.144 336.763);
--primary-foreground: oklch(0.929 0.033 332.52);
--secondary: oklch(0.521 0.132 146.907);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.521 0.132 146.907);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.625 0.238 30.825);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.428 0.144 336.763);
--chart-1: oklch(0.428 0.144 336.763);
--chart-2: oklch(0.521 0.132 146.907);
--chart-3: oklch(0.521 0.132 146.907);
--chart-4: oklch(0.556 0.142 146.852);
--chart-5: oklch(0.43 0.15 336.99);
}