Wobbly for shadcn/ui

Wobbly is a shadcn/ui theme built around a vivid deep green primary color (#176105) with vivid deep purple accents (#4f0561). The light mode uses a neutral background (#fcfefb). Dark mode keeps the vivid deep green primary (#176105) on a green-tinted background (#070f05).

Color palette

TokenLightDark
Background
#fcfefbwhite
#070f05black
Foreground
#030901black
#fcfdfcwhite
Card
#fcfefbwhite
#070f05black
Card foreground
#030901black
#fcfdfcwhite
Popover
#fcfefbwhite
#070f05black
Popover foreground
#030901black
#fcfdfcwhite
Primary
#176105darkgreen
#176105darkgreen
Primary foreground
#b0fa9epalegreen
#b0fa9epalegreen
Secondary
#4f0561indigo
#4f0561indigo
Secondary foreground
#e89efaviolet
#e89efaviolet
Muted
#e1cbe7gainsboro
#2f1834darkslategray
Muted foreground
#413e41darkslategray
#c0bec1silver
Accent
#4f0561indigo
#4f0561indigo
Accent foreground
#e89efaviolet
#e89efaviolet
Destructive
#c63d0cfirebrick
#e7480dorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#176105darkgreen
#176105darkgreen

Contrast

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

Light mode
Text on background19.80:1AAA
Text on card19.80:1AAA
Primary button6.19:1AA
Secondary button7.02:1AAA
Muted text6.97:1AA
Accent7.02:1AAA
Destructive5.16:1AA
Dark mode
Text on background19.03:1AAA
Text on card19.03:1AAA
Primary button6.19:1AA
Secondary button7.02:1AAA
Muted text8.73:1AAA
Accent7.02:1AAA
Destructive3.93:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.004 139.443);
  --foreground: oklch(0.126 0.029 137.18);
  --muted: oklch(0.869 0.044 319.458);
  --muted-foreground: oklch(0.369 0.005 319.448);
  --popover: oklch(0.994 0.004 139.443);
  --popover-foreground: oklch(0.126 0.029 137.18);
  --card: oklch(0.994 0.004 139.443);
  --card-foreground: oklch(0.126 0.029 137.18);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.431 0.137 140.741);
  --primary-foreground: oklch(0.915 0.141 139.479);
  --secondary: oklch(0.317 0.148 317.73);
  --secondary-foreground: oklch(0.802 0.147 319.438);
  --accent: oklch(0.317 0.148 317.73);
  --accent-foreground: oklch(0.802 0.147 319.438);
  --destructive: oklch(0.555 0.181 36.884);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.431 0.137 140.741);
  --chart-1: oklch(0.431 0.137 140.741);
  --chart-2: oklch(0.317 0.148 317.73);
  --chart-3: oklch(0.317 0.148 317.73);
  --chart-4: oklch(0.348 0.163 317.581);
  --chart-5: oklch(0.435 0.14 140.792);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.157 0.027 138.311);
  --foreground: oklch(0.993 0.002 139.444);
  --muted: oklch(0.254 0.058 319.391);
  --muted-foreground: oklch(0.804 0.004 319.446);
  --popover: oklch(0.157 0.027 138.311);
  --popover-foreground: oklch(0.993 0.002 139.444);
  --card: oklch(0.157 0.027 138.311);
  --card-foreground: oklch(0.993 0.002 139.444);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.431 0.137 140.741);
  --primary-foreground: oklch(0.915 0.141 139.479);
  --secondary: oklch(0.317 0.148 317.73);
  --secondary-foreground: oklch(0.802 0.147 319.438);
  --accent: oklch(0.317 0.148 317.73);
  --accent-foreground: oklch(0.802 0.147 319.438);
  --destructive: oklch(0.623 0.205 36.677);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.431 0.137 140.741);
  --chart-1: oklch(0.431 0.137 140.741);
  --chart-2: oklch(0.317 0.148 317.73);
  --chart-3: oklch(0.317 0.148 317.73);
  --chart-4: oklch(0.348 0.163 317.581);
  --chart-5: oklch(0.435 0.14 140.792);
}