Chinolor is a shadcn/ui theme built around a near-white primary color (#ffffff) with neutral gray accents (#4e5a50). The light mode uses a neutral background (#2b312c). Dark mode keeps the near-white primary (#ffffff) on a neutral background (#2b312c).
| Token | Light | Dark |
|---|---|---|
| Background | #2b312cdarkslategray | #2b312cdarkslategray |
| Foreground | #e4dfd8gainsboro | #e4dfd8gainsboro |
| Card | #262c27darkslategray | #262c27darkslategray |
| Card foreground | #eeece7linen | #eeece7linen |
| Popover | #242924darkslategray | #242924darkslategray |
| Popover foreground | #f9f8f6whitesmoke | #f9f8f6whitesmoke |
| Primary | #ffffffwhite | #ffffffwhite |
| Primary foreground | #333333darkslategray | #333333darkslategray |
| Secondary | #404040darkslategray | #404040darkslategray |
| Secondary foreground | #d9d9d9gainsboro | #d9d9d9gainsboro |
| Muted | #313f34darkslategray | #313f34darkslategray |
| Muted foreground | #afc0b2silver | #afc0b2silver |
| Accent | #4e5a50darkslategray | #4e5a50darkslategray |
| Accent foreground | #eceeecwhitesmoke | #eceeecwhitesmoke |
| Destructive | #fe0e01red | #fe0e01red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #3b3b3bdarkslategray | #3b3b3bdarkslategray |
| Input | #424242darkslategray | #424242darkslategray |
| Ring | #ffffffwhite | #ffffffwhite |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 10.03:1 | AAA |
| Text on card | 12.12:1 | AAA |
| Primary button | 12.63:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 5.82:1 | AA |
| Accent | 6.19:1 | AA |
| Destructive | 3.98:1 | AA Large |
| Text on background | 10.03:1 | AAA |
| Text on card | 12.12:1 | AAA |
| Primary button | 12.63:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 5.82:1 | AA |
| Accent | 6.19:1 | AA |
| Destructive | 3.98:1 | AA Large |
Paste this into your globals.css to use Chinolor in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.305 0.013 150.223);
--foreground: oklch(0.906 0.012 79.908);
--muted: oklch(0.351 0.026 149.75);
--muted-foreground: oklch(0.791 0.027 150.338);
--popover: oklch(0.274 0.011 150.25);
--popover-foreground: oklch(0.979 0.003 79.929);
--card: oklch(0.284 0.012 150.24);
--card-foreground: oklch(0.943 0.007 79.92);
--border: oklch(0.351 0 167.471);
--input: oklch(0.38 0 180);
--primary: oklch(1 0 180);
--primary-foreground: oklch(0.321 0 180);
--secondary: oklch(0.371 0 168.69);
--secondary-foreground: oklch(0.885 0 180);
--accent: oklch(0.454 0.022 150.152);
--accent-foreground: oklch(0.948 0.004 150.766);
--destructive: oklch(0.628 0.254 29.605);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(1 0 180);
--chart-1: oklch(1 0 180);
--chart-2: oklch(0.371 0 168.69);
--chart-3: oklch(0.454 0.022 150.152);
--chart-4: oklch(0.399 0 180);
--chart-5: oklch(1 0 180);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.305 0.013 150.223);
--foreground: oklch(0.906 0.012 79.908);
--muted: oklch(0.351 0.026 149.75);
--muted-foreground: oklch(0.791 0.027 150.338);
--popover: oklch(0.274 0.011 150.25);
--popover-foreground: oklch(0.979 0.003 79.929);
--card: oklch(0.284 0.012 150.24);
--card-foreground: oklch(0.943 0.007 79.92);
--border: oklch(0.351 0 167.471);
--input: oklch(0.38 0 180);
--primary: oklch(1 0 180);
--primary-foreground: oklch(0.321 0 180);
--secondary: oklch(0.371 0 168.69);
--secondary-foreground: oklch(0.885 0 180);
--accent: oklch(0.454 0.022 150.152);
--accent-foreground: oklch(0.948 0.004 150.766);
--destructive: oklch(0.628 0.254 29.605);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(1 0 180);
--chart-1: oklch(1 0 180);
--chart-2: oklch(0.371 0 168.69);
--chart-3: oklch(0.454 0.022 150.152);
--chart-4: oklch(0.399 0 180);
--chart-5: oklch(1 0 180);
}