Neon for shadcn/ui

Neon is a shadcn/ui theme built around a vivid teal primary color (#7befc8) with muted light teal accents (#b8d6cc). The light mode uses a neutral background (#fcfdfd). Dark mode keeps the vivid teal primary (#7befc8) on a teal-tinted background (#040b09).

Color palette

TokenLightDark
Background
#fcfdfdwhite
#040b09black
Foreground
#041510black
#f9fbfamintcream
Card
#fcfdfdwhite
#040b09black
Card foreground
#041510black
#f9fbfamintcream
Popover
#fcfdfdwhite
#040b09black
Popover foreground
#041510black
#f9fbfamintcream
Primary
#7befc8aquamarine
#7befc8aquamarine
Primary foreground
#063223black
#063223black
Secondary
#d8e4e0gainsboro
#1f2d29darkslategray
Secondary foreground
#385149darkslategray
#b4cbc3silver
Muted
#e0e5e4gainsboro
#1a1f1dblack
Muted foreground
#606664dimgray
#999f9ddarkgray
Accent
#b8d6ccsilver
#305045darkslategray
Accent foreground
#223a32darkslategray
#cfe2dcgainsboro
Destructive
#7b280asaddlebrown
#ef6d3etomato
Destructive foreground
#facdbdpeachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#7befc8aquamarine
#7befc8aquamarine

Contrast

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

Light mode
Text on background18.42:1AAA
Text on card18.42:1AAA
Primary button10.07:1AAA
Secondary button6.58:1AA
Muted text4.62:1AA
Accent7.86:1AAA
Destructive6.77:1AA
Dark mode
Text on background19.09:1AAA
Text on card19.09:1AAA
Primary button10.07:1AAA
Secondary button8.35:1AAA
Muted text6.23:1AA
Accent6.62:1AA
Destructive6.93:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.002 174.524);
  --foreground: oklch(0.179 0.027 170.276);
  --muted: oklch(0.919 0.006 174.401);
  --muted-foreground: oklch(0.506 0.008 174.12);
  --popover: oklch(0.994 0.002 174.524);
  --popover-foreground: oklch(0.179 0.027 170.276);
  --card: oklch(0.994 0.002 174.524);
  --card-foreground: oklch(0.179 0.027 170.276);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.873 0.12 169.441);
  --primary-foreground: oklch(0.283 0.054 165.816);
  --secondary: oklch(0.908 0.014 174.137);
  --secondary-foreground: oklch(0.413 0.033 171.959);
  --accent: oklch(0.851 0.035 173.328);
  --accent-foreground: oklch(0.326 0.034 170.967);
  --destructive: oklch(0.399 0.121 38.045);
  --destructive-foreground: oklch(0.883 0.055 40.959);
  --ring: oklch(0.873 0.12 169.441);
  --chart-1: oklch(0.873 0.12 169.441);
  --chart-2: oklch(0.908 0.014 174.137);
  --chart-3: oklch(0.851 0.035 173.328);
  --chart-4: oklch(0.93 0.011 174.252);
  --chart-5: oklch(0.877 0.123 169.247);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.141 0.015 174.539);
  --foreground: oklch(0.986 0.002 174.532);
  --muted: oklch(0.232 0.008 173.524);
  --muted-foreground: oklch(0.696 0.007 174.274);
  --popover: oklch(0.141 0.015 174.539);
  --popover-foreground: oklch(0.986 0.002 174.532);
  --card: oklch(0.141 0.015 174.539);
  --card-foreground: oklch(0.986 0.002 174.532);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.873 0.12 169.441);
  --primary-foreground: oklch(0.283 0.054 165.816);
  --secondary: oklch(0.283 0.02 172.269);
  --secondary-foreground: oklch(0.822 0.027 173.596);
  --accent: oklch(0.402 0.042 171);
  --accent-foreground: oklch(0.898 0.022 173.852);
  --destructive: oklch(0.685 0.173 39.71);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.873 0.12 169.441);
  --chart-1: oklch(0.873 0.12 169.441);
  --chart-2: oklch(0.283 0.02 172.269);
  --chart-3: oklch(0.402 0.042 171);
  --chart-4: oklch(0.317 0.024 172.162);
  --chart-5: oklch(0.877 0.123 169.247);
}