Sweltering is a shadcn/ui theme built around a muted deep teal primary color (#0f1a16) with muted deep pink accents (#1a0f13). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep teal primary (#0f1a16) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #04100cblack | #fcfdfdwhite |
| Card | #ffffffwhite | #000000black |
| Card foreground | #04100cblack | #fcfdfdwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #04100cblack | #fcfdfdwhite |
| Primary | #0f1a16black | #0f1a16black |
| Primary foreground | #97c3b3darkgray | #97c3b3darkgray |
| Secondary | #1a0f13black | #1a0f13black |
| Secondary foreground | #c397a8rosybrown | #c397a8rosybrown |
| Muted | #efebedlinen | #141011black |
| Muted foreground | #5c5759dimgray | #a8a3a5darkgray |
| Accent | #1a0f13black | #1a0f13black |
| Accent foreground | #c397a8rosybrown | #c397a8rosybrown |
| Destructive | #631603maroon | #ef3506orangered |
| Destructive foreground | #fcaf9clightsalmon | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0f1a16black | #0f1a16black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.36:1 | AAA |
| Text on card | 19.36:1 | AAA |
| Primary button | 9.14:1 | AAA |
| Secondary button | 7.41:1 | AAA |
| Muted text | 6.00:1 | AA |
| Accent | 7.41:1 | AAA |
| Destructive | 7.11:1 | AAA |
| Text on background | 20.60:1 | AAA |
| Text on card | 20.60:1 | AAA |
| Primary button | 9.14:1 | AAA |
| Secondary button | 7.41:1 | AAA |
| Muted text | 7.60:1 | AAA |
| Accent | 7.41:1 | AAA |
| Destructive | 4.06:1 | AA Large |
Paste this into your globals.css to use Sweltering in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.16 0.022 169.96);
--muted: oklch(0.944 0.005 352.729);
--muted-foreground: oklch(0.461 0.008 353.043);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.16 0.022 169.96);
--card: oklch(1 0 180);
--card-foreground: oklch(0.16 0.022 169.96);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.205 0.018 169.725);
--primary-foreground: oklch(0.782 0.052 170.476);
--secondary: oklch(0.185 0.02 355.52);
--secondary-foreground: oklch(0.723 0.057 354.723);
--accent: oklch(0.185 0.02 355.52);
--accent-foreground: oklch(0.723 0.057 354.723);
--destructive: oklch(0.332 0.114 34.729);
--destructive-foreground: oklch(0.823 0.096 34.608);
--ring: oklch(0.205 0.018 169.725);
--chart-1: oklch(0.205 0.018 169.725);
--chart-2: oklch(0.185 0.02 355.52);
--chart-3: oklch(0.185 0.02 355.52);
--chart-4: oklch(0.216 0.027 355.901);
--chart-5: oklch(0.207 0.02 169.411);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.993 0.001 172.544);
--muted: oklch(0.178 0.008 353.794);
--muted-foreground: oklch(0.721 0.007 352.844);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.993 0.001 172.544);
--card: oklch(0 0 0);
--card-foreground: oklch(0.993 0.001 172.544);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.205 0.018 169.725);
--primary-foreground: oklch(0.782 0.052 170.476);
--secondary: oklch(0.185 0.02 355.52);
--secondary-foreground: oklch(0.723 0.057 354.723);
--accent: oklch(0.185 0.02 355.52);
--accent-foreground: oklch(0.723 0.057 354.723);
--destructive: oklch(0.619 0.225 33.034);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.205 0.018 169.725);
--chart-1: oklch(0.205 0.018 169.725);
--chart-2: oklch(0.185 0.02 355.52);
--chart-3: oklch(0.185 0.02 355.52);
--chart-4: oklch(0.216 0.027 355.901);
--chart-5: oklch(0.207 0.02 169.411);
}