Sweaty is a shadcn/ui theme built around a neutral gray primary color (#7d7d7d) with neutral gray accents (#7d7d7d). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#7d7d7d) on a red-tinted background (#0f0606).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0f0606black |
| Foreground | #040101black | #fbf8f8snow |
| Card | #ffffffwhite | #0f0606black |
| Card foreground | #040101black | #fbf8f8snow |
| Popover | #ffffffwhite | #0f0606black |
| Popover foreground | #040101black | #fbf8f8snow |
| Primary | #7d7d7dgray | #7d7d7dgray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #7d7d7dgray | #7d7d7dgray |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #eee2e2mistyrose | #1d1111black |
| Muted foreground | #4d4d4ddarkslategray | #b3b3b3darkgray |
| Accent | #7d7d7dgray | #7d7d7dgray |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #d71c0ffirebrick | #f03628crimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #7d7d7dgray | #7d7d7dgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.79:1 | AAA |
| Text on card | 20.79:1 | AAA |
| Primary button | 4.11:1 | AA Large |
| Secondary button | 4.11:1 | AA Large |
| Muted text | 6.69:1 | AA |
| Accent | 4.11:1 | AA Large |
| Destructive | 5.18:1 | AA |
| Text on background | 18.98:1 | AAA |
| Text on card | 18.98:1 | AAA |
| Primary button | 4.11:1 | AA Large |
| Secondary button | 4.11:1 | AA Large |
| Muted text | 8.78:1 | AAA |
| Accent | 4.11:1 | AA Large |
| Destructive | 3.99: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.082 0.015 20.892);
--muted: oklch(0.923 0.013 17.393);
--muted-foreground: oklch(0.418 0 173.29);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.082 0.015 20.892);
--card: oklch(1 0 180);
--card-foreground: oklch(0.082 0.015 20.892);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.59 0 164.055);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.59 0 164.055);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.59 0 164.055);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.56 0.217 29.737);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.59 0 164.055);
--chart-1: oklch(0.59 0 164.055);
--chart-2: oklch(0.59 0 164.055);
--chart-3: oklch(0.59 0 164.055);
--chart-4: oklch(0.615 0 180);
--chart-5: oklch(0.583 0.009 17.421);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.135 0.018 19.686);
--foreground: oklch(0.983 0.003 17.215);
--muted: oklch(0.194 0.02 19.062);
--muted-foreground: oklch(0.765 0 172.405);
--popover: oklch(0.135 0.018 19.686);
--popover-foreground: oklch(0.983 0.003 17.215);
--card: oklch(0.135 0.018 19.686);
--card-foreground: oklch(0.983 0.003 17.215);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.59 0 164.055);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.59 0 164.055);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.59 0 164.055);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.624 0.223 29.249);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.59 0 164.055);
--chart-1: oklch(0.59 0 164.055);
--chart-2: oklch(0.59 0 164.055);
--chart-3: oklch(0.59 0 164.055);
--chart-4: oklch(0.615 0 180);
--chart-5: oklch(0.583 0.009 17.421);
}