Glistening is a shadcn/ui theme built around a near-black primary color (#1a1a1a) with muted light red accents (#e3d9d9). The light mode uses a neutral background (#fdf7f7). Dark mode keeps the near-black primary (#1a1a1a) on a red-tinted background (#0e0707).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf7f7snow | #0e0707black |
| Foreground | #040101black | #ffffffwhite |
| Card | #fbf3f3lavenderblush | #110808black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fbf3f3lavenderblush | #110808black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #1a1a1ablack | #1a1a1ablack |
| Primary foreground | #b3b3b3darkgray | #b3b3b3darkgray |
| Secondary | #e3d9d9gainsboro | #231f1fblack |
| Secondary foreground | #503a3adarkslategray | #bfb5b5silver |
| Muted | #efdcdcmistyrose | #231010black |
| Muted foreground | #413e3edarkslategray | #c1bebesilver |
| Accent | #e3d9d9gainsboro | #231f1fblack |
| Accent foreground | #503a3adarkslategray | #bfb5b5silver |
| Destructive | #c91913firebrick | #eb332dcrimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #1a1a1ablack | #1a1a1ablack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.65:1 | AAA |
| Text on card | 19.28:1 | AAA |
| Primary button | 8.34:1 | AAA |
| Secondary button | 7.54:1 | AAA |
| Muted text | 8.03:1 | AAA |
| Accent | 7.54:1 | AAA |
| Destructive | 5.80:1 | AA |
| Text on background | 20.00:1 | AAA |
| Text on card | 19.74:1 | AAA |
| Primary button | 8.34:1 | AAA |
| Secondary button | 8.15:1 | AAA |
| Muted text | 9.86:1 | AAA |
| Accent | 8.15:1 | AAA |
| Destructive | 4.14:1 | AA Large |
Paste this into your globals.css to use Glistening in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.006 17.252);
--foreground: oklch(0.081 0.017 21.564);
--muted: oklch(0.91 0.021 17.542);
--muted-foreground: oklch(0.368 0.003 17.315);
--popover: oklch(0.972 0.008 17.301);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.972 0.008 17.301);
--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.216 0 180);
--primary-foreground: oklch(0.765 0 172.405);
--secondary: oklch(0.892 0.012 17.375);
--secondary-foreground: oklch(0.372 0.031 18.666);
--accent: oklch(0.892 0.012 17.375);
--accent-foreground: oklch(0.372 0.031 18.666);
--destructive: oklch(0.533 0.207 28.954);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.216 0 180);
--chart-1: oklch(0.216 0 180);
--chart-2: oklch(0.892 0.012 17.375);
--chart-3: oklch(0.892 0.012 17.375);
--chart-4: oklch(0.917 0.009 17.319);
--chart-5: oklch(0.214 0.002 17.344);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.137 0.014 19.072);
--foreground: oklch(1 0 180);
--muted: oklch(0.201 0.032 20.266);
--muted-foreground: oklch(0.803 0.003 17.217);
--popover: oklch(0.149 0.017 19.244);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.149 0.017 19.244);
--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.216 0 180);
--primary-foreground: oklch(0.765 0 172.405);
--secondary: oklch(0.244 0.007 17.653);
--secondary-foreground: oklch(0.782 0.011 17.391);
--accent: oklch(0.244 0.007 17.653);
--accent-foreground: oklch(0.782 0.011 17.391);
--destructive: oklch(0.614 0.22 27.979);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.216 0 180);
--chart-1: oklch(0.216 0 180);
--chart-2: oklch(0.244 0.007 17.653);
--chart-3: oklch(0.244 0.007 17.653);
--chart-4: oklch(0.275 0.009 17.684);
--chart-5: oklch(0.214 0.002 17.344);
}