Funny for shadcn/ui

Funny is a shadcn/ui theme built around a blue primary color (#2a41d5) with yellow accents (#d5be2a). The light mode uses a neutral background (#f7f8fd). Dark mode keeps the blue primary (#2a41d5) on a neutral background (#010204).

Color palette

TokenLightDark
Background
#f7f8fdghostwhite
#010204black
Foreground
#000000black
#f8f8fcghostwhite
Card
#f7f8fdghostwhite
#010204black
Card foreground
#000000black
#f8f8fcghostwhite
Popover
#f7f8fdghostwhite
#010204black
Popover foreground
#000000black
#f8f8fcghostwhite
Primary
#2a41d5royalblue
#2a41d5royalblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#d5be2agoldenrod
#d5be2agoldenrod
Secondary foreground
#2b2608black
#2b2608black
Muted
#e3e2d9gainsboro
#26251cblack
Muted foreground
#5d5a46darkolivegreen
#b9b6a2darkgray
Accent
#d5be2agoldenrod
#d5be2agoldenrod
Accent foreground
#2b2608black
#2b2608black
Destructive
#d13115firebrick
#ea462achocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#2a41d5royalblue
#2a41d5royalblue

Contrast

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

Light mode
Text on background19.75:1AAA
Text on card19.75:1AAA
Primary button7.46:1AAA
Secondary button8.12:1AAA
Muted text5.34:1AA
Accent8.12:1AAA
Destructive5.05:1AA
Dark mode
Text on background19.63:1AAA
Text on card19.63:1AAA
Primary button7.46:1AAA
Secondary button8.12:1AAA
Muted text7.52:1AAA
Accent8.12:1AAA
Destructive3.87:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.979 0.007 279.231);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.911 0.012 99.54);
  --muted-foreground: oklch(0.465 0.031 100.204);
  --popover: oklch(0.979 0.007 279.231);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.979 0.007 279.231);
  --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.467 0.225 268.301);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.798 0.155 99.829);
  --secondary-foreground: oklch(0.267 0.046 100.548);
  --accent: oklch(0.798 0.155 99.829);
  --accent-foreground: oklch(0.267 0.046 100.548);
  --destructive: oklch(0.564 0.2 32.15);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.467 0.225 268.301);
  --chart-1: oklch(0.467 0.225 268.301);
  --chart-2: oklch(0.798 0.155 99.829);
  --chart-3: oklch(0.798 0.155 99.829);
  --chart-4: oklch(0.809 0.152 100.15);
  --chart-5: oklch(0.465 0.233 267.748);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.079 0.014 273.011);
  --foreground: oklch(0.981 0.005 279.27);
  --muted: oklch(0.263 0.017 100.166);
  --muted-foreground: oklch(0.773 0.028 99.84);
  --popover: oklch(0.079 0.014 273.011);
  --popover-foreground: oklch(0.981 0.005 279.27);
  --card: oklch(0.079 0.014 273.011);
  --card-foreground: oklch(0.981 0.005 279.27);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.467 0.225 268.301);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.798 0.155 99.829);
  --secondary-foreground: oklch(0.267 0.046 100.548);
  --accent: oklch(0.798 0.155 99.829);
  --accent-foreground: oklch(0.267 0.046 100.548);
  --destructive: oklch(0.628 0.205 32.379);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.467 0.225 268.301);
  --chart-1: oklch(0.467 0.225 268.301);
  --chart-2: oklch(0.798 0.155 99.829);
  --chart-3: oklch(0.798 0.155 99.829);
  --chart-4: oklch(0.809 0.152 100.15);
  --chart-5: oklch(0.465 0.233 267.748);
}