Hilarious for shadcn/ui

Hilarious is a shadcn/ui theme built around a deep green primary color (#3c4e12) with deep purple accents (#4e123c). The light mode uses a neutral background (#fbfcf8). Dark mode keeps the deep green primary (#3c4e12) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fbfcf8snow
#000000black
Foreground
#0d1104black
#fdfdfcwhite
Card
#f9fbf4whitesmoke
#030303black
Card foreground
#0a0d03black
#ffffffwhite
Popover
#f9fbf4whitesmoke
#030303black
Popover foreground
#0a0d03black
#ffffffwhite
Primary
#3c4e12darkolivegreen
#3c4e12darkolivegreen
Primary foreground
#d7eba8palegoldenrod
#d7eba8palegoldenrod
Secondary
#123c4edarkslategray
#123c4edarkslategray
Secondary foreground
#a8d7eblightblue
#a8d7eblightblue
Muted
#e3eaedlavender
#12191cblack
Muted foreground
#3d4142darkslategray
#bdc0c2silver
Accent
#4e123cdarkslategray
#4e123cdarkslategray
Accent foreground
#eba8d7plum
#eba8d7plum
Destructive
#a3170ffirebrick
#ea251acrimson
Destructive foreground
#fde9e8linen
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#3c4e12darkolivegreen
#3c4e12darkolivegreen

Contrast

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

Light mode
Text on background18.54:1AAA
Text on card18.73:1AAA
Primary button7.07:1AAA
Secondary button7.57:1AAA
Muted text8.49:1AAA
Accent7.49:1AAA
Destructive6.68:1AA
Dark mode
Text on background20.63:1AAA
Text on card20.67:1AAA
Primary button7.07:1AAA
Secondary button7.57:1AAA
Muted text9.71:1AAA
Accent7.49:1AAA
Destructive4.40:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.006 120.139);
  --foreground: oklch(0.168 0.029 121.737);
  --muted: oklch(0.933 0.009 225.092);
  --muted-foreground: oklch(0.372 0.005 225.153);
  --popover: oklch(0.984 0.009 120.19);
  --popover-foreground: oklch(0.15 0.025 120.388);
  --card: oklch(0.984 0.009 120.19);
  --card-foreground: oklch(0.15 0.025 120.388);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.397 0.086 124.793);
  --primary-foreground: oklch(0.908 0.089 121.747);
  --secondary: oklch(0.338 0.055 230.09);
  --secondary-foreground: oklch(0.852 0.056 225.987);
  --accent: oklch(0.303 0.103 342.181);
  --accent-foreground: oklch(0.809 0.098 338.008);
  --destructive: oklch(0.46 0.175 29.204);
  --destructive-foreground: oklch(0.949 0.022 21.193);
  --ring: oklch(0.397 0.086 124.793);
  --chart-1: oklch(0.397 0.086 124.793);
  --chart-2: oklch(0.338 0.055 230.09);
  --chart-3: oklch(0.303 0.103 342.181);
  --chart-4: oklch(0.372 0.062 230.343);
  --chart-5: oklch(0.401 0.089 124.999);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.993 0.001 120.05);
  --muted: oklch(0.208 0.013 225.894);
  --muted-foreground: oklch(0.806 0.005 225.045);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --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.397 0.086 124.793);
  --primary-foreground: oklch(0.908 0.089 121.747);
  --secondary: oklch(0.338 0.055 230.09);
  --secondary-foreground: oklch(0.852 0.056 225.987);
  --accent: oklch(0.303 0.103 342.181);
  --accent-foreground: oklch(0.809 0.098 338.008);
  --destructive: oklch(0.601 0.229 29.217);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.397 0.086 124.793);
  --chart-1: oklch(0.397 0.086 124.793);
  --chart-2: oklch(0.338 0.055 230.09);
  --chart-3: oklch(0.303 0.103 342.181);
  --chart-4: oklch(0.372 0.062 230.343);
  --chart-5: oklch(0.401 0.089 124.999);
}