Celestial is a shadcn/ui theme built around a vivid red primary color (#e95379) with muted deep blue accents (#2b2f3b). The light mode uses a blue-tinted background (#0b0c0f). Dark mode keeps the vivid red primary (#e95379) on a blue-tinted background (#0b0c0f).
| Token | Light | Dark |
|---|---|---|
| Background | #0b0c0fblack | #0b0c0fblack |
| Foreground | #bababasilver | #bababasilver |
| Card | #070709black | #070709black |
| Card foreground | #c7c7c7silver | #c7c7c7silver |
| Popover | #040506black | #040506black |
| Popover foreground | #d4d4d4lightgrey | #d4d4d4lightgrey |
| Primary | #e95379indianred | #e95379indianred |
| Primary foreground | #000000black | #000000black |
| Secondary | #532d36darkslategray | #532d36darkslategray |
| Secondary foreground | #e4cdd3lightgrey | #e4cdd3lightgrey |
| Muted | #22242bdarkslategray | #22242bdarkslategray |
| Muted foreground | #9ba0b0darkgray | #9ba0b0darkgray |
| Accent | #2b2f3bdarkslategray | #2b2f3bdarkslategray |
| Accent foreground | #c4c8d4lightgrey | #c4c8d4lightgrey |
| Destructive | #ec3722orangered | #ec3722orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #18191bblack | #18191bblack |
| Input | #1f2023black | #1f2023black |
| Ring | #e95379indianred | #e95379indianred |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 10.09:1 | AAA |
| Text on card | 11.91:1 | AAA |
| Primary button | 5.98:1 | AA |
| Secondary button | 7.80:1 | AAA |
| Muted text | 5.94:1 | AA |
| Accent | 7.96:1 | AAA |
| Destructive | 4.09:1 | AA Large |
| Text on background | 10.09:1 | AAA |
| Text on card | 11.91:1 | AAA |
| Primary button | 5.98:1 | AA |
| Secondary button | 7.80:1 | AAA |
| Muted text | 5.94:1 | AA |
| Accent | 7.96:1 | AAA |
| Destructive | 4.09:1 | AA Large |
Paste this into your globals.css to use Celestial in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.154 0.006 270.981);
--foreground: oklch(0.789 0 171.254);
--muted: oklch(0.261 0.013 270.863);
--muted-foreground: oklch(0.708 0.024 271.061);
--popover: oklch(0.113 0.004 269.758);
--popover-foreground: oklch(0.869 0 165.964);
--card: oklch(0.129 0.005 269.758);
--card-foreground: oklch(0.829 0 180);
--border: oklch(0.213 0.004 271.233);
--input: oklch(0.245 0.005 271.216);
--primary: oklch(0.653 0.185 8.687);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.348 0.058 4.424);
--secondary-foreground: oklch(0.87 0.027 0.719);
--accent: oklch(0.307 0.021 270.631);
--accent-foreground: oklch(0.834 0.016 271.216);
--destructive: oklch(0.617 0.219 30.451);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.653 0.185 8.687);
--chart-1: oklch(0.653 0.185 8.687);
--chart-2: oklch(0.348 0.058 4.424);
--chart-3: oklch(0.307 0.021 270.631);
--chart-4: oklch(0.375 0.063 4.525);
--chart-5: oklch(0.654 0.192 9.109);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.154 0.006 270.981);
--foreground: oklch(0.789 0 171.254);
--muted: oklch(0.261 0.013 270.863);
--muted-foreground: oklch(0.708 0.024 271.061);
--popover: oklch(0.113 0.004 269.758);
--popover-foreground: oklch(0.869 0 165.964);
--card: oklch(0.129 0.005 269.758);
--card-foreground: oklch(0.829 0 180);
--border: oklch(0.213 0.004 271.233);
--input: oklch(0.245 0.005 271.216);
--primary: oklch(0.653 0.185 8.687);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.348 0.058 4.424);
--secondary-foreground: oklch(0.87 0.027 0.719);
--accent: oklch(0.307 0.021 270.631);
--accent-foreground: oklch(0.834 0.016 271.216);
--destructive: oklch(0.617 0.219 30.451);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.653 0.185 8.687);
--chart-1: oklch(0.653 0.185 8.687);
--chart-2: oklch(0.348 0.058 4.424);
--chart-3: oklch(0.307 0.021 270.631);
--chart-4: oklch(0.375 0.063 4.525);
--chart-5: oklch(0.654 0.192 9.109);
}