Alien for shadcn/ui

Alien is a shadcn/ui theme built around a muted blue primary color (#7e85ae) with muted yellow accents (#aea87e). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted blue primary (#7e85ae) on a neutral background (#020308).

Color palette

TokenLightDark
Background
#ffffffwhite
#020308black
Foreground
#010105black
#ffffffwhite
Card
#ffffffwhite
#020308black
Card foreground
#010105black
#ffffffwhite
Popover
#ffffffwhite
#020308black
Popover foreground
#010105black
#ffffffwhite
Primary
#7e85aelightslategray
#7e85aelightslategray
Primary foreground
#000000black
#000000black
Secondary
#aea87edarkkhaki
#aea87edarkkhaki
Secondary foreground
#000000black
#000000black
Muted
#e0e0dcgainsboro
#23231fblack
Muted foreground
#4c4b43darkslategray
#bcbbb3silver
Accent
#aea87edarkkhaki
#aea87edarkkhaki
Accent foreground
#000000black
#000000black
Destructive
#912808saddlebrown
#f45525tomato
Destructive foreground
#fcd9cfbisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#7e85aelightslategray
#7e85aelightslategray

Contrast

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

Light mode
Text on background20.83:1AAA
Text on card20.83:1AAA
Primary button5.85:1AA
Secondary button8.72:1AAA
Muted text6.60:1AA
Accent8.72:1AAA
Destructive6.34:1AA
Dark mode
Text on background20.60:1AAA
Text on card20.60:1AAA
Primary button5.85:1AA
Secondary button8.72:1AAA
Muted text8.18:1AAA
Accent8.72:1AAA
Destructive3.40:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.073 0.02 268.744);
  --muted: oklch(0.905 0.005 99.43);
  --muted-foreground: oklch(0.41 0.012 99.761);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.073 0.02 268.744);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.073 0.02 268.744);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.626 0.063 277.613);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.727 0.057 100.335);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.727 0.057 100.335);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.439 0.146 35.507);
  --destructive-foreground: oklch(0.913 0.042 37.602);
  --ring: oklch(0.626 0.063 277.613);
  --chart-1: oklch(0.626 0.063 277.613);
  --chart-2: oklch(0.727 0.057 100.335);
  --chart-3: oklch(0.727 0.057 100.335);
  --chart-4: oklch(0.747 0.053 100.256);
  --chart-5: oklch(0.62 0.072 277.33);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.099 0.018 272.675);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.255 0.007 99.753);
  --muted-foreground: oklch(0.79 0.01 99.533);
  --popover: oklch(0.099 0.018 272.675);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.099 0.018 272.675);
  --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.626 0.063 277.613);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.727 0.057 100.335);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.727 0.057 100.335);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.659 0.203 36.44);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.626 0.063 277.613);
  --chart-1: oklch(0.626 0.063 277.613);
  --chart-2: oklch(0.727 0.057 100.335);
  --chart-3: oklch(0.727 0.057 100.335);
  --chart-4: oklch(0.747 0.053 100.256);
  --chart-5: oklch(0.62 0.072 277.33);
}