Shimmering is a shadcn/ui theme built around a neutral gray primary color (#7d8783) with neutral gray accents (#87837d). The light mode uses a neutral background (#f6fdfa). Dark mode keeps the neutral gray primary (#7d8783) on a neutral background (#010403).
| Token | Light | Dark |
|---|---|---|
| Background | #f6fdfamintcream | #010403black |
| Foreground | #020806black | #f8fcfamintcream |
| Card | #f6fdfamintcream | #010403black |
| Card foreground | #020806black | #f8fcfamintcream |
| Popover | #f6fdfamintcream | #010403black |
| Popover foreground | #020806black | #f8fcfamintcream |
| Primary | #7d8783gray | #7d8783gray |
| Primary foreground | #000000black | #000000black |
| Secondary | #837d87gray | #837d87gray |
| Secondary foreground | #000000black | #000000black |
| Muted | #ebe7eelavender | #151118black |
| Muted foreground | #4b3f55darkslategray | #b7aac0silver |
| Accent | #87837dgray | #87837dgray |
| Accent foreground | #000000black | #000000black |
| Destructive | #af3712firebrick | #d04116chocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #7d8783gray | #7d8783gray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.63:1 | AAA |
| Text on card | 19.63:1 | AAA |
| Primary button | 5.66:1 | AA |
| Secondary button | 5.24:1 | AA |
| Muted text | 8.04:1 | AAA |
| Accent | 5.55:1 | AA |
| Destructive | 6.19:1 | AA |
| Text on background | 19.90:1 | AAA |
| Text on card | 19.90:1 | AAA |
| Primary button | 5.66:1 | AA |
| Secondary button | 5.24:1 | AA |
| Muted text | 8.46:1 | AAA |
| Accent | 5.55:1 | AA |
| Destructive | 4.72:1 | AA |
Paste this into your globals.css to use Shimmering in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.008 168.494);
--foreground: oklch(0.125 0.018 169.011);
--muted: oklch(0.934 0.01 310.995);
--muted-foreground: oklch(0.389 0.04 310.185);
--popover: oklch(0.989 0.008 168.494);
--popover-foreground: oklch(0.125 0.018 169.011);
--card: oklch(0.989 0.008 168.494);
--card-foreground: oklch(0.125 0.018 169.011);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.614 0.013 168.111);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.598 0.016 310.847);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.611 0.01 74.85);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.51 0.163 36.067);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.614 0.013 168.111);
--chart-1: oklch(0.614 0.013 168.111);
--chart-2: oklch(0.598 0.016 310.847);
--chart-3: oklch(0.611 0.01 74.85);
--chart-4: oklch(0.624 0.015 310.873);
--chart-5: oklch(0.62 0.023 167.645);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.098 0.012 168.966);
--foreground: oklch(0.987 0.004 168.622);
--muted: oklch(0.186 0.014 310.419);
--muted-foreground: oklch(0.755 0.034 310.692);
--popover: oklch(0.098 0.012 168.966);
--popover-foreground: oklch(0.987 0.004 168.622);
--card: oklch(0.098 0.012 168.966);
--card-foreground: oklch(0.987 0.004 168.622);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.614 0.013 168.111);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.598 0.016 310.847);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.611 0.01 74.85);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.577 0.186 35.916);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.614 0.013 168.111);
--chart-1: oklch(0.614 0.013 168.111);
--chart-2: oklch(0.598 0.016 310.847);
--chart-3: oklch(0.611 0.01 74.85);
--chart-4: oklch(0.624 0.015 310.873);
--chart-5: oklch(0.62 0.023 167.645);
}