Constellation is a shadcn/ui theme built around a green primary color (#a5c71f) with indigo accents (#401fc7). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#a5c71f) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #070802black | #fdfdfcwhite |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #030401black | #ffffffwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #070802black | #fdfdfcwhite |
| Primary | #a5c71fyellowgreen | #a5c71fyellowgreen |
| Primary foreground | #121603black | #121603black |
| Secondary | #401fc7rebeccapurple | #401fc7rebeccapurple |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e6e3f2lavender | #100d1cblack |
| Muted foreground | #5b5964dimgray | #9d9ba6darkgray |
| Accent | #401fc7rebeccapurple | #401fc7rebeccapurple |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #731c0cmaroon | #e83f21orangered |
| Destructive foreground | #f8c3balightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #a5c71fyellowgreen | #a5c71fyellowgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.10:1 | AAA |
| Text on card | 20.11:1 | AAA |
| Primary button | 9.41:1 | AAA |
| Secondary button | 9.38:1 | AAA |
| Muted text | 5.45:1 | AA |
| Accent | 9.38:1 | AAA |
| Destructive | 7.10:1 | AAA |
| Text on background | 20.63:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 9.41:1 | AAA |
| Secondary button | 9.38:1 | AAA |
| Muted text | 6.99:1 | AA |
| Accent | 9.38:1 | AAA |
| Destructive | 4.06:1 | AA Large |
Paste this into your globals.css to use Constellation in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.129 0.018 116.125);
--muted: oklch(0.924 0.019 295.191);
--muted-foreground: oklch(0.469 0.018 294.857);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.129 0.018 116.125);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.103 0.014 116.125);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.776 0.18 121.408);
--primary-foreground: oklch(0.191 0.036 118.589);
--secondary: oklch(0.422 0.232 278.878);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.422 0.232 278.878);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.37 0.124 32.345);
--destructive-foreground: oklch(0.862 0.062 29.899);
--ring: oklch(0.776 0.18 121.408);
--chart-1: oklch(0.776 0.18 121.408);
--chart-2: oklch(0.422 0.232 278.878);
--chart-3: oklch(0.422 0.232 278.878);
--chart-4: oklch(0.442 0.244 278.714);
--chart-5: oklch(0.786 0.184 121.597);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.994 0.002 115.616);
--muted: oklch(0.172 0.029 292.197);
--muted-foreground: oklch(0.695 0.017 295.139);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.994 0.002 115.616);
--card: oklch(0.092 0 180);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.776 0.18 121.408);
--primary-foreground: oklch(0.191 0.036 118.589);
--secondary: oklch(0.422 0.232 278.878);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.422 0.232 278.878);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.617 0.209 32.322);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.776 0.18 121.408);
--chart-1: oklch(0.776 0.18 121.408);
--chart-2: oklch(0.422 0.232 278.878);
--chart-3: oklch(0.422 0.232 278.878);
--chart-4: oklch(0.442 0.244 278.714);
--chart-5: oklch(0.786 0.184 121.597);
}