Funny for shadcn/ui

Funny is a shadcn/ui theme built around a deep pink primary color (#3e192a) with deep blue accents (#192a3e). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep pink primary (#3e192a) on a pink-tinted background (#0d070a).

Color palette

TokenLightDark
Background
#ffffffwhite
#0d070ablack
Foreground
#0d0207black
#f9f5f7whitesmoke
Card
#ffffffwhite
#0d070ablack
Card foreground
#0d0207black
#f9f5f7whitesmoke
Popover
#ffffffwhite
#0d070ablack
Popover foreground
#0d0207black
#f9f5f7whitesmoke
Primary
#3e192adarkslategray
#3e192adarkslategray
Primary foreground
#deabc3plum
#deabc3plum
Secondary
#2a3e19darkslategray
#2a3e19darkslategray
Secondary foreground
#c3deabsilver
#c3deabsilver
Muted
#e5eeddbeige
#192211black
Muted foreground
#4a4c48darkslategray
#b5b7b3silver
Accent
#192a3edarkslategray
#192a3edarkslategray
Accent foreground
#abc3delightsteelblue
#abc3delightsteelblue
Destructive
#5c190amaroon
#d83b18firebrick
Destructive foreground
#f5b2a3lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#3e192adarkslategray
#3e192adarkslategray

Contrast

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

Light mode
Text on background20.41:1AAA
Text on card20.41:1AAA
Primary button7.79:1AAA
Secondary button7.96:1AAA
Muted text7.29:1AAA
Accent8.03:1AAA
Destructive7.37:1AAA
Dark mode
Text on background18.46:1AAA
Text on card18.46:1AAA
Primary button7.79:1AAA
Secondary button7.96:1AAA
Muted text8.09:1AAA
Accent8.03:1AAA
Destructive4.61:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.118 0.033 347.203);
  --muted: oklch(0.938 0.026 130.062);
  --muted-foreground: oklch(0.413 0.008 129.976);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.118 0.033 347.203);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.118 0.033 347.203);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.274 0.063 352.79);
  --primary-foreground: oklch(0.795 0.066 349.04);
  --secondary: oklch(0.337 0.065 132.212);
  --secondary-foreground: oklch(0.867 0.073 130.677);
  --accent: oklch(0.28 0.044 252.621);
  --accent-foreground: oklch(0.807 0.046 251.861);
  --destructive: oklch(0.322 0.1 33.999);
  --destructive-foreground: oklch(0.822 0.081 33.024);
  --ring: oklch(0.274 0.063 352.79);
  --chart-1: oklch(0.274 0.063 352.79);
  --chart-2: oklch(0.337 0.065 132.212);
  --chart-3: oklch(0.28 0.044 252.621);
  --chart-4: oklch(0.374 0.074 132.308);
  --chart-5: oklch(0.274 0.067 353.222);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.14 0.014 348.021);
  --foreground: oklch(0.975 0.005 347.047);
  --muted: oklch(0.239 0.035 131.459);
  --muted-foreground: oklch(0.777 0.007 129.872);
  --popover: oklch(0.14 0.014 348.021);
  --popover-foreground: oklch(0.975 0.005 347.047);
  --card: oklch(0.14 0.014 348.021);
  --card-foreground: oklch(0.975 0.005 347.047);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.274 0.063 352.79);
  --primary-foreground: oklch(0.795 0.066 349.04);
  --secondary: oklch(0.337 0.065 132.212);
  --secondary-foreground: oklch(0.867 0.073 130.677);
  --accent: oklch(0.28 0.044 252.621);
  --accent-foreground: oklch(0.807 0.046 251.861);
  --destructive: oklch(0.585 0.198 33.564);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.274 0.063 352.79);
  --chart-1: oklch(0.274 0.063 352.79);
  --chart-2: oklch(0.337 0.065 132.212);
  --chart-3: oklch(0.28 0.044 252.621);
  --chart-4: oklch(0.374 0.074 132.308);
  --chart-5: oklch(0.274 0.067 353.222);
}