Frightening is a shadcn/ui theme built around a neutral gray primary color (#74867c) with muted green accents (#b0cfbe). The light mode uses a neutral background (#fbfefc). Dark mode keeps the neutral gray primary (#74867c) on a neutral background (#010402).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefcwhite | #010402black |
| Foreground | #020805black | #ffffffwhite |
| Card | #fbfefcwhite | #010402black |
| Card foreground | #020805black | #ffffffwhite |
| Popover | #fbfefcwhite | #010402black |
| Popover foreground | #020805black | #ffffffwhite |
| Primary | #74867cgray | #74867cgray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #ccdbd3lightgrey | #151e19black |
| Secondary foreground | #30453adarkslategray | #a5c0b1darkgray |
| Muted | #f0f5f2whitesmoke | #0a0f0cblack |
| Muted foreground | #424c47darkslategray | #b3bdb7silver |
| Accent | #b0cfbesilver | #1f3328darkslategray |
| Accent foreground | #1d2f25darkslategray | #b3d0c0silver |
| Destructive | #97210cbrown | #ef583etomato |
| Destructive foreground | #fcded9mistyrose | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #74867cgray | #74867cgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.86:1 | AAA |
| Text on card | 19.86:1 | AAA |
| Primary button | 3.86:1 | AA Large |
| Secondary button | 7.20:1 | AAA |
| Muted text | 8.07:1 | AAA |
| Accent | 8.39:1 | AAA |
| Destructive | 6.53:1 | AA |
| Text on background | 20.58:1 | AAA |
| Text on card | 20.58:1 | AAA |
| Primary button | 3.86:1 | AA Large |
| Secondary button | 8.74:1 | AAA |
| Muted text | 9.98:1 | AAA |
| Accent | 8.16:1 | AAA |
| Destructive | 6.15:1 | AA |
Paste this into your globals.css to use Frightening in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 162.544);
--foreground: oklch(0.124 0.018 162.646);
--muted: oklch(0.965 0.007 162.442);
--muted-foreground: oklch(0.407 0.016 161.628);
--popover: oklch(0.994 0.003 162.544);
--popover-foreground: oklch(0.124 0.018 162.646);
--card: oklch(0.994 0.003 162.544);
--card-foreground: oklch(0.124 0.018 162.646);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.602 0.025 161.553);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.879 0.02 162.034);
--secondary-foreground: oklch(0.37 0.033 160.153);
--accent: oklch(0.826 0.04 161.356);
--accent-foreground: oklch(0.287 0.03 159.638);
--destructive: oklch(0.444 0.157 32.171);
--destructive-foreground: oklch(0.925 0.034 29.636);
--ring: oklch(0.602 0.025 161.553);
--chart-1: oklch(0.602 0.025 161.553);
--chart-2: oklch(0.879 0.02 162.034);
--chart-3: oklch(0.826 0.04 161.356);
--chart-4: oklch(0.9 0.017 162.153);
--chart-5: oklch(0.608 0.035 161.094);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.098 0.014 162.647);
--foreground: oklch(1 0 180);
--muted: oklch(0.163 0.01 160.912);
--muted-foreground: oklch(0.788 0.013 162.191);
--popover: oklch(0.098 0.014 162.647);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.098 0.014 162.647);
--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.602 0.025 161.553);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.224 0.017 160.649);
--secondary-foreground: oklch(0.784 0.037 161.407);
--accent: oklch(0.299 0.032 159.587);
--accent-foreground: oklch(0.833 0.039 161.421);
--destructive: oklch(0.658 0.191 32.266);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.602 0.025 161.553);
--chart-1: oklch(0.602 0.025 161.553);
--chart-2: oklch(0.224 0.017 160.649);
--chart-3: oklch(0.299 0.032 159.587);
--chart-4: oklch(0.26 0.021 160.473);
--chart-5: oklch(0.608 0.035 161.094);
}