Stamina is a shadcn/ui theme built around a neutral gray primary color (#272a27) with neutral gray accents (#272a29). The light mode uses a neutral background (#f8fcf8). Dark mode keeps the neutral gray primary (#272a27) on a neutral background (#030703).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fcf8mintcream | #030703black |
| Foreground | #040c04black | #ffffffwhite |
| Card | #f5faf5whitesmoke | #050a05black |
| Card foreground | #020802black | #ffffffwhite |
| Popover | #f8fcf8mintcream | #030703black |
| Popover foreground | #040c04black | #ffffffwhite |
| Primary | #272a27darkslategray | #272a27darkslategray |
| Primary foreground | #bfc4bfsilver | #bfc4bfsilver |
| Secondary | #292a27darkslategray | #292a27darkslategray |
| Secondary foreground | #c2c4bfsilver | #c2c4bfsilver |
| Muted | #dbe8cegainsboro | #233117black |
| Muted foreground | #40433ddarkslategray | #bfc2bcsilver |
| Accent | #272a29darkslategray | #272a29darkslategray |
| Accent foreground | #bfc4c2silver | #bfc4c2silver |
| Destructive | #af1e0efirebrick | #ef4734tomato |
| Destructive foreground | #fef2f1seashell | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #272a27darkslategray | #272a27darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.10:1 | AAA |
| Text on card | 19.14:1 | AAA |
| Primary button | 8.16:1 | AAA |
| Secondary button | 8.17:1 | AAA |
| Muted text | 7.88:1 | AAA |
| Accent | 8.16:1 | AAA |
| Destructive | 6.38:1 | AA |
| Text on background | 20.27:1 | AAA |
| Text on card | 19.93:1 | AAA |
| Primary button | 8.16:1 | AAA |
| Secondary button | 8.17:1 | AAA |
| Muted text | 7.68:1 | AAA |
| Accent | 8.16:1 | AAA |
| Destructive | 3.74:1 | AA Large |
Paste this into your globals.css to use Stamina in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.006 146.002);
--foreground: oklch(0.139 0.026 144.545);
--muted: oklch(0.915 0.037 129.562);
--muted-foreground: oklch(0.377 0.011 129.452);
--popover: oklch(0.987 0.006 146.002);
--popover-foreground: oklch(0.139 0.026 144.545);
--card: oklch(0.98 0.009 145.975);
--card-foreground: oklch(0.122 0.022 144.558);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.282 0.007 145.838);
--primary-foreground: oklch(0.816 0.009 145.968);
--secondary: oklch(0.284 0.006 129.363);
--secondary-foreground: oklch(0.818 0.007 129.22);
--accent: oklch(0.283 0.005 165.492);
--accent-foreground: oklch(0.817 0.006 165.81);
--destructive: oklch(0.486 0.181 30.519);
--destructive-foreground: oklch(0.97 0.013 25.101);
--ring: oklch(0.282 0.007 145.838);
--chart-1: oklch(0.282 0.007 145.838);
--chart-2: oklch(0.284 0.006 129.363);
--chart-3: oklch(0.283 0.005 165.492);
--chart-4: oklch(0.315 0.007 129.373);
--chart-5: oklch(0.284 0.013 145.675);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.12 0.015 145.049);
--foreground: oklch(1 0 180);
--muted: oklch(0.292 0.047 131.132);
--muted-foreground: oklch(0.811 0.01 129.25);
--popover: oklch(0.12 0.015 145.049);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.137 0.017 145.049);
--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.282 0.007 145.838);
--primary-foreground: oklch(0.816 0.009 145.968);
--secondary: oklch(0.284 0.006 129.363);
--secondary-foreground: oklch(0.818 0.007 129.22);
--accent: oklch(0.283 0.005 165.492);
--accent-foreground: oklch(0.817 0.006 165.81);
--destructive: oklch(0.637 0.207 30.074);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.282 0.007 145.838);
--chart-1: oklch(0.282 0.007 145.838);
--chart-2: oklch(0.284 0.006 129.363);
--chart-3: oklch(0.283 0.005 165.492);
--chart-4: oklch(0.315 0.007 129.373);
--chart-5: oklch(0.284 0.013 145.675);
}