Viow Neon for shadcn/ui

Viow Neon is a shadcn/ui theme built around a neutral gray primary color (#cccccc) with muted blue accents (#3e4560). The light mode uses a blue-tinted background (#202432). Dark mode keeps the neutral gray primary (#cccccc) on a blue-tinted background (#202432).

Color palette

TokenLightDark
Background
#202432darkslategray
#202432darkslategray
Foreground
#d4d1c9lightgrey
#d4d1c9lightgrey
Card
#1c1f2cblack
#1c1f2cblack
Card foreground
#dfddd7gainsboro
#dfddd7gainsboro
Popover
#1a1d28black
#1a1d28black
Popover foreground
#ebe9e6linen
#ebe9e6linen
Primary
#cccccclightgrey
#cccccclightgrey
Primary foreground
#333333darkslategray
#333333darkslategray
Secondary
#404040darkslategray
#404040darkslategray
Secondary foreground
#d9d9d9gainsboro
#d9d9d9gainsboro
Muted
#2d3039darkslategray
#2d3039darkslategray
Muted foreground
#a9adbcdarkgray
#a9adbcdarkgray
Accent
#3e4560darkslategray
#3e4560darkslategray
Accent foreground
#e3e5edlavender
#e3e5edlavender
Destructive
#ec3418orangered
#ec3418orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#2f323cdarkslategray
#2f323cdarkslategray
Input
#363945darkslategray
#363945darkslategray
Ring
#cccccclightgrey
#cccccclightgrey

Contrast

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

Light mode
Text on background10.15:1AAA
Text on card12.04:1AAA
Primary button7.86:1AAA
Secondary button7.37:1AAA
Muted text5.92:1AA
Accent7.48:1AAA
Destructive4.13:1AA Large
Dark mode
Text on background10.15:1AAA
Text on card12.04:1AAA
Primary button7.86:1AAA
Secondary button7.37:1AAA
Muted text5.92:1AA
Accent7.48:1AAA
Destructive4.13:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.262 0.027 272.437);
  --foreground: oklch(0.861 0.011 90.216);
  --muted: oklch(0.309 0.018 273.138);
  --muted-foreground: oklch(0.75 0.021 273.53);
  --popover: oklch(0.233 0.023 272.537);
  --popover-foreground: oklch(0.935 0.005 90.163);
  --card: oklch(0.243 0.024 272.5);
  --card-foreground: oklch(0.898 0.008 90.189);
  --border: oklch(0.318 0.018 273.129);
  --input: oklch(0.346 0.021 273.106);
  --primary: oklch(0.845 0 164.055);
  --primary-foreground: oklch(0.321 0 180);
  --secondary: oklch(0.371 0 168.69);
  --secondary-foreground: oklch(0.885 0 180);
  --accent: oklch(0.396 0.047 272.176);
  --accent-foreground: oklch(0.923 0.011 273.729);
  --destructive: oklch(0.615 0.222 31.544);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.845 0 164.055);
  --chart-1: oklch(0.845 0 164.055);
  --chart-2: oklch(0.371 0 168.69);
  --chart-3: oklch(0.396 0.047 272.176);
  --chart-4: oklch(0.399 0 180);
  --chart-5: oklch(0.843 0.003 17.225);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.262 0.027 272.437);
  --foreground: oklch(0.861 0.011 90.216);
  --muted: oklch(0.309 0.018 273.138);
  --muted-foreground: oklch(0.75 0.021 273.53);
  --popover: oklch(0.233 0.023 272.537);
  --popover-foreground: oklch(0.935 0.005 90.163);
  --card: oklch(0.243 0.024 272.5);
  --card-foreground: oklch(0.898 0.008 90.189);
  --border: oklch(0.318 0.018 273.129);
  --input: oklch(0.346 0.021 273.106);
  --primary: oklch(0.845 0 164.055);
  --primary-foreground: oklch(0.321 0 180);
  --secondary: oklch(0.371 0 168.69);
  --secondary-foreground: oklch(0.885 0 180);
  --accent: oklch(0.396 0.047 272.176);
  --accent-foreground: oklch(0.923 0.011 273.729);
  --destructive: oklch(0.615 0.222 31.544);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.845 0 164.055);
  --chart-1: oklch(0.845 0 164.055);
  --chart-2: oklch(0.371 0 168.69);
  --chart-3: oklch(0.396 0.047 272.176);
  --chart-4: oklch(0.399 0 180);
  --chart-5: oklch(0.843 0.003 17.225);
}