Glossy is a shadcn/ui theme built around a green primary color (#458514) with green accents (#14851b). The light mode uses a neutral background (#fcfefb). Dark mode keeps the green primary (#458514) on a green-tinted background (#070c04).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfefbwhite | #070c04black |
| Foreground | #070b04black | #f7f9f6whitesmoke |
| Card | #fafcf7snow | #091005black |
| Card foreground | #050803black | #fafbf9snow |
| Popover | #fafcf7snow | #091005black |
| Popover foreground | #050803black | #fafbf9snow |
| Primary | #458514forestgreen | #458514forestgreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #7e8514olive | #7e8514olive |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #f5f6efwhitesmoke | #101009black |
| Muted foreground | #545643darkolivegreen | #babca9silver |
| Accent | #14851bforestgreen | #14851bforestgreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #9b3d0dsaddlebrown | #ed6c2cchocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #458514forestgreen | #458514forestgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.53:1 | AAA |
| Text on card | 19.53:1 | AAA |
| Primary button | 4.54:1 | AA |
| Secondary button | 3.99:1 | AA Large |
| Muted text | 6.90:1 | AA |
| Accent | 4.76:1 | AA |
| Destructive | 6.87:1 | AA |
| Text on background | 18.67:1 | AAA |
| Text on card | 18.61:1 | AAA |
| Primary button | 4.54:1 | AA |
| Secondary button | 3.99:1 | AA Large |
| Muted text | 9.86:1 | AAA |
| Accent | 4.76:1 | AA |
| Destructive | 6.77:1 | AA |
Paste this into your globals.css to use Glossy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.004 131.115);
--foreground: oklch(0.143 0.021 129.979);
--muted: oklch(0.97 0.009 109.647);
--muted-foreground: oklch(0.445 0.029 110.657);
--popover: oklch(0.989 0.007 131.147);
--popover-foreground: oklch(0.125 0.018 129.863);
--card: oklch(0.989 0.007 131.147);
--card-foreground: oklch(0.125 0.018 129.863);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.553 0.154 135.607);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.591 0.127 113.755);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.538 0.169 143.373);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.482 0.137 42.235);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.553 0.154 135.607);
--chart-1: oklch(0.553 0.154 135.607);
--chart-2: oklch(0.591 0.127 113.755);
--chart-3: oklch(0.538 0.169 143.373);
--chart-4: oklch(0.634 0.136 113.787);
--chart-5: oklch(0.559 0.158 135.81);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.144 0.022 129.933);
--foreground: oklch(0.979 0.004 131.12);
--muted: oklch(0.17 0.013 110.877);
--muted-foreground: oklch(0.788 0.025 110.071);
--popover: oklch(0.161 0.026 130.971);
--popover-foreground: oklch(0.986 0.003 131.108);
--card: oklch(0.161 0.026 130.971);
--card-foreground: oklch(0.986 0.003 131.108);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.553 0.154 135.607);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.591 0.127 113.755);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.538 0.169 143.373);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.678 0.175 43.865);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.553 0.154 135.607);
--chart-1: oklch(0.553 0.154 135.607);
--chart-2: oklch(0.591 0.127 113.755);
--chart-3: oklch(0.538 0.169 143.373);
--chart-4: oklch(0.634 0.136 113.787);
--chart-5: oklch(0.559 0.158 135.81);
}