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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.31:1 | AAA |
| Text on card | 20.31:1 | AAA |
| Primary button | 6.03:1 | AA |
| Secondary button | 6.10:1 | AA |
| Muted text | 4.40:1 | AA Large |
| Accent | 6.10:1 | AA |
| Destructive | 6.28:1 | AA |
| Text on background | 20.15:1 | AAA |
| Text on card | 20.15:1 | AAA |
| Primary button | 6.03:1 | AA |
| Secondary button | 6.10:1 | AA |
| Muted text | 5.63:1 | AA |
| Accent | 6.10:1 | AA |
| Destructive | 6.42:1 | AA |
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);
}