neurobrutal for shadcn/ui

neurobrutal is a shadcn/ui theme built around a near-black primary color (#000000) with near-black accents (#000000). The light mode uses a neutral background (#ffffff). Dark mode switches to a teal primary (#60c7c4) on a teal-tinted background (#050a0a).

Color palette

TokenLightDark
Background
#ffffffwhite
#050a0ablack
Foreground
#000000black
#f9fbfbghostwhite
Card
#fcfcfcsnow
#070e0eblack
Card foreground
#000000black
#fcfdfdwhite
Popover
#ffffffwhite
#050a0ablack
Popover foreground
#000000black
#f9fbfbghostwhite
Primary
#000000black
#60c7c4mediumturquoise
Primary foreground
#ffffffwhite
#000000black
Secondary
#8e44addarkorchid
#c76064indianred
Secondary foreground
#ffffffwhite
#000000black
Muted
#f9ff00yellow
#1e1011black
Muted foreground
#000000black
#ab9c9cdarkgray
Accent
#000000black
#c76064indianred
Accent foreground
#ffffffwhite
#000000black
Destructive
#ad0805darkred
#e90b07red
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#000000black
#202727darkslategray
Input
#ffffffwhite
#202727darkslategray
Ring
#000000black
#60c7c4mediumturquoise

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card20.54:1AAA
Primary button21.00:1AAA
Secondary button5.86:1AA
Muted text19.33:1AAA
Accent21.00:1AAA
Destructive7.45:1AAA
Dark mode
Text on background19.15:1AAA
Text on card19.14:1AAA
Primary button10.49:1AAA
Secondary button5.31:1AA
Muted text7.00:1AAA
Accent5.31:1AA
Destructive4.66:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.963 0.212 111.505);
  --muted-foreground: oklch(0 0 0);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0 0 0);
  --input: oklch(1 0 180);
  --primary: oklch(0 0 0);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.526 0.17 314.657);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0 0 0);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.473 0.19 29.126);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0 0 0);
  --chart-1: oklch(0.526 0.17 314.657);
  --chart-2: oklch(0.963 0.212 111.505);
  --chart-3: oklch(0 0 0);
  --chart-4: oklch(1 0 180);
  --chart-5: oklch(0.434 0.136 314.945);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.139 0.01 193.89);
  --foreground: oklch(0.986 0.002 194.753);
  --muted: oklch(0.193 0.023 17.171);
  --muted-foreground: oklch(0.705 0.017 15.255);
  --popover: oklch(0.139 0.01 193.89);
  --popover-foreground: oklch(0.986 0.002 194.753);
  --card: oklch(0.155 0.012 193.541);
  --card-foreground: oklch(0.993 0.001 194.772);
  --border: oklch(0.266 0.009 194.153);
  --input: oklch(0.266 0.009 194.153);
  --primary: oklch(0.769 0.096 192.427);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.615 0.131 19.638);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.615 0.131 19.638);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.588 0.238 29.158);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.769 0.096 192.427);
  --chart-1: oklch(0.769 0.096 192.427);
  --chart-2: oklch(0.615 0.131 19.638);
  --chart-3: oklch(0.615 0.131 19.638);
  --chart-4: oklch(0.641 0.121 18.943);
  --chart-5: oklch(0.776 0.1 192.329);
}