Fuzzy for shadcn/ui

Fuzzy is a shadcn/ui theme built around a light purple primary color (#e4bee4) with light teal accents (#bee4e4). The light mode uses a neutral background (#fefbfe). Dark mode keeps the light purple primary (#e4bee4) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fefbfewhite
#000000black
Foreground
#000000black
#f9f6f9whitesmoke
Card
#fdf7fdsnow
#030303black
Card foreground
#000000black
#fbf9fbsnow
Popover
#fdf7fdsnow
#030303black
Popover foreground
#000000black
#fbf9fbsnow
Primary
#e4bee4thistle
#e4bee4thistle
Primary foreground
#50214fdarkslategray
#50214fdarkslategray
Secondary
#e4e4bewheat
#e4e4bewheat
Secondary foreground
#4f5021darkolivegreen
#4f5021darkolivegreen
Muted
#f0f0e6linen
#191a0fblack
Muted foreground
#585841darkolivegreen
#bebea7silver
Accent
#bee4e4powderblue
#bee4e4powderblue
Accent foreground
#214f50darkslategray
#214f50darkslategray
Destructive
#af410dsaddlebrown
#d54f10chocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e4bee4thistle
#e4bee4thistle

Contrast

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

Light mode
Text on background20.42:1AAA
Text on card19.86:1AAA
Primary button7.64:1AAA
Secondary button6.46:1AA
Muted text6.32:1AA
Accent6.68:1AA
Destructive5.85:1AA
Dark mode
Text on background19.57:1AAA
Text on card19.73:1AAA
Primary button7.64:1AAA
Secondary button6.46:1AA
Muted text9.31:1AAA
Accent6.68:1AA
Destructive4.23: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.991 0.005 326.098);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.951 0.014 107.427);
  --muted-foreground: oklch(0.453 0.036 108.531);
  --popover: oklch(0.982 0.011 326.143);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.982 0.011 326.143);
  --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.846 0.067 326.667);
  --primary-foreground: oklch(0.334 0.097 328.111);
  --secondary: oklch(0.91 0.051 108.154);
  --secondary-foreground: oklch(0.418 0.068 109.869);
  --accent: oklch(0.891 0.04 197.732);
  --accent-foreground: oklch(0.396 0.05 196.817);
  --destructive: oklch(0.522 0.155 40.533);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.846 0.067 326.667);
  --chart-1: oklch(0.846 0.067 326.667);
  --chart-2: oklch(0.91 0.051 108.154);
  --chart-3: oklch(0.891 0.04 197.732);
  --chart-4: oklch(0.925 0.042 107.982);
  --chart-5: oklch(0.845 0.071 326.71);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.976 0.006 326.102);
  --muted: oklch(0.212 0.019 108.713);
  --muted-foreground: oklch(0.795 0.032 107.875);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(0.984 0.004 326.086);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.984 0.004 326.086);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.846 0.067 326.667);
  --primary-foreground: oklch(0.334 0.097 328.111);
  --secondary: oklch(0.91 0.051 108.154);
  --secondary-foreground: oklch(0.418 0.068 109.869);
  --accent: oklch(0.891 0.04 197.732);
  --accent-foreground: oklch(0.396 0.05 196.817);
  --destructive: oklch(0.602 0.181 40.215);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.846 0.067 326.667);
  --chart-1: oklch(0.846 0.067 326.667);
  --chart-2: oklch(0.91 0.051 108.154);
  --chart-3: oklch(0.891 0.04 197.732);
  --chart-4: oklch(0.925 0.042 107.982);
  --chart-5: oklch(0.845 0.071 326.71);
}