Helium for shadcn/ui

Helium is a shadcn/ui theme built around a near-black primary color (#09040b) with near-black accents (#070b04). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#09040b) on a violet-tinted background (#0c0410).

Color palette

TokenLightDark
Background
#ffffffwhite
#0c0410black
Foreground
#09040bblack
#ffffffwhite
Card
#ffffffwhite
#0c0410black
Card foreground
#09040bblack
#ffffffwhite
Popover
#ffffffwhite
#0c0410black
Popover foreground
#09040bblack
#ffffffwhite
Primary
#09040bblack
#09040bblack
Primary foreground
#ac77camediumpurple
#ac77camediumpurple
Secondary
#070b04black
#070b04black
Secondary foreground
#619e3dolivedrab
#619e3dolivedrab
Muted
#dee8d8gainsboro
#1c2717black
Muted foreground
#656a62dimgray
#989d95darkgray
Accent
#070b04black
#070b04black
Accent foreground
#619e3dolivedrab
#619e3dolivedrab
Destructive
#952a09saddlebrown
#f35d30tomato
Destructive foreground
#fcddd4antiquewhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#09040bblack
#09040bblack

Contrast

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

Light mode
Text on background20.31:1AAA
Text on card20.31:1AAA
Primary button6.03:1AA
Secondary button6.10:1AA
Muted text4.40:1AA Large
Accent6.10:1AA
Destructive6.28:1AA
Dark mode
Text on background20.15:1AAA
Text on card20.15:1AAA
Primary button6.03:1AA
Secondary button6.10:1AA
Muted text5.63:1AA
Accent6.10:1AA
Destructive6.42:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.121 0.023 315.09);
  --muted: oklch(0.92 0.024 133.769);
  --muted-foreground: oklch(0.517 0.014 133.778);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.121 0.023 315.09);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.121 0.023 315.09);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.122 0.02 314.956);
  --primary-foreground: oklch(0.655 0.132 312.289);
  --secondary: oklch(0.141 0.019 132.44);
  --secondary-foreground: oklch(0.636 0.145 135.707);
  --accent: oklch(0.141 0.019 132.44);
  --accent-foreground: oklch(0.636 0.145 135.707);
  --destructive: oklch(0.449 0.149 35.541);
  --destructive-foreground: oklch(0.921 0.037 37.61);
  --ring: oklch(0.122 0.02 314.956);
  --chart-1: oklch(0.122 0.02 314.956);
  --chart-2: oklch(0.141 0.019 132.44);
  --chart-3: oklch(0.141 0.019 132.44);
  --chart-4: oklch(0.187 0.029 134.679);
  --chart-5: oklch(0.121 0.022 315.024);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.131 0.031 313.788);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.256 0.032 134.492);
  --muted-foreground: oklch(0.69 0.013 133.725);
  --popover: oklch(0.131 0.031 313.788);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.131 0.031 313.788);
  --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.122 0.02 314.956);
  --primary-foreground: oklch(0.655 0.132 312.289);
  --secondary: oklch(0.141 0.019 132.44);
  --secondary-foreground: oklch(0.636 0.145 135.707);
  --accent: oklch(0.141 0.019 132.44);
  --accent-foreground: oklch(0.636 0.145 135.707);
  --destructive: oklch(0.668 0.193 36.908);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.122 0.02 314.956);
  --chart-1: oklch(0.122 0.02 314.956);
  --chart-2: oklch(0.141 0.019 132.44);
  --chart-3: oklch(0.141 0.019 132.44);
  --chart-4: oklch(0.187 0.029 134.679);
  --chart-5: oklch(0.121 0.022 315.024);
}