Fearful is a shadcn/ui theme built around an indigo primary color (#4023a9) with green accents (#8ca923). The light mode uses a neutral background (#f9f8fb). Dark mode keeps the indigo primary (#4023a9) on a neutral background (#040308).
| Token | Light | Dark |
|---|---|---|
| Background | #f9f8fbghostwhite | #040308black |
| Foreground | #070317black | #ffffffwhite |
| Card | #f6f5fawhitesmoke | #06040bblack |
| Card foreground | #060212black | #ffffffwhite |
| Popover | #f9f8fbghostwhite | #040308black |
| Popover foreground | #070317black | #ffffffwhite |
| Primary | #4023a9darkslateblue | #4023a9darkslateblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #8ca923yellowgreen | #8ca923yellowgreen |
| Secondary foreground | #000000black | #000000black |
| Muted | #e7edd4beige | #262b12black |
| Muted foreground | #434639darkslategray | #c3c6b9silver |
| Accent | #8ca923yellowgreen | #8ca923yellowgreen |
| Accent foreground | #000000black | #000000black |
| Destructive | #c02607firebrick | #f85a3atomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #4023a9darkslateblue | #4023a9darkslateblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.23:1 | AAA |
| Text on card | 18.87:1 | AAA |
| Primary button | 10.34:1 | AAA |
| Secondary button | 7.84:1 | AAA |
| Muted text | 8.01:1 | AAA |
| Accent | 7.84:1 | AAA |
| Destructive | 5.97:1 | AA |
| Text on background | 20.59:1 | AAA |
| Text on card | 20.39:1 | AAA |
| Primary button | 10.34:1 | AAA |
| Secondary button | 7.84:1 | AAA |
| Muted text | 8.44:1 | AAA |
| Accent | 7.84:1 | AAA |
| Destructive | 6.50:1 | AA |
Paste this into your globals.css to use Fearful in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.004 296.252);
--foreground: oklch(0.123 0.048 291.553);
--muted: oklch(0.934 0.033 116.97);
--muted-foreground: oklch(0.388 0.021 117.326);
--popover: oklch(0.981 0.004 296.252);
--popover-foreground: oklch(0.123 0.048 291.553);
--card: oklch(0.972 0.006 296.211);
--card-foreground: oklch(0.113 0.042 293.11);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.394 0.197 282.481);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.69 0.156 121.741);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.69 0.156 121.741);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.524 0.193 32.243);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.394 0.197 282.481);
--chart-1: oklch(0.394 0.197 282.481);
--chart-2: oklch(0.69 0.156 121.741);
--chart-3: oklch(0.69 0.156 121.741);
--chart-4: oklch(0.728 0.165 121.778);
--chart-5: oklch(0.392 0.203 281.533);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.101 0.018 295.706);
--foreground: oklch(1 0 180);
--muted: oklch(0.276 0.042 119.25);
--muted-foreground: oklch(0.82 0.018 116.724);
--popover: oklch(0.101 0.018 295.706);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.116 0.021 295.626);
--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.394 0.197 282.481);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.69 0.156 121.741);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.69 0.156 121.741);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.673 0.199 33.21);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.394 0.197 282.481);
--chart-1: oklch(0.394 0.197 282.481);
--chart-2: oklch(0.69 0.156 121.741);
--chart-3: oklch(0.69 0.156 121.741);
--chart-4: oklch(0.728 0.165 121.778);
--chart-5: oklch(0.392 0.203 281.533);
}