Glaring is a shadcn/ui theme built around a neutral gray primary color (#4a4a55) with neutral gray accents (#55544a). The light mode uses a neutral background (#fbfbfe). Dark mode keeps the neutral gray primary (#4a4a55) on an indigo-tinted background (#05050b).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfbfeghostwhite | #05050bblack |
| Foreground | #040510black | #f5f5fawhitesmoke |
| Card | #f8f8fcghostwhite | #06060eblack |
| Card foreground | #03040cblack | #f8f8fcghostwhite |
| Popover | #fbfbfeghostwhite | #05050bblack |
| Popover foreground | #040510black | #f5f5fawhitesmoke |
| Primary | #4a4a55darkslategray | #4a4a55darkslategray |
| Primary foreground | #e6e6ealavender | #e6e6ealavender |
| Secondary | #55544adarkolivegreen | #55544adarkolivegreen |
| Secondary foreground | #eaeae6linen | #eaeae6linen |
| Muted | #eeeee7linen | #181811black |
| Muted foreground | #5a5a58dimgray | #a7a7a5darkgray |
| Accent | #55544adarkolivegreen | #55544adarkolivegreen |
| Accent foreground | #eaeae6linen | #eaeae6linen |
| Destructive | #cb1f01firebrick | #fe4525orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #4a4a55darkslategray | #4a4a55darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.70:1 | AAA |
| Text on card | 19.25:1 | AAA |
| Primary button | 7.06:1 | AAA |
| Secondary button | 6.30:1 | AA |
| Muted text | 5.93:1 | AA |
| Accent | 6.30:1 | AA |
| Destructive | 5.61:1 | AA |
| Text on background | 18.72:1 | AAA |
| Text on card | 19.01:1 | AAA |
| Primary button | 7.06:1 | AAA |
| Secondary button | 6.30:1 | AA |
| Muted text | 7.40:1 | AAA |
| Accent | 6.30:1 | AA |
| Destructive | 3.44:1 | AA Large |
Paste this into your globals.css to use Glaring in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.003 285.562);
--foreground: oklch(0.121 0.028 280.318);
--muted: oklch(0.948 0.01 105.796);
--muted-foreground: oklch(0.467 0.003 105.723);
--popover: oklch(0.99 0.003 285.562);
--popover-foreground: oklch(0.121 0.028 280.318);
--card: oklch(0.979 0.006 285.505);
--card-foreground: oklch(0.109 0.024 280.53);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.412 0.018 284.807);
--primary-foreground: oklch(0.927 0.004 285.535);
--secondary: oklch(0.444 0.017 106.289);
--secondary-foreground: oklch(0.935 0.004 105.697);
--accent: oklch(0.444 0.017 106.289);
--accent-foreground: oklch(0.935 0.004 105.697);
--destructive: oklch(0.54 0.207 31.51);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.412 0.018 284.807);
--chart-1: oklch(0.412 0.018 284.807);
--chart-2: oklch(0.444 0.017 106.289);
--chart-3: oklch(0.444 0.017 106.289);
--chart-4: oklch(0.473 0.019 106.298);
--chart-5: oklch(0.405 0.026 284.414);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.118 0.016 282.768);
--foreground: oklch(0.971 0.007 285.488);
--muted: oklch(0.206 0.014 106.737);
--muted-foreground: oklch(0.727 0.002 105.678);
--popover: oklch(0.118 0.016 282.768);
--popover-foreground: oklch(0.971 0.007 285.488);
--card: oklch(0.13 0.018 282.677);
--card-foreground: oklch(0.981 0.005 285.532);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.412 0.018 284.807);
--primary-foreground: oklch(0.927 0.004 285.535);
--secondary: oklch(0.444 0.017 106.289);
--secondary-foreground: oklch(0.935 0.004 105.697);
--accent: oklch(0.444 0.017 106.289);
--accent-foreground: oklch(0.935 0.004 105.697);
--destructive: oklch(0.66 0.225 32.31);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.412 0.018 284.807);
--chart-1: oklch(0.412 0.018 284.807);
--chart-2: oklch(0.444 0.017 106.289);
--chart-3: oklch(0.444 0.017 106.289);
--chart-4: oklch(0.473 0.019 106.298);
--chart-5: oklch(0.405 0.026 284.414);
}