Absent Light (rainglow) is a shadcn/ui theme built around a muted blue primary color (#475462) with neutral gray accents (#d9d9d9). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted blue primary (#475462) on a neutral background (#ffffff).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #ffffffwhite |
| Foreground | #475462darkslategray | #475462darkslategray |
| Card | #fafafasnow | #fafafasnow |
| Card foreground | #3c4753darkslategray | #3c4753darkslategray |
| Popover | #f7f7f7whitesmoke | #f7f7f7whitesmoke |
| Popover foreground | #313b44darkslategray | #313b44darkslategray |
| Primary | #475462darkslategray | #475462darkslategray |
| Primary foreground | #eaedf0lavender | #eaedf0lavender |
| Secondary | #bbbfc3silver | #bbbfc3silver |
| Secondary foreground | #242629darkslategray | #242629darkslategray |
| Muted | #e9e2e2gainsboro | #e9e2e2gainsboro |
| Muted foreground | #564343darkslategray | #564343darkslategray |
| Accent | #d9d9d9gainsboro | #d9d9d9gainsboro |
| Accent foreground | #404040darkslategray | #404040darkslategray |
| Destructive | #a50d0ddarkred | #a50d0ddarkred |
| Destructive foreground | #fde7e7mistyrose | #fde7e7mistyrose |
| Border | #f2f2f2whitesmoke | #f2f2f2whitesmoke |
| Input | #ebebeblinen | #ebebeblinen |
| Ring | #475462darkslategray | #475462darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 7.74:1 | AAA |
| Text on card | 9.06:1 | AAA |
| Primary button | 6.58:1 | AA |
| Secondary button | 8.22:1 | AAA |
| Muted text | 7.22:1 | AAA |
| Accent | 7.32:1 | AAA |
| Destructive | 6.65:1 | AA |
| Text on background | 7.74:1 | AAA |
| Text on card | 9.06:1 | AAA |
| Primary button | 6.58:1 | AA |
| Secondary button | 8.22:1 | AAA |
| Muted text | 7.22:1 | AAA |
| Accent | 7.32:1 | AAA |
| Destructive | 6.65:1 | AA |
Paste this into your globals.css to use Absent Light (rainglow) in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.44 0.028 248.463);
--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.346 0.021 248.425);
--card: oklch(0.985 0 180);
--card-foreground: oklch(0.394 0.024 248.447);
--border: oklch(0.962 0 180);
--input: oklch(0.939 0 180);
--primary: oklch(0.44 0.028 248.463);
--primary-foreground: oklch(0.945 0.005 247.876);
--secondary: oklch(0.804 0.007 247.911);
--secondary-foreground: oklch(0.268 0.005 248.03);
--accent: oklch(0.885 0 180);
--accent-foreground: oklch(0.371 0 168.69);
--destructive: oklch(0.459 0.181 28.382);
--destructive-foreground: oklch(0.947 0.024 17.579);
--ring: oklch(0.44 0.028 248.463);
--chart-1: oklch(0.44 0.028 248.463);
--chart-2: oklch(0.804 0.007 247.911);
--chart-3: oklch(0.885 0 180);
--chart-4: oklch(0.828 0.006 247.897);
--chart-5: oklch(0.439 0.033 248.588);
}
.dark {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.44 0.028 248.463);
--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.346 0.021 248.425);
--card: oklch(0.985 0 180);
--card-foreground: oklch(0.394 0.024 248.447);
--border: oklch(0.962 0 180);
--input: oklch(0.939 0 180);
--primary: oklch(0.44 0.028 248.463);
--primary-foreground: oklch(0.945 0.005 247.876);
--secondary: oklch(0.804 0.007 247.911);
--secondary-foreground: oklch(0.268 0.005 248.03);
--accent: oklch(0.885 0 180);
--accent-foreground: oklch(0.371 0 168.69);
--destructive: oklch(0.459 0.181 28.382);
--destructive-foreground: oklch(0.947 0.024 17.579);
--ring: oklch(0.44 0.028 248.463);
--chart-1: oklch(0.44 0.028 248.463);
--chart-2: oklch(0.804 0.007 247.911);
--chart-3: oklch(0.885 0 180);
--chart-4: oklch(0.828 0.006 247.897);
--chart-5: oklch(0.439 0.033 248.588);
}