Maniac for shadcn/ui

Maniac is a shadcn/ui theme built around a vivid deep green primary color (#184404) with vivid deep green accents (#04440f). The light mode uses a neutral background (#fcfefb). Dark mode keeps the vivid deep green primary (#184404) on a neutral background (#040802).

Color palette

TokenLightDark
Background
#fcfefbwhite
#040802black
Foreground
#000000black
#ffffffwhite
Card
#fcfefbwhite
#040802black
Card foreground
#000000black
#ffffffwhite
Popover
#fcfefbwhite
#040802black
Popover foreground
#000000black
#ffffffwhite
Primary
#184404darkgreen
#184404darkgreen
Primary foreground
#63f320lawngreen
#63f320lawngreen
Secondary
#384404darkgreen
#384404darkgreen
Secondary foreground
#cdf320greenyellow
#cdf320greenyellow
Muted
#f4f5efwhitesmoke
#0f100ablack
Muted foreground
#494b3fdarkslategray
#bec0b4silver
Accent
#04440fdarkgreen
#04440fdarkgreen
Accent foreground
#20f347limegreen
#20f347limegreen
Destructive
#cb4810chocolate
#de4f12chocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#184404darkgreen
#184404darkgreen

Contrast

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

Light mode
Text on background20.66:1AAA
Text on card20.66:1AAA
Primary button7.71:1AAA
Secondary button8.24:1AAA
Muted text8.11:1AAA
Accent7.61:1AAA
Destructive4.68:1AA
Dark mode
Text on background20.19:1AAA
Text on card20.19:1AAA
Primary button7.71:1AAA
Secondary button8.24:1AAA
Muted text10.39:1AAA
Accent7.61:1AAA
Destructive4.01:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 135.443);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.968 0.007 114.967);
  --muted-foreground: oklch(0.407 0.02 115.745);
  --popover: oklch(0.994 0.003 135.443);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.994 0.003 135.443);
  --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.342 0.102 138.329);
  --primary-foreground: oklch(0.852 0.259 138.844);
  --secondary: oklch(0.363 0.084 120.426);
  --secondary-foreground: oklch(0.905 0.211 120.83);
  --accent: oklch(0.337 0.102 145.145);
  --accent-foreground: oklch(0.841 0.26 144.62);
  --destructive: oklch(0.577 0.176 39.348);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.342 0.102 138.329);
  --chart-1: oklch(0.342 0.102 138.329);
  --chart-2: oklch(0.363 0.084 120.426);
  --chart-3: oklch(0.337 0.102 145.145);
  --chart-4: oklch(0.413 0.096 120.686);
  --chart-5: oklch(0.345 0.105 138.399);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.124 0.019 133.925);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.168 0.011 116.084);
  --muted-foreground: oklch(0.804 0.017 115.221);
  --popover: oklch(0.124 0.019 133.925);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.124 0.019 133.925);
  --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.342 0.102 138.329);
  --primary-foreground: oklch(0.852 0.259 138.844);
  --secondary: oklch(0.363 0.084 120.426);
  --secondary-foreground: oklch(0.905 0.211 120.83);
  --accent: oklch(0.337 0.102 145.145);
  --accent-foreground: oklch(0.841 0.26 144.62);
  --destructive: oklch(0.616 0.189 39.225);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.342 0.102 138.329);
  --chart-1: oklch(0.342 0.102 138.329);
  --chart-2: oklch(0.363 0.084 120.426);
  --chart-3: oklch(0.337 0.102 145.145);
  --chart-4: oklch(0.413 0.096 120.686);
  --chart-5: oklch(0.345 0.105 138.399);
}