Shaker is a shadcn/ui theme built around a vivid light purple primary color (#edaef4) with neutral gray accents (#d2d0d2). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the vivid light purple primary (#edaef4) on a purple-tinted background (#0f0510).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbfewhite | #0f0510black |
| Foreground | #080208black | #ffffffwhite |
| Card | #fdfbfewhite | #0f0510black |
| Card foreground | #080208black | #ffffffwhite |
| Popover | #fdfbfewhite | #0f0510black |
| Popover foreground | #080208black | #ffffffwhite |
| Primary | #edaef4plum | #edaef4plum |
| Primary foreground | #5b0d63indigo | #5b0d63indigo |
| Secondary | #d2d0d2lightgrey | #313031darkslategray |
| Secondary foreground | #393739darkslategray | #cac9calightgrey |
| Muted | #f1eef1whitesmoke | #100e11black |
| Muted foreground | #6a5b6bdimgray | #a294a4darkgray |
| Accent | #d2d0d2lightgrey | #313031darkslategray |
| Accent foreground | #393739darkslategray | #cac9calightgrey |
| Destructive | #c03502firebrick | #f24202orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #edaef4plum | #edaef4plum |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.99:1 | AAA |
| Text on card | 19.99:1 | AAA |
| Primary button | 7.10:1 | AAA |
| Secondary button | 7.70:1 | AAA |
| Muted text | 5.50:1 | AA |
| Accent | 7.70:1 | AAA |
| Destructive | 5.61:1 | AA |
| Text on background | 20.05:1 | AAA |
| Text on card | 20.05:1 | AAA |
| Primary button | 7.10:1 | AAA |
| Secondary button | 7.96:1 | AAA |
| Muted text | 6.68:1 | AA |
| Accent | 7.96:1 | AAA |
| Destructive | 3.76:1 | AA Large |
Paste this into your globals.css to use Shaker in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.004 322.644);
--foreground: oklch(0.106 0.029 324.7);
--muted: oklch(0.953 0.004 322.646);
--muted-foreground: oklch(0.492 0.031 322.87);
--popover: oklch(0.991 0.004 322.644);
--popover-foreground: oklch(0.106 0.029 324.7);
--card: oklch(0.991 0.004 322.644);
--card-foreground: oklch(0.106 0.029 324.7);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.832 0.118 323.152);
--primary-foreground: oklch(0.344 0.148 323.406);
--secondary: oklch(0.86 0.003 322.641);
--secondary-foreground: oklch(0.34 0.005 322.683);
--accent: oklch(0.86 0.003 322.641);
--accent-foreground: oklch(0.34 0.005 322.683);
--destructive: oklch(0.536 0.183 35.969);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.832 0.118 323.152);
--chart-1: oklch(0.832 0.118 323.152);
--chart-2: oklch(0.86 0.003 322.641);
--chart-3: oklch(0.86 0.003 322.641);
--chart-4: oklch(0.884 0.003 322.638);
--chart-5: oklch(0.831 0.123 323.17);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.137 0.032 323.801);
--foreground: oklch(1 0 180);
--muted: oklch(0.168 0.007 322.791);
--muted-foreground: oklch(0.683 0.028 322.791);
--popover: oklch(0.137 0.032 323.801);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.137 0.032 323.801);
--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.832 0.118 323.152);
--primary-foreground: oklch(0.344 0.148 323.406);
--secondary: oklch(0.31 0.002 322.654);
--secondary-foreground: oklch(0.837 0.002 322.636);
--accent: oklch(0.31 0.002 322.654);
--accent-foreground: oklch(0.837 0.002 322.636);
--destructive: oklch(0.637 0.22 35.513);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.832 0.118 323.152);
--chart-1: oklch(0.832 0.118 323.152);
--chart-2: oklch(0.31 0.002 322.654);
--chart-3: oklch(0.31 0.002 322.654);
--chart-4: oklch(0.34 0.002 322.655);
--chart-5: oklch(0.831 0.123 323.17);
}