Glue is a shadcn/ui theme built around a vivid indigo primary color (#432ae5) with muted light indigo accents (#c9c7dc). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid indigo primary (#432ae5) on an indigo-tinted background (#08070e).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #08070eblack |
| Foreground | #010104black | #f6f6f9whitesmoke |
| Card | #ffffffwhite | #08070eblack |
| Card foreground | #010104black | #f6f6f9whitesmoke |
| Popover | #ffffffwhite | #08070eblack |
| Popover foreground | #010104black | #f6f6f9whitesmoke |
| Primary | #432ae5royalblue | #432ae5royalblue |
| Primary foreground | #e3dffblavender | #e3dffblavender |
| Secondary | #e0dee7gainsboro | #29292edarkslategray |
| Secondary foreground | #413e56darkslategray | #c2c1c8silver |
| Muted | #f0eff5whitesmoke | #0b0a10black |
| Muted foreground | #413e51darkslategray | #b1aec1silver |
| Accent | #c9c7dcthistle | #3d3a50darkslategray |
| Accent foreground | #2f2b45darkslategray | #dad9e3gainsboro |
| Destructive | #842c06saddlebrown | #f66628tomato |
| Destructive foreground | #fcd2bfpeachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #432ae5royalblue | #432ae5royalblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.84:1 | AAA |
| Text on card | 20.84:1 | AAA |
| Primary button | 6.02:1 | AA |
| Secondary button | 7.72:1 | AAA |
| Muted text | 9.06:1 | AAA |
| Accent | 8.14:1 | AAA |
| Destructive | 6.45:1 | AA |
| Text on background | 18.62:1 | AAA |
| Text on card | 18.62:1 | AAA |
| Primary button | 6.02:1 | AA |
| Secondary button | 8.11:1 | AAA |
| Muted text | 9.10:1 | AAA |
| Accent | 7.84:1 | AAA |
| Destructive | 6.83:1 | AA |
Paste this into your globals.css to use Glue in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.07 0.023 289.089);
--muted: oklch(0.956 0.008 292.396);
--muted-foreground: oklch(0.374 0.032 290.9);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.07 0.023 289.089);
--card: oklch(1 0 180);
--card-foreground: oklch(0.07 0.023 289.089);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.467 0.257 275.78);
--primary-foreground: oklch(0.916 0.038 291.756);
--secondary: oklch(0.906 0.012 292.29);
--secondary-foreground: oklch(0.377 0.04 290.445);
--accent: oklch(0.837 0.029 291.878);
--accent-foreground: oklch(0.306 0.046 289.493);
--destructive: oklch(0.42 0.129 39.298);
--destructive-foreground: oklch(0.894 0.054 44.471);
--ring: oklch(0.467 0.257 275.78);
--chart-1: oklch(0.467 0.257 275.78);
--chart-2: oklch(0.906 0.012 292.29);
--chart-3: oklch(0.837 0.029 291.878);
--chart-4: oklch(0.932 0.009 292.366);
--chart-5: oklch(0.466 0.264 274.883);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.132 0.016 291.057);
--foreground: oklch(0.974 0.004 292.465);
--muted: oklch(0.148 0.012 290.95);
--muted-foreground: oklch(0.76 0.026 291.883);
--popover: oklch(0.132 0.016 291.057);
--popover-foreground: oklch(0.974 0.004 292.465);
--card: oklch(0.132 0.016 291.057);
--card-foreground: oklch(0.974 0.004 292.465);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.467 0.257 275.78);
--primary-foreground: oklch(0.916 0.038 291.756);
--secondary: oklch(0.283 0.009 291.907);
--secondary-foreground: oklch(0.813 0.01 292.316);
--accent: oklch(0.36 0.038 290.473);
--accent-foreground: oklch(0.888 0.014 292.236);
--destructive: oklch(0.683 0.191 40.835);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.467 0.257 275.78);
--chart-1: oklch(0.467 0.257 275.78);
--chart-2: oklch(0.283 0.009 291.907);
--chart-3: oklch(0.36 0.038 290.473);
--chart-4: oklch(0.312 0.011 291.881);
--chart-5: oklch(0.466 0.264 274.883);
}