Funny for shadcn/ui

Funny is a shadcn/ui theme built around a green primary color (#44c154) with muted light green accents (#dee3de). The light mode uses a neutral background (#fbfefb). Dark mode keeps the green primary (#44c154) on a green-tinted background (#041006).

Color palette

TokenLightDark
Background
#fbfefbwhite
#041006black
Foreground
#010402black
#ffffffwhite
Card
#fbfefbwhite
#041006black
Card foreground
#010402black
#ffffffwhite
Popover
#fbfefbwhite
#041006black
Popover foreground
#010402black
#ffffffwhite
Primary
#44c154mediumseagreen
#44c154mediumseagreen
Primary foreground
#0e2a12black
#0e2a12black
Secondary
#dee3degainsboro
#1c211dblack
Secondary foreground
#414e43darkslategray
#b3bdb4silver
Muted
#e2e9e3gainsboro
#161d17black
Muted foreground
#465348darkslategray
#acb9aedarkgray
Accent
#dee3degainsboro
#1c211dblack
Accent foreground
#414e43darkslategray
#b3bdb4silver
Destructive
#802a00saddlebrown
#ff5c0aorangered
Destructive foreground
#ffccb3peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#44c154mediumseagreen
#44c154mediumseagreen

Contrast

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

Light mode
Text on background20.29:1AAA
Text on card20.29:1AAA
Primary button6.59:1AA
Secondary button6.74:1AA
Muted text6.56:1AA
Accent6.74:1AA
Destructive6.46:1AA
Dark mode
Text on background19.40:1AAA
Text on card19.40:1AAA
Primary button6.59:1AA
Secondary button8.45:1AAA
Muted text8.42:1AAA
Accent8.45:1AAA
Destructive6.78:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.006 149.615);
  --foreground: oklch(0.097 0.017 148.576);
  --muted: oklch(0.927 0.011 149.533);
  --muted-foreground: oklch(0.427 0.023 148.987);
  --popover: oklch(0.994 0.006 149.615);
  --popover-foreground: oklch(0.097 0.017 148.576);
  --card: oklch(0.994 0.006 149.615);
  --card-foreground: oklch(0.097 0.017 148.576);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.717 0.185 145.559);
  --primary-foreground: oklch(0.256 0.056 146.39);
  --secondary: oklch(0.911 0.009 149.565);
  --secondary-foreground: oklch(0.408 0.025 148.908);
  --accent: oklch(0.911 0.009 149.565);
  --accent-foreground: oklch(0.408 0.025 148.908);
  --destructive: oklch(0.41 0.126 40.98);
  --destructive-foreground: oklch(0.883 0.068 47.936);
  --ring: oklch(0.717 0.185 145.559);
  --chart-1: oklch(0.717 0.185 145.559);
  --chart-2: oklch(0.911 0.009 149.565);
  --chart-3: oklch(0.911 0.009 149.565);
  --chart-4: oklch(0.933 0.006 149.598);
  --chart-5: oklch(0.725 0.193 145.361);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.157 0.029 148.069);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.221 0.016 148.753);
  --muted-foreground: oklch(0.772 0.02 149.357);
  --popover: oklch(0.157 0.029 148.069);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.157 0.029 148.069);
  --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.717 0.185 145.559);
  --primary-foreground: oklch(0.256 0.056 146.39);
  --secondary: oklch(0.241 0.009 149.189);
  --secondary-foreground: oklch(0.787 0.016 149.424);
  --accent: oklch(0.241 0.009 149.189);
  --accent-foreground: oklch(0.787 0.016 149.424);
  --destructive: oklch(0.684 0.211 40);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.717 0.185 145.559);
  --chart-1: oklch(0.717 0.185 145.559);
  --chart-2: oklch(0.241 0.009 149.189);
  --chart-3: oklch(0.241 0.009 149.189);
  --chart-4: oklch(0.274 0.011 149.156);
  --chart-5: oklch(0.725 0.193 145.361);
}