Infinite is a shadcn/ui theme built around a vivid deep red primary color (#2c0204) with vivid deep indigo accents (#02042c). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep red primary (#2c0204) on a neutral background (#040202).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040202black |
| Foreground | #100405black | #fdfcfcsnow |
| Card | #fcfcfcsnow | #070303black |
| Card foreground | #0c0304black | #ffffffwhite |
| Popover | #fcfcfcsnow | #070303black |
| Popover foreground | #0c0304black | #ffffffwhite |
| Primary | #2c0204black | #2c0204black |
| Primary foreground | #f76970salmon | #f76970salmon |
| Secondary | #042c02black | #042c02black |
| Secondary foreground | #18ed0clime | #18ed0clime |
| Muted | #d1e7d0gainsboro | #192f18black |
| Muted foreground | #586558dimgray | #9ba79adarkgray |
| Accent | #02042cblack | #02042cblack |
| Accent foreground | #caccfclavender | #caccfclavender |
| Destructive | #a32a05firebrick | #f84712orangered |
| Destructive foreground | #fee4dcmistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #2c0204black | #2c0204black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.16:1 | AAA |
| Text on card | 19.94:1 | AAA |
| Primary button | 6.45:1 | AA |
| Secondary button | 9.66:1 | AAA |
| Muted text | 4.69:1 | AA |
| Accent | 12.81:1 | AAA |
| Destructive | 5.99:1 | AA |
| Text on background | 20.26:1 | AAA |
| Text on card | 20.50:1 | AAA |
| Primary button | 6.45:1 | AA |
| Secondary button | 9.66:1 | AAA |
| Muted text | 5.70:1 | AA |
| Accent | 12.81:1 | AAA |
| Destructive | 3.56:1 | AA Large |
Paste this into your globals.css to use Infinite in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.132 0.025 16.626);
--muted: oklch(0.905 0.04 143.871);
--muted-foreground: oklch(0.492 0.026 143.817);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.119 0.021 16.161);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.119 0.021 16.161);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.189 0.069 23.318);
--primary-foreground: oklch(0.698 0.175 19.798);
--secondary: oklch(0.255 0.081 141.912);
--secondary-foreground: oklch(0.822 0.276 142.348);
--accent: oklch(0.149 0.079 268.354);
--accent-foreground: oklch(0.86 0.066 282.536);
--destructive: oklch(0.474 0.163 35.024);
--destructive-foreground: oklch(0.938 0.03 37.625);
--ring: oklch(0.189 0.069 23.318);
--chart-1: oklch(0.189 0.069 23.318);
--chart-2: oklch(0.255 0.081 141.912);
--chart-3: oklch(0.149 0.079 268.354);
--chart-4: oklch(0.304 0.098 142.048);
--chart-5: oklch(0.189 0.072 23.75);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.086 0.009 14.963);
--foreground: oklch(0.992 0.001 13.625);
--muted: oklch(0.281 0.051 143.012);
--muted-foreground: oklch(0.715 0.024 143.935);
--popover: oklch(0.108 0.012 14.963);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.108 0.012 14.963);
--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.189 0.069 23.318);
--primary-foreground: oklch(0.698 0.175 19.798);
--secondary: oklch(0.255 0.081 141.912);
--secondary-foreground: oklch(0.822 0.276 142.348);
--accent: oklch(0.149 0.079 268.354);
--accent-foreground: oklch(0.86 0.066 282.536);
--destructive: oklch(0.65 0.22 35.186);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.189 0.069 23.318);
--chart-1: oklch(0.189 0.069 23.318);
--chart-2: oklch(0.255 0.081 141.912);
--chart-3: oklch(0.149 0.079 268.354);
--chart-4: oklch(0.304 0.098 142.048);
--chart-5: oklch(0.189 0.072 23.75);
}