Gleaming is a shadcn/ui theme built around a red primary color (#6f332f) with muted light red accents (#dfd8d8). The light mode uses a neutral background (#fefbfb). Dark mode keeps the red primary (#6f332f) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfbsnow | #000000black |
| Foreground | #0d0303black | #f8f7f7whitesmoke |
| Card | #fefbfbsnow | #000000black |
| Card foreground | #0d0303black | #f8f7f7whitesmoke |
| Popover | #fefbfbsnow | #000000black |
| Popover foreground | #0d0303black | #f8f7f7whitesmoke |
| Primary | #6f332fsaddlebrown | #6f332fsaddlebrown |
| Primary foreground | #f1e0dfmistyrose | #f1e0dfmistyrose |
| Secondary | #dfd8d8gainsboro | #291f1eblack |
| Secondary foreground | #493c3cdarkslategray | #c7b3b2silver |
| Muted | #f5efefwhitesmoke | #100a0ablack |
| Muted foreground | #483837darkslategray | #c8b8b7silver |
| Accent | #dfd8d8gainsboro | #291f1eblack |
| Accent foreground | #493c3cdarkslategray | #c7b3b2silver |
| Destructive | #6f0d06maroon | #f34135tomato |
| Destructive foreground | #fab2adlightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #6f332fsaddlebrown | #6f332fsaddlebrown |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.77:1 | AAA |
| Text on card | 19.77:1 | AAA |
| Primary button | 7.55:1 | AAA |
| Secondary button | 7.49:1 | AAA |
| Muted text | 9.77:1 | AAA |
| Accent | 7.49:1 | AAA |
| Destructive | 6.93:1 | AA |
| Text on background | 19.63:1 | AAA |
| Text on card | 19.63:1 | AAA |
| Primary button | 7.55:1 | AAA |
| Secondary button | 8.05:1 | AAA |
| Muted text | 10.28:1 | AAA |
| Accent | 8.05:1 | AAA |
| Destructive | 3.72:1 | AA Large |
Paste this into your globals.css to use Gleaming in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.004 20.934);
--foreground: oklch(0.119 0.022 26.093);
--muted: oklch(0.958 0.007 20.976);
--muted-foreground: oklch(0.359 0.023 21.775);
--popover: oklch(0.99 0.004 20.934);
--popover-foreground: oklch(0.119 0.022 26.093);
--card: oklch(0.99 0.004 20.934);
--card-foreground: oklch(0.119 0.022 26.093);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.399 0.086 24.768);
--primary-foreground: oklch(0.92 0.019 21.162);
--secondary: oklch(0.888 0.007 20.996);
--secondary-foreground: oklch(0.371 0.018 21.546);
--accent: oklch(0.888 0.007 20.996);
--accent-foreground: oklch(0.371 0.018 21.546);
--destructive: oklch(0.348 0.131 29.724);
--destructive-foreground: oklch(0.831 0.085 23.638);
--ring: oklch(0.399 0.086 24.768);
--chart-1: oklch(0.399 0.086 24.768);
--chart-2: oklch(0.888 0.007 20.996);
--chart-3: oklch(0.888 0.007 20.996);
--chart-4: oklch(0.912 0.006 20.97);
--chart-5: oklch(0.399 0.092 25.151);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.976 0.002 20.912);
--muted: oklch(0.152 0.011 21.963);
--muted-foreground: oklch(0.795 0.018 21.186);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.976 0.002 20.912);
--card: oklch(0 0 0);
--card-foreground: oklch(0.976 0.002 20.912);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.399 0.086 24.768);
--primary-foreground: oklch(0.92 0.019 21.162);
--secondary: oklch(0.25 0.017 21.858);
--secondary-foreground: oklch(0.784 0.023 21.282);
--accent: oklch(0.25 0.017 21.858);
--accent-foreground: oklch(0.784 0.023 21.282);
--destructive: oklch(0.64 0.216 28.794);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.399 0.086 24.768);
--chart-1: oklch(0.399 0.086 24.768);
--chart-2: oklch(0.25 0.017 21.858);
--chart-3: oklch(0.25 0.017 21.858);
--chart-4: oklch(0.28 0.02 21.919);
--chart-5: oklch(0.399 0.092 25.151);
}