Glucose is a shadcn/ui theme built around a light green primary color (#b6e7c8) with light orange accents (#e7c8b6). The light mode uses a neutral background (#ffffff). Dark mode keeps the light green primary (#b6e7c8) on a neutral background (#020804).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #020804black |
| Foreground | #000000black | #f5f9f7whitesmoke |
| Card | #fcfcfcsnow | #030c06black |
| Card foreground | #000000black | #f9fbfamintcream |
| Popover | #fcfcfcsnow | #030c06black |
| Popover foreground | #000000black | #f9fbfamintcream |
| Primary | #b6e7c8powderblue | #b6e7c8powderblue |
| Primary foreground | #1b502edarkslategray | #1b502edarkslategray |
| Secondary | #c8b6e7thistle | #c8b6e7thistle |
| Secondary foreground | #2e1b50midnightblue | #2e1b50midnightblue |
| Muted | #ddd5ecgainsboro | #1b132ablack |
| Muted foreground | #3f3b44darkslategray | #bebbc4silver |
| Accent | #e7c8b6wheat | #e7c8b6wheat |
| Accent foreground | #502e1bsaddlebrown | #502e1bsaddlebrown |
| Destructive | #631903maroon | #f9521forangered |
| Destructive foreground | #fcb29cburlywood | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #b6e7c8powderblue | #b6e7c8powderblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 6.82:1 | AA |
| Secondary button | 8.15:1 | AAA |
| Muted text | 7.70:1 | AAA |
| Accent | 7.63:1 | AAA |
| Destructive | 7.14:1 | AAA |
| Text on background | 19.01:1 | AAA |
| Text on card | 19.05:1 | AAA |
| Primary button | 6.82:1 | AA |
| Secondary button | 8.15:1 | AAA |
| Muted text | 9.44:1 | AAA |
| Accent | 7.63:1 | AAA |
| Destructive | 3.35:1 | AA Large |
Paste this into your globals.css to use Glucose in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.886 0.033 302.364);
--muted-foreground: oklch(0.36 0.016 302.261);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--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.885 0.065 157.003);
--primary-foreground: oklch(0.387 0.081 152.632);
--secondary: oklch(0.808 0.07 301.601);
--secondary-foreground: oklch(0.279 0.094 296.74);
--accent: oklch(0.854 0.042 51.944);
--accent-foreground: oklch(0.341 0.059 49.881);
--destructive: oklch(0.336 0.111 36.308);
--destructive-foreground: oklch(0.829 0.093 37.634);
--ring: oklch(0.885 0.065 157.003);
--chart-1: oklch(0.885 0.065 157.003);
--chart-2: oklch(0.808 0.07 301.601);
--chart-3: oklch(0.854 0.042 51.944);
--chart-4: oklch(0.839 0.058 301.864);
--chart-5: oklch(0.887 0.069 156.899);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.124 0.019 158.479);
--foreground: oklch(0.98 0.006 158.597);
--muted: oklch(0.21 0.046 299.352);
--muted-foreground: oklch(0.797 0.013 302.682);
--popover: oklch(0.142 0.022 158.223);
--popover-foreground: oklch(0.986 0.004 158.638);
--card: oklch(0.142 0.022 158.223);
--card-foreground: oklch(0.986 0.004 158.638);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.885 0.065 157.003);
--primary-foreground: oklch(0.387 0.081 152.632);
--secondary: oklch(0.808 0.07 301.601);
--secondary-foreground: oklch(0.279 0.094 296.74);
--accent: oklch(0.854 0.042 51.944);
--accent-foreground: oklch(0.341 0.059 49.881);
--destructive: oklch(0.665 0.212 36.077);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.885 0.065 157.003);
--chart-1: oklch(0.885 0.065 157.003);
--chart-2: oklch(0.808 0.07 301.601);
--chart-3: oklch(0.854 0.042 51.944);
--chart-4: oklch(0.839 0.058 301.864);
--chart-5: oklch(0.887 0.069 156.899);
}