Skip to content

feat: Add Tailwind CSS v4 support with dual v3/v4 presets#33

Merged
stevethomas merged 4 commits intomainfrom
steve/tailwind-4
Jan 19, 2026
Merged

feat: Add Tailwind CSS v4 support with dual v3/v4 presets#33
stevethomas merged 4 commits intomainfrom
steve/tailwind-4

Conversation

@stevethomas
Copy link
Member

@stevethomas stevethomas commented Jan 19, 2026

Summary

  • Upgrade demo app to Tailwind CSS v4 using @tailwindcss/vite plugin
  • Provide versioned presets for consumers:
    • @codinglabsau/gooey/presets/v3 - JavaScript config for Tailwind v3 (includes tailwindcss-animate)
    • @codinglabsau/gooey/presets/v4 - CSS-first config for Tailwind v4 (uses tw-animate-css)
  • Add prettier-plugin-tailwindcss for automatic class ordering
  • Update README and app docs with clear installation instructions for both versions

Breaking Changes

None - existing v3 consumers can continue using the library unchanged:

  • The v3 preset still includes tailwindcss-animate plugin
  • Preset export paths remain backwards compatible

Anything the reviewer needs to know

  • v3 consumers: Use tailwindcss-animate (included in preset automatically)
  • v4 consumers: Use tw-animate-css (CSS import, must install separately)
  • @tailwindcss/forms was removed - it was unused (no form-* classes in components)
  • @tailwindcss/typography is optional - only needed if using prose classes
  • eslint-plugin-tailwindcss removed (doesn't support v4); replaced with prettier-plugin-tailwindcss
  • All 88 component tests pass

🤖 Generated with Claude Code

- Upgrade demo app to Tailwind v4 with @tailwindcss/vite plugin
- Replace tailwindcss-animate with tw-animate-css (shadcn-vue approach)
- Create versioned presets: v3 (JS config) and v4 (CSS-first)
- Update slate.css to use standard CSS instead of @apply
- Add prettier-plugin-tailwindcss for class ordering
- Update README with installation instructions for both versions
- Remove deprecated postcss.config.cjs and tailwind.config.js

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
stevethomas and others added 3 commits January 19, 2026 15:49
- Add tw-animate-css as optional peerDependency to warn consumers
- Add prerequisites section to v4 preset documentation
- Add prerequisites and CSS usage docs to v3 preset
- Update README v3 section to use tw-animate-css instead of tailwindcss-animate

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Restore tailwindcss-animate and @tailwindcss/forms plugins in v3 preset
- Add @plugin "@tailwindcss/forms" to v4 preset
- Update README with correct dependencies for each version
- Add tailwindcss-animate and @tailwindcss/forms as optional peerDependencies

tw-animate-css is v4-only; v3 consumers should use tailwindcss-animate.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
…m presets

- Remove @tailwindcss/forms (unused - no form-* classes in components)
- Remove @tailwindcss/typography from required deps (only used in demo app)
- Update README and app docs with clear v3/v4 setup instructions
- Simplify preset prerequisites to essential dependencies only

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@stevethomas stevethomas merged commit 041639a into main Jan 19, 2026
2 checks passed
@stevethomas stevethomas deleted the steve/tailwind-4 branch January 19, 2026 06:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant