Fuzzy for shadcn/ui

Fuzzy is a shadcn/ui theme built around a muted teal primary color (#3f5f5c) with muted red accents (#5f3f42). The light mode uses a neutral background (#f8fcfb). Dark mode keeps the muted teal primary (#3f5f5c) on a neutral background (#030707).

Color palette

TokenLightDark
Background
#f8fcfbmintcream
#030707black
Foreground
#031110black
#f5fafamintcream
Card
#f8fcfbmintcream
#030707black
Card foreground
#031110black
#f5fafamintcream
Popover
#f8fcfbmintcream
#030707black
Popover foreground
#031110black
#f5fafamintcream
Primary
#3f5f5cdarkslategray
#3f5f5cdarkslategray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#5f3f42darkolivegreen
#5f3f42darkolivegreen
Secondary foreground
#ede3e4mistyrose
#ede3e4mistyrose
Muted
#e6cccelightgrey
#33191bblack
Muted foreground
#675b5cdimgray
#a49899darkgray
Accent
#5f3f42darkolivegreen
#5f3f42darkolivegreen
Accent foreground
#ede3e4mistyrose
#ede3e4mistyrose
Destructive
#af2b0dfirebrick
#e43811orangered
Destructive foreground
#fef3f1seashell
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#3f5f5cdarkslategray
#3f5f5cdarkslategray

Contrast

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

Light mode
Text on background18.56:1AAA
Text on card18.56:1AAA
Primary button6.99:1AA
Secondary button7.32:1AAA
Muted text4.29:1AA Large
Accent7.32:1AAA
Destructive6.06:1AA
Dark mode
Text on background19.19:1AAA
Text on card19.19:1AAA
Primary button6.99:1AA
Secondary button7.32:1AAA
Muted text5.79:1AA
Accent7.32:1AAA
Destructive4.32: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.987 0.004 191.171);
  --foreground: oklch(0.165 0.022 188.812);
  --muted: oklch(0.867 0.029 11.992);
  --muted-foreground: oklch(0.483 0.015 11.938);
  --popover: oklch(0.987 0.004 191.171);
  --popover-foreground: oklch(0.165 0.022 188.812);
  --card: oklch(0.987 0.004 191.171);
  --card-foreground: oklch(0.165 0.022 188.812);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.46 0.037 189.395);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.405 0.044 13.733);
  --secondary-foreground: oklch(0.925 0.01 11.487);
  --accent: oklch(0.405 0.044 13.733);
  --accent-foreground: oklch(0.925 0.01 11.487);
  --destructive: oklch(0.498 0.173 33.337);
  --destructive-foreground: oklch(0.972 0.012 32.664);
  --ring: oklch(0.46 0.037 189.395);
  --chart-1: oklch(0.46 0.037 189.395);
  --chart-2: oklch(0.405 0.044 13.733);
  --chart-3: oklch(0.405 0.044 13.733);
  --chart-4: oklch(0.432 0.048 13.772);
  --chart-5: oklch(0.465 0.042 189.155);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.123 0.011 190.519);
  --foreground: oklch(0.981 0.006 191.116);
  --muted: oklch(0.252 0.042 15.159);
  --muted-foreground: oklch(0.691 0.014 11.686);
  --popover: oklch(0.123 0.011 190.519);
  --popover-foreground: oklch(0.981 0.006 191.116);
  --card: oklch(0.123 0.011 190.519);
  --card-foreground: oklch(0.981 0.006 191.116);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.46 0.037 189.395);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.405 0.044 13.733);
  --secondary-foreground: oklch(0.925 0.01 11.487);
  --accent: oklch(0.405 0.044 13.733);
  --accent-foreground: oklch(0.925 0.01 11.487);
  --destructive: oklch(0.602 0.213 33.159);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.46 0.037 189.395);
  --chart-1: oklch(0.46 0.037 189.395);
  --chart-2: oklch(0.405 0.044 13.733);
  --chart-3: oklch(0.405 0.044 13.733);
  --chart-4: oklch(0.432 0.048 13.772);
  --chart-5: oklch(0.465 0.042 189.155);
}