Anxious is a shadcn/ui theme built around a deep red primary color (#5c1e1f) with deep teal accents (#1e5c5b). The light mode uses a neutral background (#fdfcfc). Dark mode keeps the deep red primary (#5c1e1f) on a red-tinted background (#0a0505).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfcfcsnow | #0a0505black |
| Foreground | #150405black | #f9f5f6whitesmoke |
| Card | #fdfcfcsnow | #0a0505black |
| Card foreground | #150405black | #f9f5f6whitesmoke |
| Popover | #fdfcfcsnow | #0a0505black |
| Popover foreground | #150405black | #f9f5f6whitesmoke |
| Primary | #5c1e1fmaroon | #5c1e1fmaroon |
| Primary foreground | #ebc1c2pink | #ebc1c2pink |
| Secondary | #1e5c5bdarkslategray | #1e5c5bdarkslategray |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #d5dddcgainsboro | #222a2adarkslategray |
| Muted foreground | #536e6edimgray | #91acabdarkgray |
| Accent | #1e5c5bdarkslategray | #1e5c5bdarkslategray |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #842b0bsaddlebrown | #e74b13orangered |
| Destructive foreground | #fad4c6peachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #5c1e1fmaroon | #5c1e1fmaroon |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.45:1 | AAA |
| Text on card | 19.45:1 | AAA |
| Primary button | 7.77:1 | AAA |
| Secondary button | 7.62:1 | AAA |
| Muted text | 3.96:1 | AA Large |
| Accent | 7.62:1 | AAA |
| Destructive | 6.55:1 | AA |
| Text on background | 18.71:1 | AAA |
| Text on card | 18.71:1 | AAA |
| Primary button | 7.77:1 | AAA |
| Secondary button | 7.62:1 | AAA |
| Muted text | 6.05:1 | AA |
| Accent | 7.62:1 | AAA |
| Destructive | 3.86:1 | AA Large |
Paste this into your globals.css to use Anxious in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.002 16.01);
--foreground: oklch(0.142 0.033 20.803);
--muted: oklch(0.89 0.008 195.812);
--muted-foreground: oklch(0.518 0.032 194.938);
--popover: oklch(0.991 0.002 16.01);
--popover-foreground: oklch(0.142 0.033 20.803);
--card: oklch(0.991 0.002 16.01);
--card-foreground: oklch(0.142 0.033 20.803);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.333 0.092 22.59);
--primary-foreground: oklch(0.849 0.048 17.005);
--secondary: oklch(0.437 0.062 193.542);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.437 0.062 193.542);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.42 0.129 37.93);
--destructive-foreground: oklch(0.899 0.047 40.998);
--ring: oklch(0.333 0.092 22.59);
--chart-1: oklch(0.333 0.092 22.59);
--chart-2: oklch(0.437 0.062 193.542);
--chart-3: oklch(0.437 0.062 193.542);
--chart-4: oklch(0.474 0.068 193.515);
--chart-5: oklch(0.333 0.096 23.084);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.125 0.011 17.429);
--foreground: oklch(0.974 0.004 16.048);
--muted: oklch(0.278 0.011 195.312);
--muted-foreground: oklch(0.723 0.03 195.266);
--popover: oklch(0.125 0.011 17.429);
--popover-foreground: oklch(0.974 0.004 16.048);
--card: oklch(0.125 0.011 17.429);
--card-foreground: oklch(0.974 0.004 16.048);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.333 0.092 22.59);
--primary-foreground: oklch(0.849 0.048 17.005);
--secondary: oklch(0.437 0.062 193.542);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.437 0.062 193.542);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.627 0.201 37.185);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.333 0.092 22.59);
--chart-1: oklch(0.333 0.092 22.59);
--chart-2: oklch(0.437 0.062 193.542);
--chart-3: oklch(0.437 0.062 193.542);
--chart-4: oklch(0.474 0.068 193.515);
--chart-5: oklch(0.333 0.096 23.084);
}