Sweaty is a shadcn/ui theme built around a light green primary color (#cef3c9) with light red accents (#f3c9ce). The light mode uses a neutral background (#ffffff). Dark mode keeps the light green primary (#cef3c9) on a neutral background (#040703).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040703black |
| Foreground | #040c03black | #f6f9f6whitesmoke |
| Card | #fcfcfcsnow | #050b05black |
| Card foreground | #030802black | #f9fbf9mintcream |
| Popover | #fcfcfcsnow | #050b05black |
| Popover foreground | #030802black | #f9fbf9mintcream |
| Primary | #cef3c9gainsboro | #cef3c9gainsboro |
| Primary foreground | #091d06black | #091d06black |
| Secondary | #c9cef3lightblue | #c9cef3lightblue |
| Secondary foreground | #192371midnightblue | #192371midnightblue |
| Muted | #dbdce6gainsboro | #191b24black |
| Muted foreground | #454545darkslategray | #bababasilver |
| Accent | #f3c9cepink | #f3c9cepink |
| Accent foreground | #711923maroon | #711923maroon |
| Destructive | #a24610saddlebrown | #ed8345coral |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #cef3c9gainsboro | #cef3c9gainsboro |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.82:1 | AAA |
| Text on card | 19.76:1 | AAA |
| Primary button | 14.52:1 | AAA |
| Secondary button | 8.91:1 | AAA |
| Muted text | 7.04:1 | AAA |
| Accent | 7.51:1 | AAA |
| Destructive | 6.13:1 | AA |
| Text on background | 19.09:1 | AAA |
| Text on card | 19.13:1 | AAA |
| Primary button | 14.52:1 | AAA |
| Secondary button | 8.91:1 | AAA |
| Muted text | 8.86:1 | AAA |
| Accent | 7.51:1 | AAA |
| Destructive | 7.90:1 | AAA |
Paste this into your globals.css to use Sweaty in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.142 0.029 140.277);
--muted: oklch(0.898 0.013 280.109);
--muted-foreground: oklch(0.39 0 165.964);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.124 0.025 140.23);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.124 0.025 140.23);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.927 0.069 141.856);
--primary-foreground: oklch(0.208 0.05 141.084);
--secondary: oklch(0.858 0.052 279.308);
--secondary-foreground: oklch(0.306 0.133 270.3);
--accent: oklch(0.873 0.049 10.221);
--accent-foreground: oklch(0.366 0.121 19.497);
--destructive: oklch(0.508 0.137 45.05);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.927 0.069 141.856);
--chart-1: oklch(0.927 0.069 141.856);
--chart-2: oklch(0.858 0.052 279.308);
--chart-3: oklch(0.873 0.049 10.221);
--chart-4: oklch(0.891 0.04 279.596);
--chart-5: oklch(0.928 0.072 141.844);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.121 0.016 140.881);
--foreground: oklch(0.979 0.006 142.093);
--muted: oklch(0.223 0.018 278.947);
--muted-foreground: oklch(0.789 0 171.254);
--popover: oklch(0.139 0.019 140.886);
--popover-foreground: oklch(0.986 0.004 142.1);
--card: oklch(0.139 0.019 140.886);
--card-foreground: oklch(0.986 0.004 142.1);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.927 0.069 141.856);
--primary-foreground: oklch(0.208 0.05 141.084);
--secondary: oklch(0.858 0.052 279.308);
--secondary-foreground: oklch(0.306 0.133 270.3);
--accent: oklch(0.873 0.049 10.221);
--accent-foreground: oklch(0.366 0.121 19.497);
--destructive: oklch(0.715 0.15 48.632);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.927 0.069 141.856);
--chart-1: oklch(0.927 0.069 141.856);
--chart-2: oklch(0.858 0.052 279.308);
--chart-3: oklch(0.873 0.049 10.221);
--chart-4: oklch(0.891 0.04 279.596);
--chart-5: oklch(0.928 0.072 141.844);
}