Criminal for shadcn/ui

Criminal is a shadcn/ui theme built around a deep green primary color (#212c11) with deep violet accents (#1c112c). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep green primary (#212c11) on a green-tinted background (#080b05).

Color palette

TokenLightDark
Background
#ffffffwhite
#080b05black
Foreground
#000000black
#f8f9f6whitesmoke
Card
#ffffffwhite
#080b05black
Card foreground
#000000black
#f8f9f6whitesmoke
Popover
#ffffffwhite
#080b05black
Popover foreground
#000000black
#f8f9f6whitesmoke
Primary
#212c11black
#212c11black
Primary foreground
#8eba4fyellowgreen
#8eba4fyellowgreen
Secondary
#1c112cblack
#1c112cblack
Secondary foreground
#b298d7plum
#b298d7plum
Muted
#dcd2e9gainsboro
#1f162dblack
Muted foreground
#5f576bdimgray
#9c94a8darkgray
Accent
#1c112cblack
#1c112cblack
Accent foreground
#b298d7plum
#b298d7plum
Destructive
#c32404firebrick
#fb4f2dtomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#212c11black
#212c11black

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button6.47:1AA
Secondary button7.16:1AAA
Muted text4.72:1AA
Accent7.16:1AAA
Destructive5.88:1AA
Dark mode
Text on background18.76:1AAA
Text on card18.76:1AAA
Primary button6.47:1AA
Secondary button7.16:1AAA
Muted text5.97:1AA
Accent7.16:1AAA
Destructive3.35:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.879 0.033 304.524);
  --muted-foreground: oklch(0.472 0.032 304.098);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --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.275 0.048 127.877);
  --primary-foreground: oklch(0.735 0.146 128.468);
  --secondary: oklch(0.209 0.053 301.177);
  --secondary-foreground: oklch(0.726 0.094 303.234);
  --accent: oklch(0.209 0.053 301.177);
  --accent-foreground: oklch(0.726 0.094 303.234);
  --destructive: oklch(0.528 0.197 32.106);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.275 0.048 127.877);
  --chart-1: oklch(0.275 0.048 127.877);
  --chart-2: oklch(0.209 0.053 301.177);
  --chart-3: oklch(0.209 0.053 301.177);
  --chart-4: oklch(0.235 0.064 300.841);
  --chart-5: oklch(0.278 0.051 128.062);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.142 0.015 124.509);
  --foreground: oklch(0.98 0.005 125.117);
  --muted: oklch(0.223 0.046 302.041);
  --muted-foreground: oklch(0.681 0.03 304.446);
  --popover: oklch(0.142 0.015 124.509);
  --popover-foreground: oklch(0.98 0.005 125.117);
  --card: oklch(0.142 0.015 124.509);
  --card-foreground: oklch(0.98 0.005 125.117);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.275 0.048 127.877);
  --primary-foreground: oklch(0.735 0.146 128.468);
  --secondary: oklch(0.209 0.053 301.177);
  --secondary-foreground: oklch(0.726 0.094 303.234);
  --accent: oklch(0.209 0.053 301.177);
  --accent-foreground: oklch(0.726 0.094 303.234);
  --destructive: oklch(0.665 0.213 33.153);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.275 0.048 127.877);
  --chart-1: oklch(0.275 0.048 127.877);
  --chart-2: oklch(0.209 0.053 301.177);
  --chart-3: oklch(0.209 0.053 301.177);
  --chart-4: oklch(0.235 0.064 300.841);
  --chart-5: oklch(0.278 0.051 128.062);
}