Shimmering is a shadcn/ui theme built around a light indigo primary color (#f5f5fa) with muted light indigo accents (#d4d1e0). The light mode uses a neutral background (#f8f7fd). Dark mode keeps the light indigo primary (#f5f5fa) on an indigo-tinted background (#05030c).
| Token | Light | Dark |
|---|---|---|
| Background | #f8f7fdghostwhite | #05030cblack |
| Foreground | #010104black | #fcfcfdwhite |
| Card | #f8f7fdghostwhite | #05030cblack |
| Card foreground | #010104black | #fcfcfdwhite |
| Popover | #f8f7fdghostwhite | #05030cblack |
| Popover foreground | #010104black | #fcfcfdwhite |
| Primary | #f5f5fawhitesmoke | #f5f5fawhitesmoke |
| Primary foreground | #463b81darkslateblue | #463b81darkslateblue |
| Secondary | #e9e9eclavender | #303030darkslategray |
| Secondary foreground | #4c4a59darkslategray | #c9c9c9silver |
| Muted | #d7d5e2gainsboro | #2a1d1dblack |
| Muted foreground | #615f67dimgray | #a09898darkgray |
| Accent | #d4d1e0lightgrey | #483d3ddarkslategray |
| Accent foreground | #37344cdarkslategray | #ded8d8gainsboro |
| Destructive | #932706saddlebrown | #f5410aorangered |
| Destructive foreground | #fdd9cebisque | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f5f5fawhitesmoke | #f5f5fawhitesmoke |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.52:1 | AAA |
| Text on card | 19.52:1 | AAA |
| Primary button | 8.75:1 | AAA |
| Secondary button | 7.12:1 | AAA |
| Muted text | 4.32:1 | AA Large |
| Accent | 7.98:1 | AAA |
| Destructive | 6.31:1 | AA |
| Text on background | 19.97:1 | AAA |
| Text on card | 19.97:1 | AAA |
| Primary button | 8.75:1 | AAA |
| Secondary button | 7.91:1 | AAA |
| Muted text | 5.75:1 | AA |
| Accent | 7.43:1 | AAA |
| Destructive | 3.72:1 | AA Large |
Paste this into your globals.css to use Shimmering in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.978 0.009 293.142);
--foreground: oklch(0.073 0.021 290.775);
--muted: oklch(0.877 0.019 292.906);
--muted-foreground: oklch(0.491 0.013 292.821);
--popover: oklch(0.978 0.009 293.142);
--popover-foreground: oklch(0.073 0.021 290.775);
--card: oklch(0.978 0.009 293.142);
--card-foreground: oklch(0.073 0.021 290.775);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.971 0.008 293.16);
--primary-foreground: oklch(0.402 0.113 287.045);
--secondary: oklch(0.935 0.005 293.207);
--secondary-foreground: oklch(0.418 0.024 292.192);
--accent: oklch(0.868 0.02 292.872);
--accent-foreground: oklch(0.338 0.042 290.831);
--destructive: oklch(0.441 0.149 35.354);
--destructive-foreground: oklch(0.912 0.043 37.601);
--ring: oklch(0.971 0.008 293.16);
--chart-1: oklch(0.971 0.008 293.16);
--chart-2: oklch(0.935 0.005 293.207);
--chart-3: oklch(0.868 0.02 292.872);
--chart-4: oklch(0.959 0.003 293.246);
--chart-5: oklch(0.97 0.008 293.148);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.111 0.025 291.323);
--foreground: oklch(0.991 0.002 293.269);
--muted: oklch(0.247 0.021 18.714);
--muted-foreground: oklch(0.685 0.009 17.385);
--popover: oklch(0.111 0.025 291.323);
--popover-foreground: oklch(0.991 0.002 293.269);
--card: oklch(0.111 0.025 291.323);
--card-foreground: oklch(0.991 0.002 293.269);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.971 0.008 293.16);
--primary-foreground: oklch(0.402 0.113 287.045);
--secondary: oklch(0.311 0 180);
--secondary-foreground: oklch(0.837 0 171.254);
--accent: oklch(0.371 0.015 17.839);
--accent-foreground: oklch(0.888 0.006 17.275);
--destructive: oklch(0.64 0.222 34.623);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.971 0.008 293.16);
--chart-1: oklch(0.971 0.008 293.16);
--chart-2: oklch(0.311 0 180);
--chart-3: oklch(0.371 0.015 17.839);
--chart-4: oklch(0.341 0 158.199);
--chart-5: oklch(0.97 0.008 293.148);
}