NEON for shadcn/ui

NEON is a shadcn/ui theme built around a green primary color (#8cc945) with violet accents (#8345c9). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#8cc945) on a neutral background (#030401).

Color palette

TokenLightDark
Background
#ffffffwhite
#030401black
Foreground
#080d03black
#fafcf8snow
Card
#ffffffwhite
#030401black
Card foreground
#080d03black
#fafcf8snow
Popover
#ffffffwhite
#030401black
Popover foreground
#080d03black
#fafcf8snow
Primary
#8cc945yellowgreen
#8cc945yellowgreen
Primary foreground
#22330fdarkgreen
#22330fdarkgreen
Secondary
#8345c9darkorchid
#8345c9darkorchid
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#f0eff1whitesmoke
#0f0e10black
Muted foreground
#545355dimgray
#abaaacdarkgray
Accent
#8345c9darkorchid
#8345c9darkorchid
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#b42b13firebrick
#eb573dtomato
Destructive foreground
#fffbfasnow
#000000black
Border
#ebede8linen
#1f231bblack
Input
#ebede8linen
#1f231bblack
Ring
#8cc945yellowgreen
#8cc945yellowgreen

Contrast

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

Light mode
Text on background19.64:1AAA
Text on card19.64:1AAA
Primary button6.81:1AA
Secondary button5.73:1AA
Muted text6.65:1AA
Accent5.73:1AA
Destructive6.19:1AA
Dark mode
Text on background19.94:1AAA
Text on card19.94:1AAA
Primary button6.81:1AA
Secondary button5.73:1AA
Muted text8.30:1AAA
Accent5.73:1AA
Destructive5.95:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.148 0.027 126.339);
  --muted: oklch(0.953 0.003 307.078);
  --muted-foreground: oklch(0.445 0.003 307.032);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.148 0.027 126.339);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.148 0.027 126.339);
  --border: oklch(0.943 0.008 127.21);
  --input: oklch(0.943 0.008 127.21);
  --primary: oklch(0.768 0.174 130.94);
  --primary-foreground: oklch(0.298 0.062 130.456);
  --secondary: oklch(0.533 0.196 301.452);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.533 0.196 301.452);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.507 0.177 32.228);
  --destructive-foreground: oklch(0.991 0.004 29.481);
  --ring: oklch(0.768 0.174 130.94);
  --chart-1: oklch(0.768 0.174 130.94);
  --chart-2: oklch(0.533 0.196 301.452);
  --chart-3: oklch(0.533 0.196 301.452);
  --chart-4: oklch(0.561 0.185 302.29);
  --chart-5: oklch(0.776 0.181 131.152);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.099 0.012 126.286);
  --foreground: oklch(0.988 0.005 127.176);
  --muted: oklch(0.167 0.004 306.818);
  --muted-foreground: oklch(0.739 0.003 307.07);
  --popover: oklch(0.099 0.012 126.286);
  --popover-foreground: oklch(0.988 0.005 127.176);
  --card: oklch(0.099 0.012 126.286);
  --card-foreground: oklch(0.988 0.005 127.176);
  --border: oklch(0.248 0.016 127.909);
  --input: oklch(0.248 0.016 127.909);
  --primary: oklch(0.768 0.174 130.94);
  --primary-foreground: oklch(0.298 0.062 130.456);
  --secondary: oklch(0.533 0.196 301.452);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.533 0.196 301.452);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.649 0.187 32.253);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.768 0.174 130.94);
  --chart-1: oklch(0.768 0.174 130.94);
  --chart-2: oklch(0.533 0.196 301.452);
  --chart-3: oklch(0.533 0.196 301.452);
  --chart-4: oklch(0.561 0.185 302.29);
  --chart-5: oklch(0.776 0.181 131.152);
}