Gem is a shadcn/ui theme built around a light cyan primary color (#e1f7f9) with light red accents (#f9e3e1). The light mode uses a neutral background (#fbfdfe). Dark mode keeps the light cyan primary (#e1f7f9) on a neutral background (#010404).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfdfewhite | #010404black |
| Foreground | #020708black | #fbfdfdwhite |
| Card | #f8fcfcmintcream | #020808black |
| Card foreground | #010404black | #ffffffwhite |
| Popover | #fbfdfewhite | #010404black |
| Popover foreground | #020708black | #fbfdfdwhite |
| Primary | #e1f7f9lightcyan | #e1f7f9lightcyan |
| Primary foreground | #0b3437darkslategray | #0b3437darkslategray |
| Secondary | #f9e3e1mistyrose | #f9e3e1mistyrose |
| Secondary foreground | #8d251cbrown | #8d251cbrown |
| Muted | #efebeblinen | #141010black |
| Muted foreground | #604f4ddimgray | #b2a09fdarkgray |
| Accent | #f9e3e1mistyrose | #f9e3e1mistyrose |
| Accent foreground | #8d251cbrown | #8d251cbrown |
| Destructive | #642507maroon | #ee6120chocolate |
| Destructive foreground | #f8bfa5lightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e1f7f9lightcyan | #e1f7f9lightcyan |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.90:1 | AAA |
| Text on card | 19.86:1 | AAA |
| Primary button | 12.10:1 | AAA |
| Secondary button | 7.09:1 | AAA |
| Muted text | 6.53:1 | AA |
| Accent | 7.09:1 | AAA |
| Destructive | 7.21:1 | AAA |
| Text on background | 20.17:1 | AAA |
| Text on card | 20.21:1 | AAA |
| Primary button | 12.10:1 | AAA |
| Secondary button | 7.09:1 | AAA |
| Muted text | 7.57:1 | AAA |
| Accent | 7.09:1 | AAA |
| Destructive | 6.38:1 | AA |
Paste this into your globals.css to use Gem in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.002 203.562);
--foreground: oklch(0.123 0.013 201.143);
--muted: oklch(0.944 0.004 23.625);
--muted-foreground: oklch(0.444 0.024 24.181);
--popover: oklch(0.994 0.002 203.562);
--popover-foreground: oklch(0.123 0.013 201.143);
--card: oklch(0.987 0.004 203.542);
--card-foreground: oklch(0.098 0.01 201.143);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.961 0.023 203.376);
--primary-foreground: oklch(0.298 0.044 203.846);
--secondary: oklch(0.934 0.024 23.851);
--secondary-foreground: oklch(0.429 0.14 29.315);
--accent: oklch(0.934 0.024 23.851);
--accent-foreground: oklch(0.429 0.14 29.315);
--destructive: oklch(0.352 0.099 41.752);
--destructive-foreground: oklch(0.85 0.075 46.04);
--ring: oklch(0.961 0.023 203.376);
--chart-1: oklch(0.961 0.023 203.376);
--chart-2: oklch(0.934 0.024 23.851);
--chart-3: oklch(0.934 0.024 23.851);
--chart-4: oklch(0.962 0.014 23.723);
--chart-5: oklch(0.962 0.024 203.368);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.098 0.01 201.075);
--foreground: oklch(0.994 0.002 203.563);
--muted: oklch(0.178 0.007 23.981);
--muted-foreground: oklch(0.722 0.021 23.881);
--popover: oklch(0.098 0.01 201.075);
--popover-foreground: oklch(0.994 0.002 203.563);
--card: oklch(0.123 0.013 201.075);
--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.961 0.023 203.376);
--primary-foreground: oklch(0.298 0.044 203.846);
--secondary: oklch(0.934 0.024 23.851);
--secondary-foreground: oklch(0.429 0.14 29.315);
--accent: oklch(0.934 0.024 23.851);
--accent-foreground: oklch(0.429 0.14 29.315);
--destructive: oklch(0.665 0.188 41.526);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.961 0.023 203.376);
--chart-1: oklch(0.961 0.023 203.376);
--chart-2: oklch(0.934 0.024 23.851);
--chart-3: oklch(0.934 0.024 23.851);
--chart-4: oklch(0.962 0.014 23.723);
--chart-5: oklch(0.962 0.024 203.368);
}