Net for shadcn/ui

Net is a shadcn/ui theme built around a neutral gray primary color (#a7a2a9) with neutral gray accents (#a5a9a2). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#a7a2a9) on a neutral background (#060208).

Color palette

TokenLightDark
Background
#ffffffwhite
#060208black
Foreground
#0f0416black
#fdfcfdwhite
Card
#fcfcfcsnow
#09030cblack
Card foreground
#0c0312black
#ffffffwhite
Popover
#ffffffwhite
#060208black
Popover foreground
#0f0416black
#fdfcfdwhite
Primary
#a7a2a9darkgray
#a7a2a9darkgray
Primary foreground
#0d0c0dblack
#0d0c0dblack
Secondary
#a5a9a2darkgray
#a5a9a2darkgray
Secondary foreground
#0d0d0cblack
#0d0d0cblack
Muted
#eff1efwhitesmoke
#0f100eblack
Muted foreground
#41483cdarkslategray
#bbc3b7silver
Accent
#a5a9a2darkgray
#a5a9a2darkgray
Accent foreground
#0d0d0cblack
#0d0d0cblack
Destructive
#8d1902darkred
#fc5331tomato
Destructive foreground
#fecdc3pink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#a7a2a9darkgray
#a7a2a9darkgray

Contrast

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

Light mode
Text on background20.01:1AAA
Text on card19.80:1AAA
Primary button7.80:1AAA
Secondary button8.16:1AAA
Muted text8.33:1AAA
Accent8.16:1AAA
Destructive6.49:1AA
Dark mode
Text on background20.09:1AAA
Text on card20.36:1AAA
Primary button7.80:1AAA
Secondary button8.16:1AAA
Muted text10.52:1AAA
Accent8.16:1AAA
Destructive6.41:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.139 0.045 312.095);
  --muted: oklch(0.956 0.003 133.005);
  --muted-foreground: oklch(0.392 0.022 133.383);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.139 0.045 312.095);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.127 0.04 313.274);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.719 0.011 312.878);
  --primary-foreground: oklch(0.157 0.002 312.882);
  --secondary: oklch(0.73 0.011 133.092);
  --secondary-foreground: oklch(0.159 0.002 133.088);
  --accent: oklch(0.73 0.011 133.092);
  --accent-foreground: oklch(0.159 0.002 133.088);
  --destructive: oklch(0.417 0.153 32.601);
  --destructive-foreground: oklch(0.888 0.058 31.317);
  --ring: oklch(0.719 0.011 312.878);
  --chart-1: oklch(0.719 0.011 312.878);
  --chart-2: oklch(0.73 0.011 133.092);
  --chart-3: oklch(0.73 0.011 133.092);
  --chart-4: oklch(0.754 0.01 133.079);
  --chart-5: oklch(0.715 0.02 312.797);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.104 0.022 314.82);
  --foreground: oklch(0.992 0.001 312.977);
  --muted: oklch(0.172 0.004 133.153);
  --muted-foreground: oklch(0.807 0.018 133.143);
  --popover: oklch(0.104 0.022 314.82);
  --popover-foreground: oklch(0.992 0.001 312.977);
  --card: oklch(0.119 0.026 314.558);
  --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.719 0.011 312.878);
  --primary-foreground: oklch(0.157 0.002 312.882);
  --secondary: oklch(0.73 0.011 133.092);
  --secondary-foreground: oklch(0.159 0.002 133.088);
  --accent: oklch(0.73 0.011 133.092);
  --accent-foreground: oklch(0.159 0.002 133.088);
  --destructive: oklch(0.671 0.211 33.185);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.719 0.011 312.878);
  --chart-1: oklch(0.719 0.011 312.878);
  --chart-2: oklch(0.73 0.011 133.092);
  --chart-3: oklch(0.73 0.011 133.092);
  --chart-4: oklch(0.754 0.01 133.079);
  --chart-5: oklch(0.715 0.02 312.797);
}