Sweltering is a shadcn/ui theme built around a deep indigo primary color (#151259) with deep green accents (#125915). The light mode uses a neutral background (#f7f7fd). Dark mode keeps the deep indigo primary (#151259) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #f7f7fdghostwhite | #000000black |
| Foreground | #050510black | #f6f6f9whitesmoke |
| Card | #f3f3fcaliceblue | #030303black |
| Card foreground | #04040cblack | #f9f9fbghostwhite |
| Popover | #f3f3fcaliceblue | #030303black |
| Popover foreground | #04040cblack | #f9f9fbghostwhite |
| Primary | #151259midnightblue | #151259midnightblue |
| Primary foreground | #b1afeflightsteelblue | #b1afeflightsteelblue |
| Secondary | #591512maroon | #591512maroon |
| Secondary foreground | #efb1aflightpink | #efb1aflightpink |
| Muted | #e9e7e7linen | #181616black |
| Muted foreground | #5a5353dimgray | #aca5a5darkgray |
| Accent | #125915darkgreen | #125915darkgreen |
| Accent foreground | #afefb1palegreen | #afefb1palegreen |
| Destructive | #a12012firebrick | #e73623crimson |
| Destructive foreground | #fceae8linen | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #151259midnightblue | #151259midnightblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.98:1 | AAA |
| Text on card | 18.50:1 | AAA |
| Primary button | 8.11:1 | AAA |
| Secondary button | 7.53:1 | AAA |
| Muted text | 6.09:1 | AA |
| Accent | 6.41:1 | AA |
| Destructive | 6.63:1 | AA |
| Text on background | 19.46:1 | AAA |
| Text on card | 19.66:1 | AAA |
| Primary button | 8.11:1 | AAA |
| Secondary button | 7.53:1 | AAA |
| Muted text | 7.46:1 | AAA |
| Accent | 6.41:1 | AA |
| Destructive | 4.25:1 | AA Large |
Paste this into your globals.css to use Sweltering in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.978 0.008 287.788);
--foreground: oklch(0.122 0.027 283.784);
--muted: oklch(0.929 0.003 19.649);
--muted-foreground: oklch(0.45 0.009 19.885);
--popover: oklch(0.966 0.012 287.709);
--popover-foreground: oklch(0.11 0.023 284.151);
--card: oklch(0.966 0.012 287.709);
--card-foreground: oklch(0.11 0.023 284.151);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.247 0.121 274.461);
--primary-foreground: oklch(0.777 0.091 285.612);
--secondary: oklch(0.311 0.1 26.768);
--secondary-foreground: oklch(0.816 0.073 21.022);
--accent: oklch(0.406 0.121 143.319);
--accent-foreground: oklch(0.892 0.106 145.436);
--destructive: oklch(0.461 0.166 30.485);
--destructive-foreground: oklch(0.951 0.02 25.175);
--ring: oklch(0.247 0.121 274.461);
--chart-1: oklch(0.247 0.121 274.461);
--chart-2: oklch(0.311 0.1 26.768);
--chart-3: oklch(0.406 0.121 143.319);
--chart-4: oklch(0.34 0.111 26.967);
--chart-5: oklch(0.246 0.125 273.583);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.973 0.004 287.859);
--muted: oklch(0.202 0.004 19.91);
--muted-foreground: oklch(0.728 0.008 19.756);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(0.982 0.003 287.886);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.982 0.003 287.886);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.247 0.121 274.461);
--primary-foreground: oklch(0.777 0.091 285.612);
--secondary: oklch(0.311 0.1 26.768);
--secondary-foreground: oklch(0.816 0.073 21.022);
--accent: oklch(0.406 0.121 143.319);
--accent-foreground: oklch(0.892 0.106 145.436);
--destructive: oklch(0.607 0.215 30.434);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.247 0.121 274.461);
--chart-1: oklch(0.247 0.121 274.461);
--chart-2: oklch(0.311 0.1 26.768);
--chart-3: oklch(0.406 0.121 143.319);
--chart-4: oklch(0.34 0.111 26.967);
--chart-5: oklch(0.246 0.125 273.583);
}