Afraid is a shadcn/ui theme built around a muted blue primary color (#91a2b1) with muted orange accents (#b1a091). The light mode uses a neutral background (#fcfdfd). Dark mode keeps the muted blue primary (#91a2b1) on a neutral background (#020303).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfdfdwhite | #020303black |
| Foreground | #050b0fblack | #f5f7f9whitesmoke |
| Card | #f8fafbghostwhite | #030507black |
| Card foreground | #04080cblack | #f9fafbghostwhite |
| Popover | #fcfdfdwhite | #020303black |
| Popover foreground | #050b0fblack | #f5f7f9whitesmoke |
| Primary | #91a2b1darkgray | #91a2b1darkgray |
| Primary foreground | #060809black | #060809black |
| Secondary | #b1a091rosybrown | #b1a091rosybrown |
| Secondary foreground | #090806black | #090806black |
| Muted | #eee2d8antiquewhite | #271b11black |
| Muted foreground | #6c5d51dimgray | #aea093rosybrown |
| Accent | #b1a091rosybrown | #b1a091rosybrown |
| Accent foreground | #090806black | #090806black |
| Destructive | #db4906orangered | #ef5006orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #91a2b1darkgray | #91a2b1darkgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.35:1 | AAA |
| Text on card | 19.20:1 | AAA |
| Primary button | 7.62:1 | AAA |
| Secondary button | 7.88:1 | AAA |
| Muted text | 4.97:1 | AA |
| Accent | 7.88:1 | AAA |
| Destructive | 4.23:1 | AA Large |
| Text on background | 19.26:1 | AAA |
| Text on card | 19.51:1 | AAA |
| Primary button | 7.62:1 | AAA |
| Secondary button | 7.88:1 | AAA |
| Muted text | 6.58:1 | AA |
| Accent | 7.88:1 | AAA |
| Destructive | 3.61:1 | AA Large |
Paste this into your globals.css to use Afraid in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.992 0.001 244.105);
--foreground: oklch(0.143 0.015 241.069);
--muted: oklch(0.92 0.018 63.834);
--muted-foreground: oklch(0.49 0.026 63.347);
--popover: oklch(0.992 0.001 244.105);
--popover-foreground: oklch(0.143 0.015 241.069);
--card: oklch(0.984 0.003 244.122);
--card-foreground: oklch(0.13 0.013 237.522);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.703 0.029 244.609);
--primary-foreground: oklch(0.132 0.004 241.717);
--secondary: oklch(0.715 0.029 63.544);
--secondary-foreground: oklch(0.133 0.004 66.506);
--accent: oklch(0.715 0.029 63.544);
--accent-foreground: oklch(0.133 0.004 66.506);
--destructive: oklch(0.604 0.192 38.789);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.703 0.029 244.609);
--chart-1: oklch(0.703 0.029 244.609);
--chart-2: oklch(0.715 0.029 63.544);
--chart-3: oklch(0.715 0.029 63.544);
--chart-4: oklch(0.739 0.027 63.613);
--chart-5: oklch(0.702 0.034 244.703);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.091 0.006 239.381);
--foreground: oklch(0.976 0.003 244.134);
--muted: oklch(0.235 0.025 62.289);
--muted-foreground: oklch(0.714 0.024 63.645);
--popover: oklch(0.091 0.006 239.381);
--popover-foreground: oklch(0.976 0.003 244.134);
--card: oklch(0.114 0.007 239.381);
--card-foreground: oklch(0.984 0.002 244.119);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.703 0.029 244.609);
--primary-foreground: oklch(0.132 0.004 241.717);
--secondary: oklch(0.715 0.029 63.544);
--secondary-foreground: oklch(0.133 0.004 66.506);
--accent: oklch(0.715 0.029 63.544);
--accent-foreground: oklch(0.133 0.004 66.506);
--destructive: oklch(0.644 0.206 38.623);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.703 0.029 244.609);
--chart-1: oklch(0.703 0.029 244.609);
--chart-2: oklch(0.715 0.029 63.544);
--chart-3: oklch(0.715 0.029 63.544);
--chart-4: oklch(0.739 0.027 63.613);
--chart-5: oklch(0.702 0.034 244.703);
}