Carbonight Light (rainglow) is a shadcn/ui theme built around a neutral gray primary color (#2d2b2a) with neutral gray accents (#d9d9d9). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#2d2b2a) on a neutral background (#ffffff).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #ffffffwhite |
| Foreground | #2d2b2adarkslategray | #2d2b2adarkslategray |
| Card | #fafafasnow | #fafafasnow |
| Card foreground | #201e1eblack | #201e1eblack |
| Popover | #f7f7f7whitesmoke | #f7f7f7whitesmoke |
| Popover foreground | #121211black | #121211black |
| Primary | #2d2b2adarkslategray | #2d2b2adarkslategray |
| Primary foreground | #c6c4c3silver | #c6c4c3silver |
| Secondary | #bfbfbfsilver | #bfbfbfsilver |
| Secondary foreground | #262626darkslategray | #262626darkslategray |
| Muted | #e9e2e2gainsboro | #e9e2e2gainsboro |
| Muted foreground | #564343darkslategray | #564343darkslategray |
| Accent | #d9d9d9gainsboro | #d9d9d9gainsboro |
| Accent foreground | #404040darkslategray | #404040darkslategray |
| Destructive | #730e0dmaroon | #730e0dmaroon |
| Destructive foreground | #f7bbbalightpink | #f7bbbalightpink |
| Border | #f2f2f2whitesmoke | #f2f2f2whitesmoke |
| Input | #ebebeblinen | #ebebeblinen |
| Ring | #2d2b2adarkslategray | #2d2b2adarkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 14.08:1 | AAA |
| Text on card | 15.88:1 | AAA |
| Primary button | 8.12:1 | AAA |
| Secondary button | 8.25:1 | AAA |
| Muted text | 7.22:1 | AAA |
| Accent | 7.32:1 | AAA |
| Destructive | 7.10:1 | AAA |
| Text on background | 14.08:1 | AAA |
| Text on card | 15.88:1 | AAA |
| Primary button | 8.12:1 | AAA |
| Secondary button | 8.25:1 | AAA |
| Muted text | 7.22:1 | AAA |
| Accent | 7.32:1 | AAA |
| Destructive | 7.10:1 | AAA |
Paste this into your globals.css to use Carbonight Light (rainglow) in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.29 0.003 48.626);
--muted: oklch(0.919 0.007 17.278);
--muted-foreground: oklch(0.404 0.025 18.259);
--popover: oklch(0.977 0 180);
--popover-foreground: oklch(0.181 0.001 48.658);
--card: oklch(0.985 0 180);
--card-foreground: oklch(0.237 0.002 48.637);
--border: oklch(0.962 0 180);
--input: oklch(0.939 0 180);
--primary: oklch(0.29 0.003 48.626);
--primary-foreground: oklch(0.821 0.003 48.704);
--secondary: oklch(0.805 0 169.695);
--secondary-foreground: oklch(0.27 0 180);
--accent: oklch(0.885 0 180);
--accent-foreground: oklch(0.371 0 168.69);
--destructive: oklch(0.358 0.134 27.952);
--destructive-foreground: oklch(0.847 0.07 19.75);
--ring: oklch(0.29 0.003 48.626);
--chart-1: oklch(0.29 0.003 48.626);
--chart-2: oklch(0.805 0 169.695);
--chart-3: oklch(0.885 0 180);
--chart-4: oklch(0.829 0 180);
--chart-5: oklch(0.29 0.006 48.507);
}
.dark {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.29 0.003 48.626);
--muted: oklch(0.919 0.007 17.278);
--muted-foreground: oklch(0.404 0.025 18.259);
--popover: oklch(0.977 0 180);
--popover-foreground: oklch(0.181 0.001 48.658);
--card: oklch(0.985 0 180);
--card-foreground: oklch(0.237 0.002 48.637);
--border: oklch(0.962 0 180);
--input: oklch(0.939 0 180);
--primary: oklch(0.29 0.003 48.626);
--primary-foreground: oklch(0.821 0.003 48.704);
--secondary: oklch(0.805 0 169.695);
--secondary-foreground: oklch(0.27 0 180);
--accent: oklch(0.885 0 180);
--accent-foreground: oklch(0.371 0 168.69);
--destructive: oklch(0.358 0.134 27.952);
--destructive-foreground: oklch(0.847 0.07 19.75);
--ring: oklch(0.29 0.003 48.626);
--chart-1: oklch(0.29 0.003 48.626);
--chart-2: oklch(0.805 0 169.695);
--chart-3: oklch(0.885 0 180);
--chart-4: oklch(0.829 0 180);
--chart-5: oklch(0.29 0.006 48.507);
}