Gleaming is a shadcn/ui theme built around an indigo primary color (#383fa3) with yellow accents (#a39c38). The light mode uses a neutral background (#fbfcfd). Dark mode keeps the indigo primary (#383fa3) on an indigo-tinted background (#050510).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfcfdwhite | #050510black |
| Foreground | #010105black | #ffffffwhite |
| Card | #fbfcfdwhite | #050510black |
| Card foreground | #010105black | #ffffffwhite |
| Popover | #fbfcfdwhite | #050510black |
| Popover foreground | #010105black | #ffffffwhite |
| Primary | #383fa3darkslateblue | #383fa3darkslateblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #a39c38peru | #a39c38peru |
| Secondary foreground | #0b0b04black | #0b0b04black |
| Muted | #eeedddbeige | #222111black |
| Muted foreground | #474638darkslategray | #c7c6b8silver |
| Accent | #a39c38peru | #a39c38peru |
| Accent foreground | #0b0b04black | #0b0b04black |
| Destructive | #c84504chocolate | #f05305orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #383fa3darkslateblue | #383fa3darkslateblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.25:1 | AAA |
| Text on card | 20.25:1 | AAA |
| Primary button | 8.70:1 | AAA |
| Secondary button | 6.94:1 | AA |
| Muted text | 8.10:1 | AAA |
| Accent | 6.94:1 | AA |
| Destructive | 4.86:1 | AA |
| Text on background | 20.25:1 | AAA |
| Text on card | 20.25:1 | AAA |
| Primary button | 8.70:1 | AAA |
| Secondary button | 6.94:1 | AA |
| Muted text | 9.40:1 | AAA |
| Accent | 6.94:1 | AA |
| Destructive | 3.53: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.003 283.063);
--foreground: oklch(0.07 0.022 273.194);
--muted: oklch(0.943 0.022 103.492);
--muted-foreground: oklch(0.392 0.023 104.036);
--popover: oklch(0.99 0.003 283.063);
--popover-foreground: oklch(0.07 0.022 273.194);
--card: oklch(0.99 0.003 283.063);
--card-foreground: oklch(0.07 0.022 273.194);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.425 0.159 274.276);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.68 0.121 105.231);
--secondary-foreground: oklch(0.147 0.017 105.484);
--accent: oklch(0.68 0.121 105.231);
--accent-foreground: oklch(0.147 0.017 105.484);
--destructive: oklch(0.568 0.177 39.904);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.425 0.159 274.276);
--chart-1: oklch(0.425 0.159 274.276);
--chart-2: oklch(0.68 0.121 105.231);
--chart-3: oklch(0.68 0.121 105.231);
--chart-4: oklch(0.715 0.127 105.232);
--chart-5: oklch(0.421 0.168 273.503);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.124 0.025 277.824);
--foreground: oklch(1 0 180);
--muted: oklch(0.245 0.029 104.797);
--muted-foreground: oklch(0.823 0.02 103.498);
--popover: oklch(0.124 0.025 277.824);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.124 0.025 277.824);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.425 0.159 274.276);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.68 0.121 105.231);
--secondary-foreground: oklch(0.147 0.017 105.484);
--accent: oklch(0.68 0.121 105.231);
--accent-foreground: oklch(0.147 0.017 105.484);
--destructive: oklch(0.65 0.204 39.506);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.425 0.159 274.276);
--chart-1: oklch(0.425 0.159 274.276);
--chart-2: oklch(0.68 0.121 105.231);
--chart-3: oklch(0.68 0.121 105.231);
--chart-4: oklch(0.715 0.127 105.232);
--chart-5: oklch(0.421 0.168 273.503);
}