Chafe is a shadcn/ui theme built around a deep yellow primary color (#32310b) with deep indigo accents (#0b0c32). The light mode uses a neutral background (#fdfdf7). Dark mode keeps the deep yellow primary (#32310b) on a yellow-tinted background (#101004).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfdf7snow | #101004black |
| Foreground | #0d0d03black | #fdfdfcwhite |
| Card | #fcfcf2floralwhite | #141405black |
| Card foreground | #080802black | #ffffffwhite |
| Popover | #fcfcf2floralwhite | #141405black |
| Popover foreground | #080802black | #ffffffwhite |
| Primary | #32310bblack | #32310bblack |
| Primary foreground | #d2cf37goldenrod | #d2cf37goldenrod |
| Secondary | #0b0c32black | #0b0c32black |
| Secondary foreground | #8b8ce5mediumpurple | #8b8ce5mediumpurple |
| Muted | #c9cae8thistle | #171736midnightblue |
| Muted foreground | #565661dimgray | #9e9ea9darkgray |
| Accent | #0b0c32black | #0b0c32black |
| Accent foreground | #8b8ce5mediumpurple | #8b8ce5mediumpurple |
| Destructive | #962408saddlebrown | #ed390corangered |
| Destructive foreground | #fddcd3antiquewhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #32310bblack | #32310bblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.13:1 | AAA |
| Text on card | 19.48:1 | AAA |
| Primary button | 8.03:1 | AAA |
| Secondary button | 6.27:1 | AA |
| Muted text | 4.52:1 | AA |
| Accent | 6.27:1 | AA |
| Destructive | 6.38:1 | AA |
| Text on background | 18.78:1 | AAA |
| Text on card | 18.53:1 | AAA |
| Primary button | 8.03:1 | AAA |
| Secondary button | 6.27:1 | AA |
| Muted text | 6.51:1 | AA |
| Accent | 6.27:1 | AA |
| Destructive | 4.02:1 | AA Large |
Paste this into your globals.css to use Chafe in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.993 0.009 105.77);
--foreground: oklch(0.153 0.024 108.231);
--muted: oklch(0.848 0.042 284.704);
--muted-foreground: oklch(0.459 0.017 284.916);
--popover: oklch(0.989 0.013 105.846);
--popover-foreground: oklch(0.133 0.021 108.3);
--card: oklch(0.989 0.013 105.846);
--card-foreground: oklch(0.133 0.021 108.3);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.306 0.056 108.34);
--primary-foreground: oklch(0.831 0.163 108.487);
--secondary: oklch(0.184 0.073 275.75);
--secondary-foreground: oklch(0.677 0.129 281.623);
--accent: oklch(0.184 0.073 275.75);
--accent-foreground: oklch(0.677 0.129 281.623);
--destructive: oklch(0.445 0.154 33.925);
--destructive-foreground: oklch(0.919 0.039 34.317);
--ring: oklch(0.306 0.056 108.34);
--chart-1: oklch(0.306 0.056 108.34);
--chart-2: oklch(0.184 0.073 275.75);
--chart-3: oklch(0.184 0.073 275.75);
--chart-4: oklch(0.206 0.088 274.772);
--chart-5: oklch(0.309 0.057 108.38);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.169 0.025 107.991);
--foreground: oklch(0.994 0.002 105.644);
--muted: oklch(0.225 0.057 279.988);
--muted-foreground: oklch(0.702 0.016 285.212);
--popover: oklch(0.187 0.028 108.005);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.187 0.028 108.005);
--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.306 0.056 108.34);
--primary-foreground: oklch(0.831 0.163 108.487);
--secondary: oklch(0.184 0.073 275.75);
--secondary-foreground: oklch(0.677 0.129 281.623);
--accent: oklch(0.184 0.073 275.75);
--accent-foreground: oklch(0.677 0.129 281.623);
--destructive: oklch(0.621 0.221 33.465);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.306 0.056 108.34);
--chart-1: oklch(0.306 0.056 108.34);
--chart-2: oklch(0.184 0.073 275.75);
--chart-3: oklch(0.184 0.073 275.75);
--chart-4: oklch(0.206 0.088 274.772);
--chart-5: oklch(0.309 0.057 108.38);
}