Fearful is a shadcn/ui theme built around a muted deep blue primary color (#3c414e) with muted deep indigo accents (#403c4e). The light mode uses a neutral background (#f8f9fc). Dark mode keeps the muted deep blue primary (#3c414e) on a neutral background (#030407).
| Token | Light | Dark |
|---|---|---|
| Background | #f8f9fcghostwhite | #030407black |
| Foreground | #050915black | #ffffffwhite |
| Card | #f8f9fcghostwhite | #030407black |
| Card foreground | #050915black | #ffffffwhite |
| Popover | #f8f9fcghostwhite | #030407black |
| Popover foreground | #050915black | #ffffffwhite |
| Primary | #3c414edarkslategray | #3c414edarkslategray |
| Primary foreground | #dadce2gainsboro | #dadce2gainsboro |
| Secondary | #3c4a4edarkslategray | #3c4a4edarkslategray |
| Secondary foreground | #dae0e2gainsboro | #dae0e2gainsboro |
| Muted | #e8ecedlavender | #121617black |
| Muted foreground | #404344darkslategray | #bbbebfsilver |
| Accent | #403c4edarkslategray | #403c4edarkslategray |
| Accent foreground | #dcdae2gainsboro | #dcdae2gainsboro |
| Destructive | #682303maroon | #f8611bchocolate |
| Destructive foreground | #fcbea1lightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #3c414edarkslategray | #3c414edarkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.86:1 | AAA |
| Text on card | 18.86:1 | AAA |
| Primary button | 7.47:1 | AAA |
| Secondary button | 6.93:1 | AA |
| Muted text | 8.38:1 | AAA |
| Accent | 7.69:1 | AAA |
| Destructive | 7.11:1 | AAA |
| Text on background | 20.47:1 | AAA |
| Text on card | 20.47:1 | AAA |
| Primary button | 7.47:1 | AAA |
| Secondary button | 6.93:1 | AA |
| Muted text | 9.76:1 | AAA |
| Accent | 7.69:1 | AAA |
| Destructive | 6.72:1 | AA |
Paste this into your globals.css to use Fearful in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.004 270.084);
--foreground: oklch(0.141 0.028 264.285);
--muted: oklch(0.94 0.004 217.766);
--muted-foreground: oklch(0.382 0.004 217.812);
--popover: oklch(0.982 0.004 270.084);
--popover-foreground: oklch(0.141 0.028 264.285);
--card: oklch(0.982 0.004 270.084);
--card-foreground: oklch(0.141 0.028 264.285);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.375 0.023 269.5);
--primary-foreground: oklch(0.894 0.009 270.037);
--secondary: oklch(0.397 0.019 218.16);
--secondary-foreground: oklch(0.903 0.008 217.793);
--accent: oklch(0.367 0.031 295.539);
--accent-foreground: oklch(0.891 0.012 296.84);
--destructive: oklch(0.357 0.106 41.084);
--destructive-foreground: oklch(0.851 0.082 45.97);
--ring: oklch(0.375 0.023 269.5);
--chart-1: oklch(0.375 0.023 269.5);
--chart-2: oklch(0.397 0.019 218.16);
--chart-3: oklch(0.367 0.031 295.539);
--chart-4: oklch(0.427 0.021 218.17);
--chart-5: oklch(0.372 0.029 269.316);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.109 0.009 265.824);
--foreground: oklch(1 0 180);
--muted: oklch(0.195 0.006 217.958);
--muted-foreground: oklch(0.799 0.004 217.769);
--popover: oklch(0.109 0.009 265.824);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.109 0.009 265.824);
--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.375 0.023 269.5);
--primary-foreground: oklch(0.894 0.009 270.037);
--secondary: oklch(0.397 0.019 218.16);
--secondary-foreground: oklch(0.903 0.008 217.793);
--accent: oklch(0.367 0.031 295.539);
--accent-foreground: oklch(0.891 0.012 296.84);
--destructive: oklch(0.68 0.199 40.92);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.375 0.023 269.5);
--chart-1: oklch(0.375 0.023 269.5);
--chart-2: oklch(0.397 0.019 218.16);
--chart-3: oklch(0.367 0.031 295.539);
--chart-4: oklch(0.427 0.021 218.17);
--chart-5: oklch(0.372 0.029 269.316);
}