Sweaty is a shadcn/ui theme built around a muted light green primary color (#e2e9dd) with muted light pink accents (#e9dde2). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light green primary (#e2e9dd) on a neutral background (#050803).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #050803black |
| Foreground | #050802black | #f7faf5whitesmoke |
| Card | #ffffffwhite | #050803black |
| Card foreground | #050802black | #f7faf5whitesmoke |
| Popover | #ffffffwhite | #050803black |
| Popover foreground | #050802black | #f7faf5whitesmoke |
| Primary | #e2e9ddgainsboro | #e2e9ddgainsboro |
| Primary foreground | #48593bdarkolivegreen | #48593bdarkolivegreen |
| Secondary | #dde2e9gainsboro | #dde2e9gainsboro |
| Secondary foreground | #3b4859darkslategray | #3b4859darkslategray |
| Muted | #d5d8ddgainsboro | #22262adarkslategray |
| Muted foreground | #464c53darkslategray | #acb2b9darkgray |
| Accent | #e9dde2gainsboro | #e9dde2gainsboro |
| Accent foreground | #593b48darkslategray | #593b48darkslategray |
| Destructive | #760804maroon | #f11009red |
| Destructive foreground | #fcb3b0lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e2e9ddgainsboro | #e2e9ddgainsboro |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.15:1 | AAA |
| Text on card | 20.15:1 | AAA |
| Primary button | 6.10:1 | AA |
| Secondary button | 7.15:1 | AAA |
| Muted text | 6.07:1 | AA |
| Accent | 7.42:1 | AAA |
| Destructive | 6.75:1 | AA |
| Text on background | 19.17:1 | AAA |
| Text on card | 19.17:1 | AAA |
| Primary button | 6.10:1 | AA |
| Secondary button | 7.15:1 | AAA |
| Muted text | 7.14:1 | AAA |
| Accent | 7.42:1 | AAA |
| Destructive | 4.35:1 | AA Large |
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.126 0.02 129.709);
--muted: oklch(0.881 0.008 255);
--muted-foreground: oklch(0.412 0.015 255.122);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.126 0.02 129.709);
--card: oklch(1 0 180);
--card-foreground: oklch(0.126 0.02 129.709);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.925 0.016 131.241);
--primary-foreground: oklch(0.44 0.051 132.202);
--secondary: oklch(0.912 0.01 255.012);
--secondary-foreground: oklch(0.397 0.033 255.265);
--accent: oklch(0.909 0.014 349.152);
--accent-foreground: oklch(0.391 0.046 351.781);
--destructive: oklch(0.36 0.141 29.313);
--destructive-foreground: oklch(0.834 0.086 21.283);
--ring: oklch(0.925 0.016 131.241);
--chart-1: oklch(0.925 0.016 131.241);
--chart-2: oklch(0.912 0.01 255.012);
--chart-3: oklch(0.909 0.014 349.152);
--chart-4: oklch(0.936 0.007 254.996);
--chart-5: oklch(0.926 0.019 131.264);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.125 0.018 129.863);
--foreground: oklch(0.981 0.007 131.146);
--muted: oklch(0.266 0.01 255.13);
--muted-foreground: oklch(0.76 0.013 255.041);
--popover: oklch(0.125 0.018 129.863);
--popover-foreground: oklch(0.981 0.007 131.146);
--card: oklch(0.125 0.018 129.863);
--card-foreground: oklch(0.981 0.007 131.146);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.925 0.016 131.241);
--primary-foreground: oklch(0.44 0.051 132.202);
--secondary: oklch(0.912 0.01 255.012);
--secondary-foreground: oklch(0.397 0.033 255.265);
--accent: oklch(0.909 0.014 349.152);
--accent-foreground: oklch(0.391 0.046 351.781);
--destructive: oklch(0.606 0.243 29.303);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.925 0.016 131.241);
--chart-1: oklch(0.925 0.016 131.241);
--chart-2: oklch(0.912 0.01 255.012);
--chart-3: oklch(0.909 0.014 349.152);
--chart-4: oklch(0.936 0.007 254.996);
--chart-5: oklch(0.926 0.019 131.264);
}