Wobbly is a shadcn/ui theme built around a vivid green primary color (#91ff75) with vivid purple accents (#e375ff). The light mode uses a neutral background (#f8fdf7). Dark mode keeps the vivid green primary (#91ff75) on a green-tinted background (#080e06).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fdf7mintcream | #080e06black |
| Foreground | #050c03black | #fcfdfcwhite |
| Card | #f8fdf7mintcream | #080e06black |
| Card foreground | #050c03black | #fcfdfcwhite |
| Popover | #f8fdf7mintcream | #080e06black |
| Popover foreground | #050c03black | #fcfdfcwhite |
| Primary | #91ff75lightgreen | #91ff75lightgreen |
| Primary foreground | #0d4200darkgreen | #0d4200darkgreen |
| Secondary | #e375ffviolet | #e375ffviolet |
| Secondary foreground | #350042midnightblue | #350042midnightblue |
| Muted | #f0e8f2lavender | #150d17black |
| Muted foreground | #5c545fdimgray | #a9a0abdarkgray |
| Accent | #e375ffviolet | #e375ffviolet |
| Accent foreground | #350042midnightblue | #350042midnightblue |
| Destructive | #6f300bsaddlebrown | #e9671cchocolate |
| Destructive foreground | #f8cdb5peachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #91ff75lightgreen | #91ff75lightgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.18:1 | AAA |
| Text on card | 19.18:1 | AAA |
| Primary button | 9.33:1 | AAA |
| Secondary button | 6.73:1 | AA |
| Muted text | 6.08:1 | AA |
| Accent | 6.73:1 | AA |
| Destructive | 6.83:1 | AA |
| Text on background | 19.14:1 | AAA |
| Text on card | 19.14:1 | AAA |
| Primary button | 9.33:1 | AAA |
| Secondary button | 6.73:1 | AA |
| Muted text | 7.54:1 | AAA |
| Accent | 6.73:1 | AA |
| Destructive | 6.39:1 | AA |
Paste this into your globals.css to use Wobbly in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.008 139.442);
--foreground: oklch(0.143 0.028 137.664);
--muted: oklch(0.941 0.015 319.449);
--muted-foreground: oklch(0.458 0.02 319.456);
--popover: oklch(0.988 0.008 139.442);
--popover-foreground: oklch(0.143 0.028 137.664);
--card: oklch(0.988 0.008 139.442);
--card-foreground: oklch(0.143 0.028 137.664);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.905 0.203 139.662);
--primary-foreground: oklch(0.333 0.108 140.259);
--secondary: oklch(0.741 0.216 319.261);
--secondary-foreground: oklch(0.242 0.117 318.063);
--accent: oklch(0.741 0.216 319.261);
--accent-foreground: oklch(0.242 0.117 318.063);
--destructive: oklch(0.391 0.101 45.873);
--destructive-foreground: oklch(0.879 0.058 51.736);
--ring: oklch(0.905 0.203 139.662);
--chart-1: oklch(0.905 0.203 139.662);
--chart-2: oklch(0.741 0.216 319.261);
--chart-3: oklch(0.741 0.216 319.261);
--chart-4: oklch(0.765 0.194 319.35);
--chart-5: oklch(0.909 0.208 139.682);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.154 0.019 138.632);
--foreground: oklch(0.993 0.002 139.444);
--muted: oklch(0.174 0.023 319.462);
--muted-foreground: oklch(0.718 0.018 319.451);
--popover: oklch(0.154 0.019 138.632);
--popover-foreground: oklch(0.993 0.002 139.444);
--card: oklch(0.154 0.019 138.632);
--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.905 0.203 139.662);
--primary-foreground: oklch(0.333 0.108 140.259);
--secondary: oklch(0.741 0.216 319.261);
--secondary-foreground: oklch(0.242 0.117 318.063);
--accent: oklch(0.741 0.216 319.261);
--accent-foreground: oklch(0.242 0.117 318.063);
--destructive: oklch(0.664 0.179 44.999);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.905 0.203 139.662);
--chart-1: oklch(0.905 0.203 139.662);
--chart-2: oklch(0.741 0.216 319.261);
--chart-3: oklch(0.741 0.216 319.261);
--chart-4: oklch(0.765 0.194 319.35);
--chart-5: oklch(0.909 0.208 139.682);
}