Rheumatism is a shadcn/ui theme built around a yellow primary color (#d6c78f) with purple accents (#c78fd6). The light mode uses a neutral background (#fdfdfc). Dark mode keeps the yellow primary (#d6c78f) on a yellow-tinted background (#100d04).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfdfcwhite | #100d04black |
| Foreground | #0d0b02black | #fdfdfcwhite |
| Card | #fcfbf8snow | #141105black |
| Card foreground | #090702black | #ffffffwhite |
| Popover | #fcfbf8snow | #141105black |
| Popover foreground | #090702black | #ffffffwhite |
| Primary | #d6c78fburlywood | #d6c78fburlywood |
| Primary foreground | #25200eblack | #25200eblack |
| Secondary | #8fd6c7skyblue | #8fd6c7skyblue |
| Secondary foreground | #0e2520black | #0e2520black |
| Muted | #dcefeblavender | #10231fblack |
| Muted foreground | #525252darkslategray | #adadaddarkgray |
| Accent | #c78fd6plum | #c78fd6plum |
| Accent foreground | #200e25black | #200e25black |
| Destructive | #d50101red | #fe2a2acrimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d6c78fburlywood | #d6c78fburlywood |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.35:1 | AAA |
| Text on card | 19.42:1 | AAA |
| Primary button | 9.61:1 | AAA |
| Secondary button | 9.69:1 | AAA |
| Muted text | 6.55:1 | AA |
| Accent | 7.21:1 | AAA |
| Destructive | 5.47:1 | AA |
| Text on background | 19.03:1 | AAA |
| Text on card | 18.89:1 | AAA |
| Primary button | 9.61:1 | AAA |
| Secondary button | 9.69:1 | AAA |
| Muted text | 7.27:1 | AAA |
| Accent | 7.21:1 | AAA |
| Destructive | 3.76:1 | AA Large |
Paste this into your globals.css to use Rheumatism in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.002 93.884);
--foreground: oklch(0.147 0.022 98.279);
--muted: oklch(0.938 0.022 181.411);
--muted-foreground: oklch(0.437 0 180);
--popover: oklch(0.987 0.004 93.904);
--popover-foreground: oklch(0.129 0.019 99.252);
--card: oklch(0.987 0.004 93.904);
--card-foreground: oklch(0.129 0.019 99.252);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.829 0.076 94.492);
--primary-foreground: oklch(0.245 0.032 94.331);
--secondary: oklch(0.826 0.075 179.186);
--secondary-foreground: oklch(0.245 0.032 177.493);
--accent: oklch(0.728 0.118 318.796);
--accent-foreground: oklch(0.202 0.053 318.618);
--destructive: oklch(0.549 0.225 29.194);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.829 0.076 94.492);
--chart-1: oklch(0.829 0.076 94.492);
--chart-2: oklch(0.826 0.075 179.186);
--chart-3: oklch(0.728 0.118 318.796);
--chart-4: oklch(0.842 0.069 179.558);
--chart-5: oklch(0.833 0.08 94.495);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.161 0.02 96.224);
--foreground: oklch(0.993 0.001 93.878);
--muted: oklch(0.24 0.027 178.236);
--muted-foreground: oklch(0.749 0 158.199);
--popover: oklch(0.177 0.023 95.29);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.177 0.023 95.29);
--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.829 0.076 94.492);
--primary-foreground: oklch(0.245 0.032 94.331);
--secondary: oklch(0.826 0.075 179.186);
--secondary-foreground: oklch(0.245 0.032 177.493);
--accent: oklch(0.728 0.118 318.796);
--accent-foreground: oklch(0.202 0.053 318.618);
--destructive: oklch(0.641 0.242 27.561);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.829 0.076 94.492);
--chart-1: oklch(0.829 0.076 94.492);
--chart-2: oklch(0.826 0.075 179.186);
--chart-3: oklch(0.728 0.118 318.796);
--chart-4: oklch(0.842 0.069 179.558);
--chart-5: oklch(0.833 0.08 94.495);
}