Frightened is a shadcn/ui theme built around a muted deep green primary color (#0d1009) with muted deep violet accents (#0d0910). The light mode uses a neutral background (#fcfefb). Dark mode keeps the muted deep green primary (#0d1009) on a green-tinted background (#080b05).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfefbwhite | #080b05black |
| Foreground | #0a1103black | #ffffffwhite |
| Card | #fcfefbwhite | #080b05black |
| Card foreground | #0a1103black | #ffffffwhite |
| Popover | #fcfefbwhite | #080b05black |
| Popover foreground | #0a1103black | #ffffffwhite |
| Primary | #0d1009black | #0d1009black |
| Primary foreground | #a6bd8fdarkseagreen | #a6bd8fdarkseagreen |
| Secondary | #0d0910black | #0d0910black |
| Secondary foreground | #a68fbddarkgray | #a68fbddarkgray |
| Muted | #d9cae7thistle | #261835midnightblue |
| Muted foreground | #61566cdimgray | #9e93a9darkgray |
| Accent | #0d0910black | #0d0910black |
| Accent foreground | #a68fbddarkgray | #a68fbddarkgray |
| Destructive | #d31103red | #fc3f31tomato |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0d1009black | #0d1009black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.88:1 | AAA |
| Text on card | 18.88:1 | AAA |
| Primary button | 9.40:1 | AAA |
| Secondary button | 6.83:1 | AA |
| Muted text | 4.43:1 | AA Large |
| Accent | 6.83:1 | AA |
| Destructive | 5.45:1 | AA |
| Text on background | 19.85:1 | AAA |
| Text on card | 19.85:1 | AAA |
| Primary button | 9.40:1 | AAA |
| Secondary button | 6.83:1 | AA |
| Muted text | 5.70:1 | AA |
| Accent | 6.83:1 | AA |
| Destructive | 3.57:1 | AA Large |
Paste this into your globals.css to use Frightened in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 128.495);
--foreground: oklch(0.167 0.033 128.833);
--muted: oklch(0.86 0.043 307.912);
--muted-foreground: oklch(0.472 0.036 307.61);
--popover: oklch(0.994 0.003 128.495);
--popover-foreground: oklch(0.167 0.033 128.833);
--card: oklch(0.994 0.003 128.495);
--card-foreground: oklch(0.167 0.033 128.833);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.167 0.014 129.453);
--primary-foreground: oklch(0.768 0.069 129.516);
--secondary: oklch(0.15 0.015 307.371);
--secondary-foreground: oklch(0.686 0.072 307.296);
--accent: oklch(0.15 0.015 307.371);
--accent-foreground: oklch(0.686 0.072 307.296);
--destructive: oklch(0.549 0.219 29.833);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.167 0.014 129.453);
--chart-1: oklch(0.167 0.014 129.453);
--chart-2: oklch(0.15 0.015 307.371);
--chart-3: oklch(0.15 0.015 307.371);
--chart-4: oklch(0.181 0.023 307.048);
--chart-5: oklch(0.168 0.016 129.527);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.141 0.015 127.679);
--foreground: oklch(1 0 180);
--muted: oklch(0.242 0.056 305.668);
--muted-foreground: oklch(0.681 0.033 307.922);
--popover: oklch(0.141 0.015 127.679);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.141 0.015 127.679);
--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.167 0.014 129.453);
--primary-foreground: oklch(0.768 0.069 129.516);
--secondary: oklch(0.15 0.015 307.371);
--secondary-foreground: oklch(0.686 0.072 307.296);
--accent: oklch(0.15 0.015 307.371);
--accent-foreground: oklch(0.686 0.072 307.296);
--destructive: oklch(0.652 0.227 29.03);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.167 0.014 129.453);
--chart-1: oklch(0.167 0.014 129.453);
--chart-2: oklch(0.15 0.015 307.371);
--chart-3: oklch(0.15 0.015 307.371);
--chart-4: oklch(0.181 0.023 307.048);
--chart-5: oklch(0.168 0.016 129.527);
}