Hilarious for shadcn/ui

Hilarious is a shadcn/ui theme built around a deep red primary color (#0e0706) with deep indigo accents (#07060e). The light mode uses a neutral background (#fefbfb). Dark mode keeps the deep red primary (#0e0706) on a red-tinted background (#0a0505).

Color palette

TokenLightDark
Background
#fefbfbsnow
#0a0505black
Foreground
#080202black
#fcf8f8snow
Card
#fefbfbsnow
#0a0505black
Card foreground
#080202black
#fcf8f8snow
Popover
#fefbfbsnow
#0a0505black
Popover foreground
#080202black
#fcf8f8snow
Primary
#0e0706black
#0e0706black
Primary foreground
#c58281rosybrown
#c58281rosybrown
Secondary
#060e07black
#060e07black
Secondary foreground
#81c582darkseagreen
#81c582darkseagreen
Muted
#dee8degainsboro
#172117black
Muted foreground
#5d695edimgray
#96a296darkgray
Accent
#07060eblack
#07060eblack
Accent foreground
#c8c7e5thistle
#c8c7e5thistle
Destructive
#b94a0esienna
#df5911chocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0e0706black
#0e0706black

Contrast

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

Light mode
Text on background20.02:1AAA
Text on card20.02:1AAA
Primary button6.55:1AA
Secondary button9.53:1AAA
Muted text4.57:1AA
Accent12.23:1AAA
Destructive5.19:1AA
Dark mode
Text on background19.18:1AAA
Text on card19.18:1AAA
Primary button6.55:1AA
Secondary button9.53:1AAA
Muted text6.24:1AA
Accent12.23:1AAA
Destructive3.77: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.991 0.003 18.403);
  --foreground: oklch(0.103 0.02 22.718);
  --muted: oklch(0.92 0.016 145.91);
  --muted-foreground: oklch(0.508 0.023 145.672);
  --popover: oklch(0.991 0.003 18.403);
  --popover-foreground: oklch(0.103 0.02 22.718);
  --card: oklch(0.991 0.003 18.403);
  --card-foreground: oklch(0.103 0.02 22.718);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.137 0.014 20.43);
  --primary-foreground: oklch(0.676 0.083 20.543);
  --secondary: oklch(0.152 0.021 144.95);
  --secondary-foreground: oklch(0.761 0.117 144.699);
  --accent: oklch(0.13 0.018 284.568);
  --accent-foreground: oklch(0.84 0.042 286.226);
  --destructive: oklch(0.55 0.157 42.824);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.137 0.014 20.43);
  --chart-1: oklch(0.137 0.014 20.43);
  --chart-2: oklch(0.152 0.021 144.95);
  --chart-3: oklch(0.13 0.018 284.568);
  --chart-4: oklch(0.194 0.032 144.598);
  --chart-5: oklch(0.137 0.016 20.663);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.125 0.011 20.06);
  --foreground: oklch(0.982 0.004 18.429);
  --muted: oklch(0.234 0.022 145.236);
  --muted-foreground: oklch(0.698 0.022 145.798);
  --popover: oklch(0.125 0.011 20.06);
  --popover-foreground: oklch(0.982 0.004 18.429);
  --card: oklch(0.125 0.011 20.06);
  --card-foreground: oklch(0.982 0.004 18.429);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.137 0.014 20.43);
  --primary-foreground: oklch(0.676 0.083 20.543);
  --secondary: oklch(0.152 0.021 144.95);
  --secondary-foreground: oklch(0.761 0.117 144.699);
  --accent: oklch(0.13 0.018 284.568);
  --accent-foreground: oklch(0.84 0.042 286.226);
  --destructive: oklch(0.63 0.182 42.494);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.137 0.014 20.43);
  --chart-1: oklch(0.137 0.014 20.43);
  --chart-2: oklch(0.152 0.021 144.95);
  --chart-3: oklch(0.13 0.018 284.568);
  --chart-4: oklch(0.194 0.032 144.598);
  --chart-5: oklch(0.137 0.016 20.663);
}