Glistening is a shadcn/ui theme built around a red primary color (#d18171) with yellow accents (#d1b171). The light mode uses a neutral background (#fdf8f7). Dark mode keeps the red primary (#d18171) on a neutral background (#040201).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf8f7snow | #040201black |
| Foreground | #090301black | #fbf9f9snow |
| Card | #fbf5f3whitesmoke | #080302black |
| Card foreground | #040101black | #fdfcfcsnow |
| Popover | #fbf5f3whitesmoke | #080302black |
| Popover foreground | #040101black | #fdfcfcsnow |
| Primary | #d18171darksalmon | #d18171darksalmon |
| Primary foreground | #0c0504black | #0c0504black |
| Secondary | #d17191palevioletred | #d17191palevioletred |
| Secondary foreground | #0c0406black | #0c0406black |
| Muted | #dbd6d8gainsboro | #292425darkslategray |
| Muted foreground | #49363ddarkslategray | #c9b6bcsilver |
| Accent | #d1b171darkkhaki | #d1b171darkkhaki |
| Accent foreground | #0c0904black | #0c0904black |
| Destructive | #741801maroon | #fd4d21orangered |
| Destructive foreground | #febaa9lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d18171darksalmon | #d18171darksalmon |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.45:1 | AAA |
| Text on card | 19.24:1 | AAA |
| Primary button | 6.79:1 | AA |
| Secondary button | 6.23:1 | AA |
| Muted text | 7.79:1 | AAA |
| Accent | 9.65:1 | AAA |
| Destructive | 6.82:1 | AA |
| Text on background | 19.77:1 | AAA |
| Text on card | 20.01:1 | AAA |
| Primary button | 6.79:1 | AA |
| Secondary button | 6.23:1 | AA |
| Muted text | 7.96:1 | AAA |
| Accent | 9.65:1 | AAA |
| Destructive | 3.36:1 | AA Large |
Paste this into your globals.css to use Glistening in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.983 0.005 31.052);
--foreground: oklch(0.107 0.02 40.836);
--muted: oklch(0.881 0.006 354.795);
--muted-foreground: oklch(0.357 0.029 356.83);
--popover: oklch(0.974 0.007 31.058);
--popover-foreground: oklch(0.085 0.016 40.836);
--card: oklch(0.974 0.007 31.058);
--card-foreground: oklch(0.085 0.016 40.836);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.683 0.103 32.043);
--primary-foreground: oklch(0.126 0.015 36.368);
--secondary: oklch(0.665 0.126 359.823);
--secondary-foreground: oklch(0.122 0.02 354.446);
--accent: oklch(0.773 0.09 83.86);
--accent-foreground: oklch(0.141 0.015 89.654);
--destructive: oklch(0.367 0.13 34.314);
--destructive-foreground: oklch(0.848 0.083 34.513);
--ring: oklch(0.683 0.103 32.043);
--chart-1: oklch(0.683 0.103 32.043);
--chart-2: oklch(0.665 0.126 359.823);
--chart-3: oklch(0.773 0.09 83.86);
--chart-4: oklch(0.69 0.115 359.149);
--chart-5: oklch(0.682 0.109 32.134);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.086 0.012 37.868);
--foreground: oklch(0.984 0.003 31.048);
--muted: oklch(0.265 0.009 355.509);
--muted-foreground: oklch(0.793 0.023 355.425);
--popover: oklch(0.109 0.015 37.868);
--popover-foreground: oklch(0.992 0.001 31.046);
--card: oklch(0.109 0.015 37.868);
--card-foreground: oklch(0.992 0.001 31.046);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.683 0.103 32.043);
--primary-foreground: oklch(0.126 0.015 36.368);
--secondary: oklch(0.665 0.126 359.823);
--secondary-foreground: oklch(0.122 0.02 354.446);
--accent: oklch(0.773 0.09 83.86);
--accent-foreground: oklch(0.141 0.015 89.654);
--destructive: oklch(0.665 0.219 34.431);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.683 0.103 32.043);
--chart-1: oklch(0.683 0.103 32.043);
--chart-2: oklch(0.665 0.126 359.823);
--chart-3: oklch(0.773 0.09 83.86);
--chart-4: oklch(0.69 0.115 359.149);
--chart-5: oklch(0.682 0.109 32.134);
}