Sweat is a shadcn/ui theme built around a near-black primary color (#030407) with muted light blue accents (#e3e4e8). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#030407) on a neutral background (#020308).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #020308black |
| Foreground | #030617black | #f8f9fcghostwhite |
| Card | #fcfcfcsnow | #04050cblack |
| Card foreground | #020512black | #fbfcfdwhite |
| Popover | #ffffffwhite | #020308black |
| Popover foreground | #030617black | #f8f9fcghostwhite |
| Primary | #030407black | #030407black |
| Primary foreground | #bdc3e5lightsteelblue | #bdc3e5lightsteelblue |
| Secondary | #e3e4e8gainsboro | #252732darkslategray |
| Secondary foreground | #464853darkslategray | #bcbecdsilver |
| Muted | #eff0f6whitesmoke | #090a10black |
| Muted foreground | #54565fdimgray | #a0a2abdarkgray |
| Accent | #e3e4e8gainsboro | #252732darkslategray |
| Accent foreground | #464853darkslategray | #bcbecdsilver |
| Destructive | #882307darkred | #e43b0corangered |
| Destructive foreground | #fcd1c5peachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #030407black | #030407black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.14:1 | AAA |
| Text on card | 19.89:1 | AAA |
| Primary button | 11.83:1 | AAA |
| Secondary button | 7.15:1 | AAA |
| Muted text | 6.41:1 | AA |
| Accent | 7.15:1 | AAA |
| Destructive | 6.59:1 | AA |
| Text on background | 19.55:1 | AAA |
| Text on card | 19.84:1 | AAA |
| Primary button | 11.83:1 | AAA |
| Secondary button | 8.06:1 | AAA |
| Muted text | 7.75:1 | AAA |
| Accent | 8.06:1 | AAA |
| Destructive | 4.27:1 | AA Large |
Paste this into your globals.css to use Sweat in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.129 0.039 268.674);
--muted: oklch(0.956 0.008 278.198);
--muted-foreground: oklch(0.453 0.015 277.821);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.129 0.039 268.674);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.119 0.034 268.223);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.104 0.013 273.638);
--primary-foreground: oklch(0.824 0.049 277.391);
--secondary: oklch(0.92 0.005 278.244);
--secondary-foreground: oklch(0.405 0.018 277.652);
--accent: oklch(0.92 0.005 278.244);
--accent-foreground: oklch(0.405 0.018 277.652);
--destructive: oklch(0.416 0.14 34.818);
--destructive-foreground: oklch(0.894 0.052 35.955);
--ring: oklch(0.104 0.013 273.638);
--chart-1: oklch(0.104 0.013 273.638);
--chart-2: oklch(0.92 0.005 278.244);
--chart-3: oklch(0.92 0.005 278.244);
--chart-4: oklch(0.944 0.003 278.268);
--chart-5: oklch(0.103 0.014 273.213);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.101 0.017 272.143);
--foreground: oklch(0.981 0.004 278.253);
--muted: oklch(0.148 0.013 276.822);
--muted-foreground: oklch(0.714 0.013 278.044);
--popover: oklch(0.101 0.017 272.143);
--popover-foreground: oklch(0.981 0.004 278.253);
--card: oklch(0.116 0.019 272.216);
--card-foreground: oklch(0.991 0.002 278.286);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.104 0.013 273.638);
--primary-foreground: oklch(0.824 0.049 277.391);
--secondary: oklch(0.275 0.021 277.113);
--secondary-foreground: oklch(0.805 0.021 277.925);
--accent: oklch(0.275 0.021 277.113);
--accent-foreground: oklch(0.805 0.021 277.925);
--destructive: oklch(0.605 0.211 34.185);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.104 0.013 273.638);
--chart-1: oklch(0.104 0.013 273.638);
--chart-2: oklch(0.275 0.021 277.113);
--chart-3: oklch(0.275 0.021 277.113);
--chart-4: oklch(0.303 0.024 277.058);
--chart-5: oklch(0.103 0.014 273.213);
}