Scary is a shadcn/ui theme built around a muted light green primary color (#dadcd1) with muted light purple accents (#dcd1da). The light mode uses a neutral background (#fcfdf7). Dark mode keeps the muted light green primary (#dadcd1) on a neutral background (#030401).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfdf7snow | #030401black |
| Foreground | #080901black | #fdfdfcwhite |
| Card | #fcfdf7snow | #030401black |
| Card foreground | #080901black | #fdfdfcwhite |
| Popover | #fcfdf7snow | #030401black |
| Popover foreground | #080901black | #fdfdfcwhite |
| Primary | #dadcd1gainsboro | #dadcd1gainsboro |
| Primary foreground | #434535darkslategray | #434535darkslategray |
| Secondary | #d1dadcgainsboro | #d1dadcgainsboro |
| Secondary foreground | #354345darkslategray | #354345darkslategray |
| Muted | #eaf4f6whitesmoke | #091415black |
| Muted foreground | #636363dimgray | #9c9c9cdarkgray |
| Accent | #dcd1dagainsboro | #dcd1dagainsboro |
| Accent foreground | #453543darkslategray | #453543darkslategray |
| Destructive | #c12506firebrick | #f84420orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #dadcd1gainsboro | #dadcd1gainsboro |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.55:1 | AAA |
| Text on card | 19.55:1 | AAA |
| Primary button | 7.04:1 | AAA |
| Secondary button | 7.25:1 | AAA |
| Muted text | 5.37:1 | AA |
| Accent | 7.67:1 | AAA |
| Destructive | 5.94:1 | AA |
| Text on background | 20.21:1 | AAA |
| Text on card | 20.21:1 | AAA |
| Primary button | 7.04:1 | AAA |
| Secondary button | 7.25:1 | AAA |
| Muted text | 6.81:1 | AA |
| Accent | 7.67:1 | AAA |
| Destructive | 3.58:1 | AA Large |
Paste this into your globals.css to use Scary in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.992 0.008 111.932);
--foreground: oklch(0.135 0.024 113.321);
--muted: oklch(0.96 0.011 206.373);
--muted-foreground: oklch(0.501 0 180);
--popover: oklch(0.992 0.008 111.932);
--popover-foreground: oklch(0.135 0.024 113.321);
--card: oklch(0.992 0.008 111.932);
--card-foreground: oklch(0.135 0.024 113.321);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.889 0.014 112.082);
--primary-foreground: oklch(0.384 0.026 113.035);
--secondary: oklch(0.882 0.01 206.374);
--secondary-foreground: oklch(0.372 0.018 206.257);
--accent: oklch(0.872 0.017 329.361);
--accent-foreground: oklch(0.353 0.032 330.15);
--destructive: oklch(0.525 0.194 32.194);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.889 0.014 112.082);
--chart-1: oklch(0.889 0.014 112.082);
--chart-2: oklch(0.882 0.01 206.374);
--chart-3: oklch(0.872 0.017 329.361);
--chart-4: oklch(0.905 0.008 206.387);
--chart-5: oklch(0.892 0.018 112.149);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.101 0.011 112.758);
--foreground: oklch(0.994 0.002 111.824);
--muted: oklch(0.181 0.016 206.341);
--muted-foreground: oklch(0.691 0 180);
--popover: oklch(0.101 0.011 112.758);
--popover-foreground: oklch(0.994 0.002 111.824);
--card: oklch(0.101 0.011 112.758);
--card-foreground: oklch(0.994 0.002 111.824);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.889 0.014 112.082);
--primary-foreground: oklch(0.384 0.026 113.035);
--secondary: oklch(0.882 0.01 206.374);
--secondary-foreground: oklch(0.372 0.018 206.257);
--accent: oklch(0.872 0.017 329.361);
--accent-foreground: oklch(0.353 0.032 330.15);
--destructive: oklch(0.649 0.221 32.941);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.889 0.014 112.082);
--chart-1: oklch(0.889 0.014 112.082);
--chart-2: oklch(0.882 0.01 206.374);
--chart-3: oklch(0.872 0.017 329.361);
--chart-4: oklch(0.905 0.008 206.387);
--chart-5: oklch(0.892 0.018 112.149);
}