Scary is a shadcn/ui theme built around a pink primary color (#bd2878) with green accents (#28bd6e). The light mode uses a neutral background (#ffffff). Dark mode keeps the pink primary (#bd2878) on a pink-tinted background (#0c0308).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0c0308black |
| Foreground | #0e0208black | #fcf8fasnow |
| Card | #ffffffwhite | #0c0308black |
| Card foreground | #0e0208black | #fcf8fasnow |
| Popover | #ffffffwhite | #0c0308black |
| Popover foreground | #0e0208black | #fcf8fasnow |
| Primary | #bd2878mediumvioletred | #bd2878mediumvioletred |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #28bd6emediumseagreen | #28bd6emediumseagreen |
| Secondary foreground | #04150cblack | #04150cblack |
| Muted | #d5ece0gainsboro | #132a1eblack |
| Muted foreground | #52665bdimgray | #99ada3darkgray |
| Accent | #28bd6emediumseagreen | #28bd6emediumseagreen |
| Accent foreground | #04150cblack | #04150cblack |
| Destructive | #df3901orangered | #fe531borangered |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #bd2878mediumvioletred | #bd2878mediumvioletred |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.37:1 | AAA |
| Text on card | 20.37:1 | AAA |
| Primary button | 5.60:1 | AA |
| Secondary button | 7.71:1 | AAA |
| Muted text | 4.94:1 | AA |
| Accent | 7.71:1 | AAA |
| Destructive | 4.44:1 | AA Large |
| Text on background | 19.31:1 | AAA |
| Text on card | 19.31:1 | AAA |
| Primary button | 5.60:1 | AA |
| Secondary button | 7.71:1 | AAA |
| Muted text | 6.43:1 | AA |
| Accent | 7.71:1 | AAA |
| Destructive | 6.47:1 | AA |
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.117 0.036 344.108);
--muted: oklch(0.922 0.029 162.631);
--muted-foreground: oklch(0.49 0.03 161.807);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.117 0.036 344.108);
--card: oklch(1 0 180);
--card-foreground: oklch(0.117 0.036 344.108);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.542 0.196 353.583);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.706 0.167 153.883);
--secondary-foreground: oklch(0.177 0.03 159.471);
--accent: oklch(0.706 0.167 153.883);
--accent-foreground: oklch(0.177 0.03 159.471);
--destructive: oklch(0.595 0.209 34.802);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.542 0.196 353.583);
--chart-1: oklch(0.542 0.196 353.583);
--chart-2: oklch(0.706 0.167 153.883);
--chart-3: oklch(0.706 0.167 153.883);
--chart-4: oklch(0.741 0.176 153.825);
--chart-5: oklch(0.546 0.201 354.096);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.121 0.026 343.73);
--foreground: oklch(0.983 0.005 343.567);
--muted: oklch(0.262 0.037 159.093);
--muted-foreground: oklch(0.73 0.027 162.468);
--popover: oklch(0.121 0.026 343.73);
--popover-foreground: oklch(0.983 0.005 343.567);
--card: oklch(0.121 0.026 343.73);
--card-foreground: oklch(0.983 0.005 343.567);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.542 0.196 353.583);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.706 0.167 153.883);
--secondary-foreground: oklch(0.177 0.03 159.471);
--accent: oklch(0.706 0.167 153.883);
--accent-foreground: oklch(0.177 0.03 159.471);
--destructive: oklch(0.673 0.215 36.64);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.542 0.196 353.583);
--chart-1: oklch(0.542 0.196 353.583);
--chart-2: oklch(0.706 0.167 153.883);
--chart-3: oklch(0.706 0.167 153.883);
--chart-4: oklch(0.741 0.176 153.825);
--chart-5: oklch(0.546 0.201 354.096);
}