Arstotzka Contrast (rainglow) is a shadcn/ui theme built around a muted light yellow primary color (#eeece7) with neutral gray accents (#37332f). The light mode uses a neutral background (#0e0d0c). Dark mode keeps the muted light yellow primary (#eeece7) on a neutral background (#0e0d0c).
| Token | Light | Dark |
|---|---|---|
| Background | #0e0d0cblack | #0e0d0cblack |
| Foreground | #eeece7linen | #eeece7linen |
| Card | #080807black | #080807black |
| Card foreground | #f9f8f6whitesmoke | #f9f8f6whitesmoke |
| Popover | #050505black | #050505black |
| Popover foreground | #ffffffwhite | #ffffffwhite |
| Primary | #eeece7linen | #eeece7linen |
| Primary foreground | #5f5745darkolivegreen | #5f5745darkolivegreen |
| Secondary | #44413cdarkslategray | #44413cdarkslategray |
| Secondary foreground | #dbdad6gainsboro | #dbdad6gainsboro |
| Muted | #2b2622darkslategray | #2b2622darkslategray |
| Muted foreground | #b0a69bdarkgray | #b0a69bdarkgray |
| Accent | #37332fdarkslategray | #37332fdarkslategray |
| Accent foreground | #d0ccc8lightgrey | #d0ccc8lightgrey |
| Destructive | #cf3617firebrick | #cf3617firebrick |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #1a1a1ablack | #1a1a1ablack |
| Input | #212121black | #212121black |
| Ring | #eeece7linen | #eeece7linen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 16.47:1 | AAA |
| Text on card | 18.89:1 | AAA |
| Primary button | 6.05:1 | AA |
| Secondary button | 7.24:1 | AAA |
| Muted text | 6.24:1 | AA |
| Accent | 7.85:1 | AAA |
| Destructive | 5.03:1 | AA |
| Text on background | 16.47:1 | AAA |
| Text on card | 18.89:1 | AAA |
| Primary button | 6.05:1 | AA |
| Secondary button | 7.24:1 | AAA |
| Muted text | 6.24:1 | AA |
| Accent | 7.85:1 | AAA |
| Destructive | 5.03:1 | AA |
Paste this into your globals.css to use Arstotzka Contrast (rainglow) in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.159 0.002 67.653);
--foreground: oklch(0.943 0.007 88.836);
--muted: oklch(0.273 0.011 67.352);
--muted-foreground: oklch(0.73 0.02 67.513);
--popover: oklch(0.116 0.002 68.807);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.133 0.002 68.807);
--card-foreground: oklch(0.979 0.002 88.807);
--border: oklch(0.216 0 180);
--input: oklch(0.248 0 173.29);
--primary: oklch(0.943 0.007 88.836);
--primary-foreground: oklch(0.459 0.03 89.012);
--secondary: oklch(0.377 0.01 88.934);
--secondary-foreground: oklch(0.888 0.005 88.825);
--accent: oklch(0.324 0.008 67.538);
--accent-foreground: oklch(0.847 0.006 67.74);
--destructive: oklch(0.564 0.194 32.877);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.943 0.007 88.836);
--chart-1: oklch(0.943 0.007 88.836);
--chart-2: oklch(0.377 0.01 88.934);
--chart-3: oklch(0.324 0.008 67.538);
--chart-4: oklch(0.407 0.011 88.936);
--chart-5: oklch(0.944 0.008 88.843);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.159 0.002 67.653);
--foreground: oklch(0.943 0.007 88.836);
--muted: oklch(0.273 0.011 67.352);
--muted-foreground: oklch(0.73 0.02 67.513);
--popover: oklch(0.116 0.002 68.807);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.133 0.002 68.807);
--card-foreground: oklch(0.979 0.002 88.807);
--border: oklch(0.216 0 180);
--input: oklch(0.248 0 173.29);
--primary: oklch(0.943 0.007 88.836);
--primary-foreground: oklch(0.459 0.03 89.012);
--secondary: oklch(0.377 0.01 88.934);
--secondary-foreground: oklch(0.888 0.005 88.825);
--accent: oklch(0.324 0.008 67.538);
--accent-foreground: oklch(0.847 0.006 67.74);
--destructive: oklch(0.564 0.194 32.877);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.943 0.007 88.836);
--chart-1: oklch(0.943 0.007 88.836);
--chart-2: oklch(0.377 0.01 88.934);
--chart-3: oklch(0.324 0.008 67.538);
--chart-4: oklch(0.407 0.011 88.936);
--chart-5: oklch(0.944 0.008 88.843);
}