Glaring is a shadcn/ui theme built around a near-black primary color (#010609) with near-black accents (#090401). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#010609) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #030c12black | #f6f8f9whitesmoke |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #02090dblack | #f9fafbghostwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #030c12black | #f6f8f9whitesmoke |
| Primary | #010609black | #010609black |
| Primary foreground | #4faeeecornflowerblue | #4faeeecornflowerblue |
| Secondary | #090401black | #090401black |
| Secondary foreground | #ee8e4fcoral | #ee8e4fcoral |
| Muted | #e3ddd8gainsboro | #27201cblack |
| Muted foreground | #575757dimgray | #a8a8a8darkgray |
| Accent | #090401black | #090401black |
| Accent foreground | #ee8e4fcoral | #ee8e4fcoral |
| Destructive | #883007saddlebrown | #f46625chocolate |
| Destructive foreground | #fcd6c5peachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #010609black | #010609black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.71:1 | AAA |
| Text on card | 19.61:1 | AAA |
| Primary button | 8.36:1 | AAA |
| Secondary button | 8.35:1 | AAA |
| Muted text | 5.36:1 | AA |
| Accent | 8.35:1 | AAA |
| Destructive | 6.31:1 | AA |
| Text on background | 19.71:1 | AAA |
| Text on card | 19.78:1 | AAA |
| Primary button | 8.36:1 | AAA |
| Secondary button | 8.35:1 | AAA |
| Muted text | 6.74:1 | AA |
| Accent | 8.35:1 | AAA |
| Destructive | 6.77:1 | AA |
Paste this into your globals.css to use Glaring in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.146 0.022 232.926);
--muted: oklch(0.901 0.01 56.286);
--muted-foreground: oklch(0.456 0 180);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.146 0.022 232.926);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.131 0.019 228.885);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.115 0.018 226.524);
--primary-foreground: oklch(0.721 0.129 241.039);
--secondary: oklch(0.117 0.019 69.464);
--secondary-foreground: oklch(0.736 0.14 52.478);
--accent: oklch(0.117 0.019 69.464);
--accent-foreground: oklch(0.736 0.14 52.478);
--destructive: oklch(0.432 0.129 40.519);
--destructive-foreground: oklch(0.904 0.048 46.329);
--ring: oklch(0.115 0.018 226.524);
--chart-1: oklch(0.115 0.018 226.524);
--chart-2: oklch(0.117 0.019 69.464);
--chart-3: oklch(0.117 0.019 69.464);
--chart-4: oklch(0.164 0.03 60.913);
--chart-5: oklch(0.115 0.018 226.2);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.977 0.002 236.465);
--muted: oklch(0.25 0.013 55.695);
--muted-foreground: oklch(0.733 0 180);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.977 0.002 236.465);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.985 0.001 236.455);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.115 0.018 226.524);
--primary-foreground: oklch(0.721 0.129 241.039);
--secondary: oklch(0.117 0.019 69.464);
--secondary-foreground: oklch(0.736 0.14 52.478);
--accent: oklch(0.117 0.019 69.464);
--accent-foreground: oklch(0.736 0.14 52.478);
--destructive: oklch(0.68 0.188 41.874);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.115 0.018 226.524);
--chart-1: oklch(0.115 0.018 226.524);
--chart-2: oklch(0.117 0.019 69.464);
--chart-3: oklch(0.117 0.019 69.464);
--chart-4: oklch(0.164 0.03 60.913);
--chart-5: oklch(0.115 0.018 226.2);
}