Fuzzy for shadcn/ui

Fuzzy is a shadcn/ui theme built around a vivid indigo primary color (#2922fc) with vivid violet accents (#9622fc). The light mode uses a neutral background (#fbfbfe). Dark mode keeps the vivid indigo primary (#2922fc) on a neutral background (#020208).

Color palette

TokenLightDark
Background
#fbfbfeghostwhite
#020208black
Foreground
#020208black
#fcfcfdwhite
Card
#fbfbfeghostwhite
#020208black
Card foreground
#020208black
#fcfcfdwhite
Popover
#fbfbfeghostwhite
#020208black
Popover foreground
#020208black
#fcfcfdwhite
Primary
#2922fcblue
#2922fcblue
Primary foreground
#ecebfflavender
#ecebfflavender
Secondary
#2288fcdodgerblue
#2288fcdodgerblue
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#dde0e3gainsboro
#1c1e22black
Muted foreground
#545759dimgray
#a6a8abdarkgray
Accent
#9622fcblueviolet
#9622fcblueviolet
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#6d0303maroon
#f91a1ared
Destructive foreground
#fda5a5lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#2922fcblue
#2922fcblue

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.56:1AA
Secondary button3.52:1AA Large
Muted text5.50:1AA
Accent5.34:1AA
Destructive6.65:1AA
Dark mode
Text on background20.16:1AAA
Text on card20.16:1AAA
Primary button6.56:1AA
Secondary button3.52:1AA Large
Muted text6.98:1AA
Accent5.34:1AA
Destructive4.03:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.004 287.864);
  --foreground: oklch(0.095 0.022 283.729);
  --muted: oklch(0.906 0.005 251.499);
  --muted-foreground: oklch(0.454 0.005 251.547);
  --popover: oklch(0.989 0.004 287.864);
  --popover-foreground: oklch(0.095 0.022 283.729);
  --card: oklch(0.989 0.004 287.864);
  --card-foreground: oklch(0.095 0.022 283.729);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.474 0.292 268.564);
  --primary-foreground: oklch(0.946 0.027 287.413);
  --secondary: oklch(0.632 0.195 255.57);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.564 0.281 300.804);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.339 0.136 28.794);
  --destructive-foreground: oklch(0.809 0.104 19.57);
  --ring: oklch(0.474 0.292 268.564);
  --chart-1: oklch(0.474 0.292 268.564);
  --chart-2: oklch(0.632 0.195 255.57);
  --chart-3: oklch(0.564 0.281 300.804);
  --chart-4: oklch(0.653 0.183 254.744);
  --chart-5: oklch(0.474 0.298 267.955);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.094 0.022 283.476);
  --foreground: oklch(0.991 0.002 287.908);
  --muted: oklch(0.235 0.008 251.695);
  --muted-foreground: oklch(0.731 0.005 251.505);
  --popover: oklch(0.094 0.022 283.476);
  --popover-foreground: oklch(0.991 0.002 287.908);
  --card: oklch(0.094 0.022 283.476);
  --card-foreground: oklch(0.991 0.002 287.908);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.474 0.292 268.564);
  --primary-foreground: oklch(0.946 0.027 287.413);
  --secondary: oklch(0.632 0.195 255.57);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.564 0.281 300.804);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.624 0.246 28.381);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.474 0.292 268.564);
  --chart-1: oklch(0.474 0.292 268.564);
  --chart-2: oklch(0.632 0.195 255.57);
  --chart-3: oklch(0.564 0.281 300.804);
  --chart-4: oklch(0.653 0.183 254.744);
  --chart-5: oklch(0.474 0.298 267.955);
}