Glistening is a shadcn/ui theme built around a neutral gray primary color (#9fa39e) with neutral gray accents (#9ea3a0). The light mode uses a neutral background (#f8fdf7). Dark mode keeps the neutral gray primary (#9fa39e) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fdf7mintcream | #000000black |
| Foreground | #071005black | #f6faf5whitesmoke |
| Card | #f4fcf3honeydew | #030303black |
| Card foreground | #050c04black | #f9fbf8mintcream |
| Popover | #f4fcf3honeydew | #030303black |
| Popover foreground | #050c04black | #f9fbf8mintcream |
| Primary | #9fa39edarkgray | #9fa39edarkgray |
| Primary foreground | #070807black | #070807black |
| Secondary | #a2a39edarkgray | #a2a39edarkgray |
| Secondary foreground | #080807black | #080807black |
| Muted | #e3e7d9gainsboro | #212618black |
| Muted foreground | #424739darkslategray | #c2c6b8silver |
| Accent | #9ea3a0darkgray | #9ea3a0darkgray |
| Accent foreground | #070808black | #070808black |
| Destructive | #7f170bmaroon | #e62914orangered |
| Destructive foreground | #fac8c2pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #9fa39edarkgray | #9fa39edarkgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.75:1 | AAA |
| Text on card | 18.89:1 | AAA |
| Primary button | 7.86:1 | AAA |
| Secondary button | 7.91:1 | AAA |
| Muted text | 7.63:1 | AAA |
| Accent | 7.85:1 | AAA |
| Destructive | 6.97:1 | AA |
| Text on background | 19.91:1 | AAA |
| Text on card | 19.87:1 | AAA |
| Primary button | 7.86:1 | AAA |
| Secondary button | 7.91:1 | AAA |
| Muted text | 8.93:1 | AAA |
| Accent | 7.85:1 | AAA |
| Destructive | 4.47:1 | AA Large |
Paste this into your globals.css to use Glistening in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.009 140.517);
--foreground: oklch(0.158 0.029 139.228);
--muted: oklch(0.922 0.019 121.833);
--muted-foreground: oklch(0.388 0.024 122.496);
--popover: oklch(0.982 0.014 140.51);
--popover-foreground: oklch(0.141 0.025 138.91);
--card: oklch(0.982 0.014 140.51);
--card-foreground: oklch(0.141 0.025 138.91);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.712 0.01 140.51);
--primary-foreground: oklch(0.133 0.001 140.437);
--secondary: oklch(0.714 0.008 121.681);
--secondary-foreground: oklch(0.133 0.001 121.471);
--accent: oklch(0.711 0.008 157.023);
--accent-foreground: oklch(0.133 0.001 157.245);
--destructive: oklch(0.388 0.14 30.495);
--destructive-foreground: oklch(0.874 0.058 25.669);
--ring: oklch(0.712 0.01 140.51);
--chart-1: oklch(0.712 0.01 140.51);
--chart-2: oklch(0.714 0.008 121.681);
--chart-3: oklch(0.711 0.008 157.023);
--chart-4: oklch(0.738 0.008 121.659);
--chart-5: oklch(0.715 0.019 140.49);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.98 0.007 140.52);
--muted: oklch(0.258 0.026 123.191);
--muted-foreground: oklch(0.82 0.02 121.886);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(0.987 0.005 140.524);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.987 0.005 140.524);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.712 0.01 140.51);
--primary-foreground: oklch(0.133 0.001 140.437);
--secondary: oklch(0.714 0.008 121.681);
--secondary-foreground: oklch(0.133 0.001 121.471);
--accent: oklch(0.711 0.008 157.023);
--accent-foreground: oklch(0.133 0.001 157.245);
--destructive: oklch(0.596 0.224 30.512);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.712 0.01 140.51);
--chart-1: oklch(0.712 0.01 140.51);
--chart-2: oklch(0.714 0.008 121.681);
--chart-3: oklch(0.711 0.008 157.023);
--chart-4: oklch(0.738 0.008 121.659);
--chart-5: oklch(0.715 0.019 140.49);
}