Andromeda is a shadcn/ui theme built around a muted violet primary color (#baafc0) with muted blue accents (#444a5a). The light mode uses a blue-tinted background (#23262f). Dark mode keeps the muted violet primary (#baafc0) on a blue-tinted background (#23262f).
| Token | Light | Dark |
|---|---|---|
| Background | #23262fdarkslategray | #23262fdarkslategray |
| Foreground | #d5ced9lightgrey | #d5ced9lightgrey |
| Card | #1f2129black | #1f2129black |
| Card foreground | #e1dce4gainsboro | #e1dce4gainsboro |
| Popover | #1d1f26black | #1d1f26black |
| Popover foreground | #eeebefwhitesmoke | #eeebefwhitesmoke |
| Primary | #baafc0silver | #baafc0silver |
| Primary foreground | #201b22black | #201b22black |
| Secondary | #403e41darkslategray | #403e41darkslategray |
| Secondary foreground | #d9d8dagainsboro | #d9d8dagainsboro |
| Muted | #2d3039darkslategray | #2d3039darkslategray |
| Muted foreground | #a9aebcdarkgray | #a9aebcdarkgray |
| Accent | #444a5adarkslategray | #444a5adarkslategray |
| Accent foreground | #e5e7eblavender | #e5e7eblavender |
| Destructive | #e7241dcrimson | #e7241dcrimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #333538darkslategray | #333538darkslategray |
| Input | #3b3c40darkslategray | #3b3c40darkslategray |
| Ring | #baafc0silver | #baafc0silver |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 9.82:1 | AAA |
| Text on card | 11.87:1 | AAA |
| Primary button | 8.04:1 | AAA |
| Secondary button | 7.41:1 | AAA |
| Muted text | 5.93:1 | AA |
| Accent | 7.15:1 | AAA |
| Destructive | 4.49:1 | AA Large |
| Text on background | 9.82:1 | AAA |
| Text on card | 11.87:1 | AAA |
| Primary button | 8.04:1 | AAA |
| Secondary button | 7.41:1 | AAA |
| Muted text | 5.93:1 | AA |
| Accent | 7.15:1 | AAA |
| Destructive | 4.49:1 | AA Large |
Paste this into your globals.css to use Andromeda in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.27 0.016 269.527);
--foreground: oklch(0.861 0.017 313.483);
--muted: oklch(0.31 0.017 269.597);
--muted-foreground: oklch(0.752 0.02 269.884);
--popover: oklch(0.24 0.014 269.567);
--popover-foreground: oklch(0.943 0.007 313.56);
--card: oklch(0.25 0.014 269.553);
--card-foreground: oklch(0.902 0.012 313.524);
--border: oklch(0.327 0.006 269.97);
--input: oklch(0.356 0.006 269.966);
--primary: oklch(0.769 0.027 314.026);
--primary-foreground: oklch(0.231 0.016 313.848);
--secondary: oklch(0.368 0.005 314.147);
--secondary-foreground: oklch(0.883 0.002 314.205);
--accent: oklch(0.41 0.028 269.422);
--accent-foreground: oklch(0.927 0.007 270.062);
--destructive: oklch(0.596 0.227 28.745);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.769 0.027 314.026);
--chart-1: oklch(0.769 0.027 314.026);
--chart-2: oklch(0.368 0.005 314.147);
--chart-3: oklch(0.41 0.028 269.422);
--chart-4: oklch(0.397 0.005 314.146);
--chart-5: oklch(0.766 0.034 313.977);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.27 0.016 269.527);
--foreground: oklch(0.861 0.017 313.483);
--muted: oklch(0.31 0.017 269.597);
--muted-foreground: oklch(0.752 0.02 269.884);
--popover: oklch(0.24 0.014 269.567);
--popover-foreground: oklch(0.943 0.007 313.56);
--card: oklch(0.25 0.014 269.553);
--card-foreground: oklch(0.902 0.012 313.524);
--border: oklch(0.327 0.006 269.97);
--input: oklch(0.356 0.006 269.966);
--primary: oklch(0.769 0.027 314.026);
--primary-foreground: oklch(0.231 0.016 313.848);
--secondary: oklch(0.368 0.005 314.147);
--secondary-foreground: oklch(0.883 0.002 314.205);
--accent: oklch(0.41 0.028 269.422);
--accent-foreground: oklch(0.927 0.007 270.062);
--destructive: oklch(0.596 0.227 28.745);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.769 0.027 314.026);
--chart-1: oklch(0.769 0.027 314.026);
--chart-2: oklch(0.368 0.005 314.147);
--chart-3: oklch(0.41 0.028 269.422);
--chart-4: oklch(0.397 0.005 314.146);
--chart-5: oklch(0.766 0.034 313.977);
}