Fumbling for shadcn/ui

Fumbling is a shadcn/ui theme built around a neutral gray primary color (#747274) with neutral gray accents (#727474). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#747274) on a purple-tinted background (#0f060e).

Color palette

TokenLightDark
Background
#ffffffwhite
#0f060eblack
Foreground
#160315black
#faf5faghostwhite
Card
#ffffffwhite
#0f060eblack
Card foreground
#160315black
#faf5faghostwhite
Popover
#ffffffwhite
#0f060eblack
Popover foreground
#160315black
#faf5faghostwhite
Primary
#747274dimgray
#747274dimgray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#747472dimgray
#747472dimgray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#f4f5f0whitesmoke
#0f0f0ablack
Muted foreground
#505049darkslategray
#b6b6afdarkgray
Accent
#727474dimgray
#727474dimgray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#c7200afirebrick
#f4412aorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#747274dimgray
#747274dimgray

Contrast

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

Light mode
Text on background19.84:1AAA
Text on card19.84:1AAA
Primary button4.79:1AA
Secondary button4.69:1AA
Muted text7.39:1AAA
Accent4.71:1AA
Destructive5.77:1AA
Dark mode
Text on background18.55:1AAA
Text on card18.55:1AAA
Primary button4.79:1AA
Secondary button4.69:1AA
Muted text9.42:1AAA
Accent4.71:1AA
Destructive3.72:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.151 0.051 329.576);
  --muted: oklch(0.967 0.006 108.826);
  --muted-foreground: oklch(0.43 0.012 109.234);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.151 0.051 329.576);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.151 0.051 329.576);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.553 0.004 327.111);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.558 0.003 108.825);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.556 0.003 200.831);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.533 0.202 30.871);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.553 0.004 327.111);
  --chart-1: oklch(0.553 0.004 327.111);
  --chart-2: oklch(0.558 0.003 108.825);
  --chart-3: oklch(0.556 0.003 200.831);
  --chart-4: oklch(0.584 0.004 108.826);
  --chart-5: oklch(0.55 0.017 327.326);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.14 0.025 328.418);
  --foreground: oklch(0.975 0.009 327.126);
  --muted: oklch(0.167 0.009 109.714);
  --muted-foreground: oklch(0.775 0.011 108.963);
  --popover: oklch(0.14 0.025 328.418);
  --popover-foreground: oklch(0.975 0.009 327.126);
  --card: oklch(0.14 0.025 328.418);
  --card-foreground: oklch(0.975 0.009 327.126);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.553 0.004 327.111);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.558 0.003 108.825);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.556 0.003 200.831);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.64 0.218 30.986);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.553 0.004 327.111);
  --chart-1: oklch(0.553 0.004 327.111);
  --chart-2: oklch(0.558 0.003 108.825);
  --chart-3: oklch(0.556 0.003 200.831);
  --chart-4: oklch(0.584 0.004 108.826);
  --chart-5: oklch(0.55 0.017 327.326);
}