Criminal for shadcn/ui

Criminal is a shadcn/ui theme built around a vivid light yellow primary color (#fbfce8) with vivid light purple accents (#fce8fb). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid light yellow primary (#fbfce8) on a yellow-tinted background (#0e0f06).

Color palette

TokenLightDark
Background
#ffffffwhite
#0e0f06black
Foreground
#000000black
#fbfbf9snow
Card
#ffffffwhite
#0e0f06black
Card foreground
#000000black
#fbfbf9snow
Popover
#ffffffwhite
#0e0f06black
Popover foreground
#000000black
#fbfbf9snow
Primary
#fbfce8oldlace
#fbfce8oldlace
Primary foreground
#404409darkolivegreen
#404409darkolivegreen
Secondary
#e8fbfcaliceblue
#e8fbfcaliceblue
Secondary foreground
#094044darkslategray
#094044darkslategray
Muted
#eef6f7whitesmoke
#081111black
Muted foreground
#424748darkslategray
#b7bdbdsilver
Accent
#fce8fblavenderblush
#fce8fblavenderblush
Accent foreground
#9e1595darkmagenta
#9e1595darkmagenta
Destructive
#ac1411firebrick
#ec4441tomato
Destructive foreground
#fef1f1lavenderblush
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fbfce8oldlace
#fbfce8oldlace

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 button9.85:1AAA
Secondary button10.73:1AAA
Muted text8.60:1AAA
Accent6.05:1AA
Destructive6.68:1AA
Dark mode
Text on background18.64:1AAA
Text on card18.64:1AAA
Primary button9.85:1AAA
Secondary button10.73:1AAA
Muted text10.05:1AAA
Accent6.05:1AA
Destructive3.84: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.967 0.009 202.117);
  --muted-foreground: oklch(0.394 0.007 202.035);
  --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.985 0.026 109.961);
  --primary-foreground: oklch(0.37 0.077 113.529);
  --secondary: oklch(0.974 0.019 202.011);
  --secondary-foreground: oklch(0.339 0.054 202.342);
  --accent: oklch(0.953 0.032 327.871);
  --accent-foreground: oklch(0.492 0.21 331.484);
  --destructive: oklch(0.475 0.184 28.494);
  --destructive-foreground: oklch(0.969 0.013 18.574);
  --ring: oklch(0.985 0.026 109.961);
  --chart-1: oklch(0.985 0.026 109.961);
  --chart-2: oklch(0.974 0.019 202.011);
  --chart-3: oklch(0.953 0.032 327.871);
  --chart-4: oklch(0.99 0.008 202.131);
  --chart-5: oklch(0.986 0.027 109.978);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.163 0.018 111.296);
  --foreground: oklch(0.987 0.003 109.534);
  --muted: oklch(0.168 0.013 201.545);
  --muted-foreground: oklch(0.793 0.006 202.137);
  --popover: oklch(0.163 0.018 111.296);
  --popover-foreground: oklch(0.987 0.003 109.534);
  --card: oklch(0.163 0.018 111.296);
  --card-foreground: oklch(0.987 0.003 109.534);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.985 0.026 109.961);
  --primary-foreground: oklch(0.37 0.077 113.529);
  --secondary: oklch(0.974 0.019 202.011);
  --secondary-foreground: oklch(0.339 0.054 202.342);
  --accent: oklch(0.953 0.032 327.871);
  --accent-foreground: oklch(0.492 0.21 331.484);
  --destructive: oklch(0.631 0.206 26.117);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.985 0.026 109.961);
  --chart-1: oklch(0.985 0.026 109.961);
  --chart-2: oklch(0.974 0.019 202.011);
  --chart-3: oklch(0.953 0.032 327.871);
  --chart-4: oklch(0.99 0.008 202.131);
  --chart-5: oklch(0.986 0.027 109.978);
}