Glossy is a shadcn/ui theme built around a muted cyan primary color (#5b6e76) with muted blue accents (#5b6076). The light mode uses a neutral background (#fbfdfe). Dark mode keeps the muted cyan primary (#5b6e76) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfdfewhite | #000000black |
| Foreground | #041015black | #f8fafbghostwhite |
| Card | #fbfdfewhite | #000000black |
| Card foreground | #041015black | #f8fafbghostwhite |
| Popover | #fbfdfewhite | #000000black |
| Popover foreground | #041015black | #f8fafbghostwhite |
| Primary | #5b6e76dimgray | #5b6e76dimgray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #5b7671dimgray | #5b7671dimgray |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e3e8e7gainsboro | #171c1bblack |
| Muted foreground | #5a6361dimgray | #9ca5a4darkgray |
| Accent | #5b6076dimgray | #5b6076dimgray |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #bb0c0cfirebrick | #e10e0ered |
| Destructive foreground | #fffafasnow | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #5b6e76dimgray | #5b6e76dimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.87:1 | AAA |
| Text on card | 18.87:1 | AAA |
| Primary button | 5.36:1 | AA |
| Secondary button | 4.90:1 | AA |
| Muted text | 5.00:1 | AA |
| Accent | 6.21:1 | AA |
| Destructive | 6.40:1 | AA |
| Text on background | 20.05:1 | AAA |
| Text on card | 20.05:1 | AAA |
| Primary button | 5.36:1 | AA |
| Secondary button | 4.90:1 | AA |
| Muted text | 6.82:1 | AA |
| Accent | 6.21:1 | AA |
| Destructive | 4.90:1 | AA |
Paste this into your globals.css to use Glossy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.993 0.002 226.887);
--foreground: oklch(0.164 0.022 227.198);
--muted: oklch(0.927 0.006 184.134);
--muted-foreground: oklch(0.491 0.012 183.649);
--popover: oklch(0.993 0.002 226.887);
--popover-foreground: oklch(0.164 0.022 227.198);
--card: oklch(0.993 0.002 226.887);
--card-foreground: oklch(0.164 0.022 227.198);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.524 0.026 227.592);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.543 0.033 182.613);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.493 0.036 275.09);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.501 0.2 28.654);
--destructive-foreground: oklch(0.989 0.005 17.238);
--ring: oklch(0.524 0.026 227.592);
--chart-1: oklch(0.524 0.026 227.592);
--chart-2: oklch(0.543 0.033 182.613);
--chart-3: oklch(0.493 0.036 275.09);
--chart-4: oklch(0.571 0.034 182.599);
--chart-5: oklch(0.526 0.032 227.802);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.985 0.003 226.89);
--muted: oklch(0.222 0.009 183.242);
--muted-foreground: oklch(0.715 0.011 183.897);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.985 0.003 226.89);
--card: oklch(0 0 0);
--card-foreground: oklch(0.985 0.003 226.89);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.524 0.026 227.592);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.543 0.033 182.613);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.493 0.036 275.09);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.575 0.231 28.757);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.524 0.026 227.592);
--chart-1: oklch(0.524 0.026 227.592);
--chart-2: oklch(0.543 0.033 182.613);
--chart-3: oklch(0.493 0.036 275.09);
--chart-4: oklch(0.571 0.034 182.599);
--chart-5: oklch(0.526 0.032 227.802);
}