Sweaty is a shadcn/ui theme built around a green primary color (#53973b) with pink accents (#973b53). The light mode uses a neutral background (#f8fdf7). Dark mode keeps the green primary (#53973b) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fdf7mintcream | #000000black |
| Foreground | #050d03black | #ffffffwhite |
| Card | #f8fdf7mintcream | #000000black |
| Card foreground | #050d03black | #ffffffwhite |
| Popover | #f8fdf7mintcream | #000000black |
| Popover foreground | #050d03black | #ffffffwhite |
| Primary | #53973bolivedrab | #53973bolivedrab |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #3b5397darkslateblue | #3b5397darkslateblue |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e8e9edlavender | #121317black |
| Muted foreground | #404554darkslategray | #abb0bfdarkgray |
| Accent | #973b53sienna | #973b53sienna |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #c12710firebrick | #ed4126orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #53973bolivedrab | #53973bolivedrab |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.15:1 | AAA |
| Text on card | 19.15:1 | AAA |
| Primary button | 3.60:1 | AA Large |
| Secondary button | 7.32:1 | AAA |
| Muted text | 7.90:1 | AAA |
| Accent | 6.88:1 | AA |
| Destructive | 5.86:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 3.60:1 | AA Large |
| Secondary button | 7.32:1 | AAA |
| Muted text | 8.55:1 | AAA |
| Accent | 6.88:1 | AA |
| Destructive | 3.89:1 | AA Large |
Paste this into your globals.css to use Sweaty in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.01 137.212);
--foreground: oklch(0.144 0.028 135.439);
--muted: oklch(0.935 0.005 270.077);
--muted-foreground: oklch(0.392 0.027 269.431);
--popover: oklch(0.989 0.01 137.212);
--popover-foreground: oklch(0.144 0.028 135.439);
--card: oklch(0.989 0.01 137.212);
--card-foreground: oklch(0.144 0.028 135.439);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.609 0.144 138.261);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.458 0.114 266.864);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.484 0.125 6.514);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.528 0.192 31.505);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.609 0.144 138.261);
--chart-1: oklch(0.609 0.144 138.261);
--chart-2: oklch(0.458 0.114 266.864);
--chart-3: oklch(0.484 0.125 6.514);
--chart-4: oklch(0.481 0.121 266.831);
--chart-5: oklch(0.617 0.152 138.37);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.188 0.008 269.746);
--muted-foreground: oklch(0.758 0.023 269.853);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0 0 0);
--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.609 0.144 138.261);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.458 0.114 266.864);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.484 0.125 6.514);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.628 0.213 31.661);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.609 0.144 138.261);
--chart-1: oklch(0.609 0.144 138.261);
--chart-2: oklch(0.458 0.114 266.864);
--chart-3: oklch(0.484 0.125 6.514);
--chart-4: oklch(0.481 0.121 266.831);
--chart-5: oklch(0.617 0.152 138.37);
}