Scary is a shadcn/ui theme built around a muted purple primary color (#be97c3) with muted teal accents (#97c3be). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted purple primary (#be97c3) on a purple-tinted background (#0d060e).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0d060eblack |
| Foreground | #000000black | #fdfcfdwhite |
| Card | #fcfcfcsnow | #100811black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #ffffffwhite | #0d060eblack |
| Popover foreground | #000000black | #fdfcfdwhite |
| Primary | #be97c3darkgray | #be97c3darkgray |
| Primary foreground | #180f1ablack | #180f1ablack |
| Secondary | #c3be97tan | #c3be97tan |
| Secondary foreground | #1a180fblack | #1a180fblack |
| Muted | #eaeae6linen | #191915black |
| Muted foreground | #46453fdarkslategray | #c0bfb9silver |
| Accent | #97c3bedarkgray | #97c3bedarkgray |
| Accent foreground | #0f1a18black | #0f1a18black |
| Destructive | #952e09saddlebrown | #f2551corangered |
| Destructive foreground | #fcdfd4antiquewhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #be97c3darkgray | #be97c3darkgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 7.50:1 | AAA |
| Secondary button | 9.40:1 | AAA |
| Muted text | 7.96:1 | AAA |
| Accent | 9.23:1 | AAA |
| Destructive | 6.20:1 | AA |
| Text on background | 19.51:1 | AAA |
| Text on card | 19.70:1 | AAA |
| Primary button | 7.50:1 | AAA |
| Secondary button | 9.40:1 | AAA |
| Muted text | 9.58:1 | AAA |
| Accent | 9.23:1 | AAA |
| Destructive | 3.44:1 | AA Large |
Paste this into your globals.css to use Scary in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.936 0.005 99.425);
--muted-foreground: oklch(0.388 0.01 99.692);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.727 0.076 321.866);
--primary-foreground: oklch(0.186 0.026 321.952);
--secondary: oklch(0.795 0.052 100.194);
--secondary-foreground: oklch(0.209 0.018 100.394);
--accent: oklch(0.785 0.047 186.194);
--accent-foreground: oklch(0.206 0.016 185.678);
--destructive: oklch(0.454 0.145 37.313);
--destructive-foreground: oklch(0.924 0.036 41.053);
--ring: oklch(0.727 0.076 321.866);
--chart-1: oklch(0.727 0.076 321.866);
--chart-2: oklch(0.795 0.052 100.194);
--chart-3: oklch(0.785 0.047 186.194);
--chart-4: oklch(0.815 0.047 100.109);
--chart-5: oklch(0.725 0.084 321.894);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.139 0.021 322.25);
--foreground: oklch(0.992 0.002 321.597);
--muted: oklch(0.211 0.008 99.848);
--muted-foreground: oklch(0.804 0.008 99.487);
--popover: oklch(0.139 0.021 322.25);
--popover-foreground: oklch(0.992 0.002 321.597);
--card: oklch(0.151 0.024 322.052);
--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.727 0.076 321.866);
--primary-foreground: oklch(0.186 0.026 321.952);
--secondary: oklch(0.795 0.052 100.194);
--secondary-foreground: oklch(0.209 0.018 100.394);
--accent: oklch(0.785 0.047 186.194);
--accent-foreground: oklch(0.206 0.016 185.678);
--destructive: oklch(0.656 0.202 37.869);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.727 0.076 321.866);
--chart-1: oklch(0.727 0.076 321.866);
--chart-2: oklch(0.795 0.052 100.194);
--chart-3: oklch(0.785 0.047 186.194);
--chart-4: oklch(0.815 0.047 100.109);
--chart-5: oklch(0.725 0.084 321.894);
}