Absent (rainglow) is a shadcn/ui theme built around a muted blue primary color (#afbac5) with muted blue accents (#45525f). The light mode uses a blue-tinted background (#242b32). Dark mode keeps the muted blue primary (#afbac5) on a blue-tinted background (#242b32).
| Token | Light | Dark |
|---|---|---|
| Background | #242b32darkslategray | #242b32darkslategray |
| Foreground | #afbac5silver | #afbac5silver |
| Card | #20262cdarkslategray | #20262cdarkslategray |
| Card foreground | #bec7d0silver | #bec7d0silver |
| Popover | #1e2429darkslategray | #1e2429darkslategray |
| Popover foreground | #cdd4dblightgrey | #cdd4dblightgrey |
| Primary | #afbac5silver | #afbac5silver |
| Primary foreground | #1c2126black | #1c2126black |
| Secondary | #3c4044darkslategray | #3c4044darkslategray |
| Secondary foreground | #d6d9dbgainsboro | #d6d9dbgainsboro |
| Muted | #2f363cdarkslategray | #2f363cdarkslategray |
| Muted foreground | #acb5besilver | #acb5besilver |
| Accent | #45525fdarkslategray | #45525fdarkslategray |
| Accent foreground | #e7ebeelavender | #e7ebeelavender |
| Destructive | #f54b29tomato | #f54b29tomato |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #35383bdarkslategray | #35383bdarkslategray |
| Input | #3c4044darkslategray | #3c4044darkslategray |
| Ring | #afbac5silver | #afbac5silver |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 7.22:1 | AAA |
| Text on card | 8.89:1 | AAA |
| Primary button | 8.23:1 | AAA |
| Secondary button | 7.39:1 | AAA |
| Muted text | 5.92:1 | AA |
| Accent | 6.71:1 | AA |
| Destructive | 3.55:1 | AA Large |
| Text on background | 7.22:1 | AAA |
| Text on card | 8.89:1 | AAA |
| Primary button | 8.23:1 | AAA |
| Secondary button | 7.39:1 | AAA |
| Muted text | 5.92:1 | AA |
| Accent | 6.71:1 | AA |
| Destructive | 3.55:1 | AA Large |
Paste this into your globals.css to use Absent (rainglow) in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.287 0.016 248.387);
--foreground: oklch(0.784 0.02 248.082);
--muted: oklch(0.328 0.014 248.267);
--muted-foreground: oklch(0.769 0.016 248.038);
--popover: oklch(0.256 0.014 248.359);
--popover-foreground: oklch(0.866 0.012 247.968);
--card: oklch(0.266 0.014 248.369);
--card-foreground: oklch(0.825 0.016 248.022);
--border: oklch(0.339 0.007 248.049);
--input: oklch(0.368 0.008 248.055);
--primary: oklch(0.784 0.02 248.082);
--primary-foreground: oklch(0.245 0.013 248.347);
--secondary: oklch(0.368 0.008 248.055);
--secondary-foreground: oklch(0.883 0.004 247.869);
--accent: oklch(0.431 0.027 248.461);
--accent-foreground: oklch(0.937 0.006 247.885);
--destructive: oklch(0.65 0.212 33.114);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.784 0.02 248.082);
--chart-1: oklch(0.784 0.02 248.082);
--chart-2: oklch(0.368 0.008 248.055);
--chart-3: oklch(0.431 0.027 248.461);
--chart-4: oklch(0.397 0.009 248.059);
--chart-5: oklch(0.783 0.024 248.13);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.287 0.016 248.387);
--foreground: oklch(0.784 0.02 248.082);
--muted: oklch(0.328 0.014 248.267);
--muted-foreground: oklch(0.769 0.016 248.038);
--popover: oklch(0.256 0.014 248.359);
--popover-foreground: oklch(0.866 0.012 247.968);
--card: oklch(0.266 0.014 248.369);
--card-foreground: oklch(0.825 0.016 248.022);
--border: oklch(0.339 0.007 248.049);
--input: oklch(0.368 0.008 248.055);
--primary: oklch(0.784 0.02 248.082);
--primary-foreground: oklch(0.245 0.013 248.347);
--secondary: oklch(0.368 0.008 248.055);
--secondary-foreground: oklch(0.883 0.004 247.869);
--accent: oklch(0.431 0.027 248.461);
--accent-foreground: oklch(0.937 0.006 247.885);
--destructive: oklch(0.65 0.212 33.114);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.784 0.02 248.082);
--chart-1: oklch(0.784 0.02 248.082);
--chart-2: oklch(0.368 0.008 248.055);
--chart-3: oklch(0.431 0.027 248.461);
--chart-4: oklch(0.397 0.009 248.059);
--chart-5: oklch(0.783 0.024 248.13);
}