Andromeda Light for shadcn/ui

Andromeda Light is a shadcn/ui theme built around a muted light violet primary color (#e7e1ea) with muted light purple accents (#eae1e9). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light violet primary (#e7e1ea) on a neutral background (#030104).

Color palette

TokenLightDark
Background
#ffffffwhite
#030104black
Foreground
#000000black
#faf8fcghostwhite
Card
#fcfcfcsnow
#060208black
Card foreground
#000000black
#fdfcfdwhite
Popover
#ffffffwhite
#030104black
Popover foreground
#000000black
#faf8fcghostwhite
Primary
#e7e1ealavender
#e7e1ealavender
Primary foreground
#513f5adarkslategray
#513f5adarkslategray
Secondary
#e2e1eagainsboro
#e2e1eagainsboro
Secondary foreground
#433f5adarkslategray
#433f5adarkslategray
Muted
#f0eff6whitesmoke
#0a0910black
Muted foreground
#585562dimgray
#9f9daadarkgray
Accent
#eae1e9lavender
#eae1e9lavender
Accent foreground
#5a3f56darkslategray
#5a3f56darkslategray
Destructive
#84230bsaddlebrown
#ec4218orangered
Destructive foreground
#fad1c6peachpuff
#ffffffwhite
Border
#f0eef1whitesmoke
#1d1a1eblack
Input
#f0eef1whitesmoke
#1d1a1eblack
Ring
#e7e1ealavender
#e7e1ealavender

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background21.00:1AAA
Text on card20.54:1AAA
Primary button7.40:1AAA
Secondary button7.72:1AAA
Muted text6.33:1AA
Accent7.20:1AAA
Destructive6.73:1AA
Dark mode
Text on background19.69:1AAA
Text on card20.09:1AAA
Primary button7.40:1AAA
Secondary button7.72:1AAA
Muted text7.42:1AAA
Accent7.20:1AAA
Destructive3.90:1AA Large

CSS variables

Paste this into your globals.css to use Andromeda Light in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.954 0.01 293.871);
  --muted-foreground: oklch(0.458 0.021 293.206);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.952 0.004 314.808);
  --input: oklch(0.952 0.004 314.808);
  --primary: oklch(0.917 0.014 314.753);
  --primary-foreground: oklch(0.397 0.051 314.194);
  --secondary: oklch(0.913 0.012 293.811);
  --secondary-foreground: oklch(0.383 0.047 291.681);
  --accent: oklch(0.919 0.014 331.029);
  --accent-foreground: oklch(0.406 0.052 332.455);
  --destructive: oklch(0.41 0.136 34.361);
  --destructive-foreground: oklch(0.893 0.049 34.347);
  --ring: oklch(0.917 0.014 314.753);
  --chart-1: oklch(0.917 0.014 314.753);
  --chart-2: oklch(0.913 0.012 293.811);
  --chart-3: oklch(0.919 0.014 331.029);
  --chart-4: oklch(0.94 0.009 293.894);
  --chart-5: oklch(0.916 0.016 314.74);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.083 0.019 316.787);
  --foreground: oklch(0.982 0.005 314.801);
  --muted: oklch(0.146 0.016 292.066);
  --muted-foreground: oklch(0.701 0.019 293.566);
  --popover: oklch(0.083 0.019 316.787);
  --popover-foreground: oklch(0.982 0.005 314.801);
  --card: oklch(0.104 0.024 316.787);
  --card-foreground: oklch(0.991 0.003 314.814);
  --border: oklch(0.222 0.01 314.615);
  --input: oklch(0.222 0.01 314.615);
  --primary: oklch(0.917 0.014 314.753);
  --primary-foreground: oklch(0.397 0.051 314.194);
  --secondary: oklch(0.913 0.012 293.811);
  --secondary-foreground: oklch(0.383 0.047 291.681);
  --accent: oklch(0.919 0.014 331.029);
  --accent-foreground: oklch(0.406 0.052 332.455);
  --destructive: oklch(0.627 0.212 34.145);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.917 0.014 314.753);
  --chart-1: oklch(0.917 0.014 314.753);
  --chart-2: oklch(0.913 0.012 293.811);
  --chart-3: oklch(0.919 0.014 331.029);
  --chart-4: oklch(0.94 0.009 293.894);
  --chart-5: oklch(0.916 0.016 314.74);
}