Warm is a shadcn/ui theme built around a light purple primary color (#f3c9ec) with light green accents (#c9f3cf). The light mode uses a neutral background (#fcf8fb). Dark mode keeps the light purple primary (#f3c9ec) on a neutral background (#040103).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf8fbsnow | #040103black |
| Foreground | #0e020cblack | #ffffffwhite |
| Card | #fbf4faghostwhite | #080207black |
| Card foreground | #090108black | #ffffffwhite |
| Popover | #fcf8fbsnow | #040103black |
| Popover foreground | #0e020cblack | #ffffffwhite |
| Primary | #f3c9ecmistyrose | #f3c9ecmistyrose |
| Primary foreground | #701963purple | #701963purple |
| Secondary | #c9f3cfgainsboro | #c9f3cfgainsboro |
| Secondary foreground | #071d0ablack | #071d0ablack |
| Muted | #e0ebe1gainsboro | #141f15black |
| Muted foreground | #3e5141darkslategray | #aec1b1silver |
| Accent | #c9f3cfgainsboro | #c9f3cfgainsboro |
| Accent foreground | #071d0ablack | #071d0ablack |
| Destructive | #b00e03firebrick | #fc3a2corangered |
| Destructive foreground | #ffe8e6mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f3c9ecmistyrose | #f3c9ecmistyrose |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.29:1 | AAA |
| Text on card | 19.03:1 | AAA |
| Primary button | 7.15:1 | AAA |
| Secondary button | 14.44:1 | AAA |
| Muted text | 6.98:1 | AA |
| Accent | 14.44:1 | AAA |
| Destructive | 6.17:1 | AA |
| Text on background | 20.75:1 | AAA |
| Text on card | 20.51:1 | AAA |
| Primary button | 7.15:1 | AAA |
| Secondary button | 14.44:1 | AAA |
| Muted text | 8.92:1 | AAA |
| Accent | 14.44:1 | AAA |
| Destructive | 3.63:1 | AA Large |
Paste this into your globals.css to use Warm in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.983 0.007 330.337);
--foreground: oklch(0.12 0.04 332.384);
--muted: oklch(0.93 0.018 149.989);
--muted-foreground: oklch(0.413 0.035 149.08);
--popover: oklch(0.983 0.007 330.337);
--popover-foreground: oklch(0.12 0.04 332.384);
--card: oklch(0.974 0.01 330.384);
--card-foreground: oklch(0.104 0.035 331.807);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.882 0.066 331.177);
--primary-foreground: oklch(0.39 0.146 334.893);
--secondary: oklch(0.924 0.064 149.296);
--secondary-foreground: oklch(0.207 0.047 146.924);
--accent: oklch(0.924 0.064 149.296);
--accent-foreground: oklch(0.207 0.047 146.924);
--destructive: oklch(0.48 0.191 29.934);
--destructive-foreground: oklch(0.948 0.025 22.531);
--ring: oklch(0.882 0.066 331.177);
--chart-1: oklch(0.882 0.066 331.177);
--chart-2: oklch(0.924 0.064 149.296);
--chart-3: oklch(0.924 0.064 149.296);
--chart-4: oklch(0.941 0.05 149.538);
--chart-5: oklch(0.882 0.069 331.22);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.086 0.017 331.259);
--foreground: oklch(1 0 180);
--muted: oklch(0.226 0.025 148.657);
--muted-foreground: oklch(0.792 0.03 149.743);
--popover: oklch(0.086 0.017 331.259);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.109 0.022 331.259);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.882 0.066 331.177);
--primary-foreground: oklch(0.39 0.146 334.893);
--secondary: oklch(0.924 0.064 149.296);
--secondary-foreground: oklch(0.207 0.047 146.924);
--accent: oklch(0.924 0.064 149.296);
--accent-foreground: oklch(0.207 0.047 146.924);
--destructive: oklch(0.647 0.23 29.212);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.882 0.066 331.177);
--chart-1: oklch(0.882 0.066 331.177);
--chart-2: oklch(0.924 0.064 149.296);
--chart-3: oklch(0.924 0.064 149.296);
--chart-4: oklch(0.941 0.05 149.538);
--chart-5: oklch(0.882 0.069 331.22);
}