Alien for shadcn/ui

Alien is a shadcn/ui theme built around a blue primary color (#2f4c6a) with green accents (#4c6a2f). The light mode uses a neutral background (#ffffff). Dark mode keeps the blue primary (#2f4c6a) on a neutral background (#010304).

Color palette

TokenLightDark
Background
#ffffffwhite
#010304black
Foreground
#04080cblack
#fcfcfdwhite
Card
#ffffffwhite
#010304black
Card foreground
#04080cblack
#fcfcfdwhite
Popover
#ffffffwhite
#010304black
Popover foreground
#04080cblack
#fcfcfdwhite
Primary
#2f4c6adarkslategray
#2f4c6adarkslategray
Primary foreground
#dce5eflavender
#dce5eflavender
Secondary
#6a2f4cdimgray
#6a2f4cdimgray
Secondary foreground
#efdce5mistyrose
#efdce5mistyrose
Muted
#ece9eblinen
#161314black
Muted foreground
#4e4b4cdarkslategray
#b4b1b2darkgray
Accent
#4c6a2fdarkolivegreen
#4c6a2fdarkolivegreen
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#cb0b01firebrick
#f40d01red
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#2f4c6adarkslategray
#2f4c6adarkslategray

Contrast

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

Light mode
Text on background20.09:1AAA
Text on card20.09:1AAA
Primary button7.01:1AAA
Secondary button7.55:1AAA
Muted text7.16:1AAA
Accent6.19:1AA
Destructive5.85:1AA
Dark mode
Text on background20.19:1AAA
Text on card20.19:1AAA
Primary button7.01:1AAA
Secondary button7.55:1AAA
Muted text8.67:1AAA
Accent6.19:1AA
Destructive4.29: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.128 0.014 242.536);
  --muted: oklch(0.937 0.003 346.104);
  --muted-foreground: oklch(0.416 0.005 346.315);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.128 0.014 242.536);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.128 0.014 242.536);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.406 0.061 251.073);
  --primary-foreground: oklch(0.918 0.017 249.819);
  --secondary: oklch(0.395 0.09 351.751);
  --secondary-foreground: oklch(0.912 0.025 346.719);
  --accent: oklch(0.485 0.092 131.627);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.532 0.214 29.709);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.406 0.061 251.073);
  --chart-1: oklch(0.406 0.061 251.073);
  --chart-2: oklch(0.395 0.09 351.751);
  --chart-3: oklch(0.485 0.092 131.627);
  --chart-4: oklch(0.421 0.097 351.836);
  --chart-5: oklch(0.406 0.066 251.224);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.088 0.01 241.339);
  --foreground: oklch(0.992 0.001 249.66);
  --muted: oklch(0.191 0.005 346.644);
  --muted-foreground: oklch(0.763 0.004 346.158);
  --popover: oklch(0.088 0.01 241.339);
  --popover-foreground: oklch(0.992 0.001 249.66);
  --card: oklch(0.088 0.01 241.339);
  --card-foreground: oklch(0.992 0.001 249.66);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.406 0.061 251.073);
  --primary-foreground: oklch(0.918 0.017 249.819);
  --secondary: oklch(0.395 0.09 351.751);
  --secondary-foreground: oklch(0.912 0.025 346.719);
  --accent: oklch(0.485 0.092 131.627);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.609 0.246 29.621);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.406 0.061 251.073);
  --chart-1: oklch(0.406 0.061 251.073);
  --chart-2: oklch(0.395 0.09 351.751);
  --chart-3: oklch(0.485 0.092 131.627);
  --chart-4: oklch(0.421 0.097 351.836);
  --chart-5: oklch(0.406 0.066 251.224);
}