Ethernet for shadcn/ui

Ethernet is a shadcn/ui theme built around a vivid green primary color (#0eec2f) with vivid red accents (#ec2f0e). The light mode uses a neutral background (#fbfdfc). Dark mode keeps the vivid green primary (#0eec2f) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fbfdfcwhite
#000000black
Foreground
#050f07black
#ffffffwhite
Card
#f8fcf9mintcream
#030303black
Card foreground
#040c05black
#ffffffwhite
Popover
#fbfdfcwhite
#000000black
Popover foreground
#050f07black
#ffffffwhite
Primary
#0eec2flimegreen
#0eec2flimegreen
Primary foreground
#032b09black
#032b09black
Secondary
#2f0eecblue
#2f0eecblue
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e9e9edlavender
#131216black
Muted foreground
#4a4950darkslategray
#b0afb6darkgray
Accent
#ec2f0eorangered
#ec2f0eorangered
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#c0480cchocolate
#d8510echocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0eec2flimegreen
#0eec2flimegreen

Contrast

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

Light mode
Text on background19.13:1AAA
Text on card19.11:1AAA
Primary button9.66:1AAA
Secondary button8.76:1AAA
Muted text7.32:1AAA
Accent4.21:1AA Large
Destructive5.03:1AA
Dark mode
Text on background21.00:1AAA
Text on card20.67:1AAA
Primary button9.66:1AAA
Secondary button8.76:1AAA
Muted text8.55:1AAA
Accent4.21:1AA Large
Destructive4.11:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.003 150.208);
  --foreground: oklch(0.156 0.026 148.809);
  --muted: oklch(0.934 0.005 293.196);
  --muted-foreground: oklch(0.41 0.01 292.839);
  --popover: oklch(0.993 0.003 150.208);
  --popover-foreground: oklch(0.156 0.026 148.809);
  --card: oklch(0.987 0.006 150.168);
  --card-foreground: oklch(0.14 0.022 149.228);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.819 0.267 143.597);
  --primary-foreground: oklch(0.254 0.075 145.604);
  --secondary: oklch(0.445 0.283 270.734);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.611 0.226 31.789);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.558 0.166 41.217);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.819 0.267 143.597);
  --chart-1: oklch(0.819 0.267 143.597);
  --chart-2: oklch(0.445 0.283 270.734);
  --chart-3: oklch(0.611 0.226 31.789);
  --chart-4: oklch(0.462 0.283 272.554);
  --chart-5: oklch(0.829 0.272 143.479);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.186 0.008 292.464);
  --muted-foreground: oklch(0.758 0.009 293.09);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --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.819 0.267 143.597);
  --primary-foreground: oklch(0.254 0.075 145.604);
  --secondary: oklch(0.445 0.283 270.734);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.611 0.226 31.789);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.609 0.182 41.011);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.819 0.267 143.597);
  --chart-1: oklch(0.819 0.267 143.597);
  --chart-2: oklch(0.445 0.283 270.734);
  --chart-3: oklch(0.611 0.226 31.789);
  --chart-4: oklch(0.462 0.283 272.554);
  --chart-5: oklch(0.829 0.272 143.479);
}