Wobbly for shadcn/ui

Wobbly is a shadcn/ui theme built around a muted light orange primary color (#cac5be) with muted light yellow accents (#cacabe). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light orange primary (#cac5be) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#100b04black
#f9f8f5whitesmoke
Card
#ffffffwhite
#000000black
Card foreground
#100b04black
#f9f8f5whitesmoke
Popover
#ffffffwhite
#000000black
Popover foreground
#100b04black
#f9f8f5whitesmoke
Primary
#cac5besilver
#cac5besilver
Primary foreground
#302c27darkslategray
#302c27darkslategray
Secondary
#cabfbesilver
#cabfbesilver
Secondary foreground
#302727darkslategray
#302727darkslategray
Muted
#e9e7e7linen
#181616black
Muted foreground
#6b6161dimgray
#9e9494rosybrown
Accent
#cacabesilver
#cacabesilver
Accent foreground
#2f3027darkslategray
#2f3027darkslategray
Destructive
#8b0909darkred
#f33f3ftomato
Destructive foreground
#fccacapink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#cac5besilver
#cac5besilver

Contrast

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

Light mode
Text on background19.59:1AAA
Text on card19.59:1AAA
Primary button8.08:1AAA
Secondary button8.11:1AAA
Muted text4.85:1AA
Accent8.08:1AAA
Destructive6.74:1AA
Dark mode
Text on background19.77:1AAA
Text on card19.77:1AAA
Primary button8.08:1AAA
Secondary button8.11:1AAA
Muted text6.11:1AA
Accent8.08:1AAA
Destructive3.75:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.153 0.018 76.757);
  --muted: oklch(0.929 0.003 20.928);
  --muted-foreground: oklch(0.503 0.012 21.214);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.153 0.018 76.757);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.153 0.018 76.757);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.826 0.011 73.121);
  --primary-foreground: oklch(0.295 0.01 72.924);
  --secondary: oklch(0.814 0.013 21.089);
  --secondary-foreground: oklch(0.284 0.012 21.483);
  --accent: oklch(0.836 0.016 109.062);
  --accent-foreground: oklch(0.305 0.015 109.607);
  --destructive: oklch(0.404 0.16 28.427);
  --destructive-foreground: oklch(0.883 0.056 18.271);
  --ring: oklch(0.826 0.011 73.121);
  --chart-1: oklch(0.826 0.011 73.121);
  --chart-2: oklch(0.814 0.013 21.089);
  --chart-3: oklch(0.836 0.016 109.062);
  --chart-4: oklch(0.839 0.011 21.055);
  --chart-5: oklch(0.827 0.014 73.089);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.979 0.003 73.193);
  --muted: oklch(0.202 0.004 21.161);
  --muted-foreground: oklch(0.676 0.012 21.109);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.979 0.003 73.193);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.979 0.003 73.193);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.826 0.011 73.121);
  --primary-foreground: oklch(0.295 0.01 72.924);
  --secondary: oklch(0.814 0.013 21.089);
  --secondary-foreground: oklch(0.284 0.012 21.483);
  --accent: oklch(0.836 0.016 109.062);
  --accent-foreground: oklch(0.305 0.015 109.607);
  --destructive: oklch(0.638 0.216 25.809);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.826 0.011 73.121);
  --chart-1: oklch(0.826 0.011 73.121);
  --chart-2: oklch(0.814 0.013 21.089);
  --chart-3: oklch(0.836 0.016 109.062);
  --chart-4: oklch(0.839 0.011 21.055);
  --chart-5: oklch(0.827 0.014 73.089);
}