Frightening is a shadcn/ui theme built around a muted deep green primary color (#0c0e0b) with muted deep red accents (#0e0b0c). The light mode uses a neutral background (#f8fdf7). Dark mode keeps the muted deep green primary (#0c0e0b) on a neutral background (#030802).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fdf7mintcream | #030802black |
| Foreground | #000000black | #ffffffwhite |
| Card | #f8fdf7mintcream | #030802black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #f8fdf7mintcream | #030802black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #0c0e0bblack | #0c0e0bblack |
| Primary foreground | #9eaf9ddarkgray | #9eaf9ddarkgray |
| Secondary | #0b0c0eblack | #0b0c0eblack |
| Secondary foreground | #9d9eafdarkgray | #9d9eafdarkgray |
| Muted | #d4d5e3gainsboro | #1c1d2bblack |
| Muted foreground | #4e4e50darkslategray | #afafb1darkgray |
| Accent | #0e0b0cblack | #0e0b0cblack |
| Accent foreground | #af9d9edarkgray | #af9d9edarkgray |
| Destructive | #6d2c08saddlebrown | #f07838coral |
| Destructive foreground | #f9c8aepeachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0c0e0bblack | #0c0e0bblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.32:1 | AAA |
| Text on card | 20.32:1 | AAA |
| Primary button | 8.37:1 | AAA |
| Secondary button | 7.40:1 | AAA |
| Muted text | 5.70:1 | AA |
| Accent | 7.57:1 | AAA |
| Destructive | 6.92:1 | AA |
| Text on background | 20.20:1 | AAA |
| Text on card | 20.20:1 | AAA |
| Primary button | 8.37:1 | AAA |
| Secondary button | 7.40:1 | AAA |
| Muted text | 7.57:1 | AAA |
| Accent | 7.57:1 | AAA |
| Destructive | 7.46:1 | AAA |
Paste this into your globals.css to use Frightening in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.009 143.093);
--foreground: oklch(0 0 0);
--muted: oklch(0.876 0.019 281.848);
--muted-foreground: oklch(0.426 0.002 282.12);
--popover: oklch(0.988 0.009 143.093);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.988 0.009 143.093);
--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.16 0.007 142.943);
--primary-foreground: oklch(0.735 0.031 142.935);
--secondary: oklch(0.154 0.005 281.659);
--secondary-foreground: oklch(0.704 0.024 281.634);
--accent: oklch(0.155 0.004 11.872);
--accent-foreground: oklch(0.711 0.021 11.9);
--destructive: oklch(0.38 0.103 44.024);
--destructive-foreground: oklch(0.87 0.066 49.772);
--ring: oklch(0.16 0.007 142.943);
--chart-1: oklch(0.16 0.007 142.943);
--chart-2: oklch(0.154 0.005 281.659);
--chart-3: oklch(0.155 0.004 11.872);
--chart-4: oklch(0.187 0.008 281.511);
--chart-5: oklch(0.161 0.008 142.886);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.123 0.023 141.389);
--foreground: oklch(1 0 180);
--muted: oklch(0.238 0.026 280.155);
--muted-foreground: oklch(0.755 0.002 282.167);
--popover: oklch(0.123 0.023 141.389);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.123 0.023 141.389);
--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.16 0.007 142.943);
--primary-foreground: oklch(0.735 0.031 142.935);
--secondary: oklch(0.154 0.005 281.659);
--secondary-foreground: oklch(0.704 0.024 281.634);
--accent: oklch(0.155 0.004 11.872);
--accent-foreground: oklch(0.711 0.021 11.9);
--destructive: oklch(0.702 0.166 46.128);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.16 0.007 142.943);
--chart-1: oklch(0.16 0.007 142.943);
--chart-2: oklch(0.154 0.005 281.659);
--chart-3: oklch(0.155 0.004 11.872);
--chart-4: oklch(0.187 0.008 281.511);
--chart-5: oklch(0.161 0.008 142.886);
}