Neonate for shadcn/ui

Neonate is a shadcn/ui theme built around a muted deep teal primary color (#121715) with muted deep cyan accents (#121617). The light mode uses a neutral background (#fbfefd). Dark mode keeps the muted deep teal primary (#121715) on a neutral background (#030806).

Color palette

TokenLightDark
Background
#fbfefdwhite
#030806black
Foreground
#000000black
#f6f9f8whitesmoke
Card
#fbfefdwhite
#030806black
Card foreground
#000000black
#f6f9f8whitesmoke
Popover
#fbfefdwhite
#030806black
Popover foreground
#000000black
#f6f9f8whitesmoke
Primary
#121715black
#121715black
Primary foreground
#a3b8b0darkgray
#a3b8b0darkgray
Secondary
#121712black
#121712black
Secondary foreground
#a3b8a6darkgray
#a3b8a6darkgray
Muted
#dee3degainsboro
#1c211dblack
Muted foreground
#3d483edarkslategray
#b7c2b9silver
Accent
#121617black
#121617black
Accent foreground
#a3b5b8darkgray
#a3b5b8darkgray
Destructive
#d70909red
#f61e1ecrimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#121715black
#121715black

Contrast

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

Light mode
Text on background20.69:1AAA
Text on card20.69:1AAA
Primary button8.66:1AAA
Secondary button8.61:1AAA
Muted text7.36:1AAA
Accent8.53:1AAA
Destructive5.32:1AA
Dark mode
Text on background19.08:1AAA
Text on card19.08:1AAA
Primary button8.66:1AAA
Secondary button8.61:1AAA
Muted text8.87:1AAA
Accent8.53:1AAA
Destructive4.11:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.004 172.465);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.911 0.009 149.565);
  --muted-foreground: oklch(0.388 0.021 149.003);
  --popover: oklch(0.994 0.004 172.465);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.994 0.004 172.465);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.198 0.009 171.196);
  --primary-foreground: oklch(0.764 0.026 171.561);
  --secondary: oklch(0.197 0.012 148.89);
  --secondary-foreground: oklch(0.761 0.035 149.101);
  --accent: oklch(0.197 0.007 207.836);
  --accent-foreground: oklch(0.76 0.021 207.846);
  --destructive: oklch(0.555 0.225 28.913);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.198 0.009 171.196);
  --chart-1: oklch(0.198 0.009 171.196);
  --chart-2: oklch(0.197 0.012 148.89);
  --chart-3: oklch(0.197 0.007 207.836);
  --chart-4: oklch(0.233 0.016 148.79);
  --chart-5: oklch(0.2 0.011 170.88);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.123 0.013 172.805);
  --foreground: oklch(0.979 0.003 172.491);
  --muted: oklch(0.242 0.012 149.048);
  --muted-foreground: oklch(0.803 0.017 149.415);
  --popover: oklch(0.123 0.013 172.805);
  --popover-foreground: oklch(0.979 0.003 172.491);
  --card: oklch(0.123 0.013 172.805);
  --card-foreground: oklch(0.979 0.003 172.491);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.198 0.009 171.196);
  --primary-foreground: oklch(0.764 0.026 171.561);
  --secondary: oklch(0.197 0.012 148.89);
  --secondary-foreground: oklch(0.761 0.035 149.101);
  --accent: oklch(0.197 0.007 207.836);
  --accent-foreground: oklch(0.76 0.021 207.846);
  --destructive: oklch(0.619 0.242 28.175);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.198 0.009 171.196);
  --chart-1: oklch(0.198 0.009 171.196);
  --chart-2: oklch(0.197 0.012 148.89);
  --chart-3: oklch(0.197 0.007 207.836);
  --chart-4: oklch(0.233 0.016 148.79);
  --chart-5: oklch(0.2 0.011 170.88);
}