Anxiety is a shadcn/ui theme built around a muted green primary color (#a6b2a3) with muted green accents (#a3b2a8). The light mode uses a neutral background (#fbfefb). Dark mode keeps the muted green primary (#a6b2a3) on a green-tinted background (#060a05).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefbwhite | #060a05black |
| Foreground | #010401black | #f9fcf8mintcream |
| Card | #fbfefbwhite | #060a05black |
| Card foreground | #010401black | #f9fcf8mintcream |
| Popover | #fbfefbwhite | #060a05black |
| Popover foreground | #010401black | #f9fcf8mintcream |
| Primary | #a6b2a3darkgray | #a6b2a3darkgray |
| Primary foreground | #111310black | #111310black |
| Secondary | #adb2a3darkgray | #adb2a3darkgray |
| Secondary foreground | #121310black | #121310black |
| Muted | #e5e8degainsboro | #1e2117black |
| Muted foreground | #474b3fdarkslategray | #bcc0b4silver |
| Accent | #a3b2a8darkgray | #a3b2a8darkgray |
| Accent foreground | #101311black | #101311black |
| Destructive | #cb1e0bfirebrick | #f32812orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #a6b2a3darkgray | #a6b2a3darkgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.31:1 | AAA |
| Text on card | 20.31:1 | AAA |
| Primary button | 8.49:1 | AAA |
| Secondary button | 8.62:1 | AAA |
| Muted text | 7.21:1 | AAA |
| Accent | 8.48:1 | AAA |
| Destructive | 5.60:1 | AA |
| Text on background | 19.24:1 | AAA |
| Text on card | 19.24:1 | AAA |
| Primary button | 8.49:1 | AAA |
| Secondary button | 8.62:1 | AAA |
| Muted text | 8.81:1 | AAA |
| Accent | 8.48:1 | AAA |
| Destructive | 4.11:1 | AA Large |
Paste this into your globals.css to use Anxiety in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.005 140.523);
--foreground: oklch(0.099 0.021 138.493);
--muted: oklch(0.926 0.014 121.736);
--muted-foreground: oklch(0.405 0.021 122.332);
--popover: oklch(0.994 0.005 140.523);
--popover-foreground: oklch(0.099 0.021 138.493);
--card: oklch(0.994 0.005 140.523);
--card-foreground: oklch(0.099 0.021 138.493);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.751 0.026 140.479);
--primary-foreground: oklch(0.185 0.008 140.468);
--secondary: oklch(0.757 0.022 121.962);
--secondary-foreground: oklch(0.186 0.007 122.067);
--accent: oklch(0.75 0.022 156.653);
--accent-foreground: oklch(0.184 0.007 156.512);
--destructive: oklch(0.54 0.207 30.452);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.751 0.026 140.479);
--chart-1: oklch(0.751 0.026 140.479);
--chart-2: oklch(0.757 0.022 121.962);
--chart-3: oklch(0.75 0.022 156.653);
--chart-4: oklch(0.779 0.02 121.904);
--chart-5: oklch(0.754 0.034 140.462);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.138 0.017 139.385);
--foreground: oklch(0.987 0.006 140.522);
--muted: oklch(0.241 0.019 122.808);
--muted-foreground: oklch(0.802 0.018 121.849);
--popover: oklch(0.138 0.017 139.385);
--popover-foreground: oklch(0.987 0.006 140.522);
--card: oklch(0.138 0.017 139.385);
--card-foreground: oklch(0.987 0.006 140.522);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.751 0.026 140.479);
--primary-foreground: oklch(0.185 0.008 140.468);
--secondary: oklch(0.757 0.022 121.962);
--secondary-foreground: oklch(0.186 0.007 122.067);
--accent: oklch(0.75 0.022 156.653);
--accent-foreground: oklch(0.184 0.007 156.512);
--destructive: oklch(0.618 0.235 30.481);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.751 0.026 140.479);
--chart-1: oklch(0.751 0.026 140.479);
--chart-2: oklch(0.757 0.022 121.962);
--chart-3: oklch(0.75 0.022 156.653);
--chart-4: oklch(0.779 0.02 121.904);
--chart-5: oklch(0.754 0.034 140.462);
}