-
Notifications
You must be signed in to change notification settings - Fork 360
feat(compiler): add tailwind css variables generation from vuestic.co… #4560
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
👷 Deploy request for vuestic-docs pending review.Visit the deploys page to approve it
|
✅ Deploy Preview for vuestic-storybook ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds Tailwind CSS v4 support to the Vuestic UI compiler, enabling automatic generation of CSS variables from Vuestic config colors for use as Tailwind classes. The implementation replaces the previous Tailwind v3 integration with a new v4-compatible approach.
Key changes:
- Implements a new
vuesticTailwind
compiler plugin that automatically generates CSS variables from Vuestic config colors - Updates documentation and create-vuestic tooling to use Tailwind CSS v4 with the new
@tailwindcss/vite
plugin - Simplifies Tailwind integration by removing the need for separate config files and using the new
@import "tailwindcss"
syntax
Reviewed Changes
Copilot reviewed 19 out of 20 changed files in this pull request and generated 5 comments.
Show a summary per file
File | Description |
---|---|
packages/compiler/tailwindcss/index.ts | New plugin that transforms CSS imports and generates Tailwind-compatible CSS variables from Vuestic colors |
packages/compiler/shared/vuestic-config.ts | Utility functions for reading and watching Vuestic config files |
packages/compiler/shared/ts.ts | TypeScript module execution utilities for dynamic config loading |
packages/docs/page-config/compiler/tailwind/index.ts | New documentation page for Tailwind integration |
packages/create-vuestic/src/steps/2.2.addTailwind.ts | Updated scaffolding to use Tailwind v4 syntax and dependencies |
packages/docs/nuxt.config.ts | Migration from @nuxtjs/tailwindcss to @tailwindcss/vite plugin |
Comments suppressed due to low confidence (2)
packages/compiler/package.json:19
- The version "^4.0.0" for @tailwindcss/vite does not exist. The latest available version is "^4.1.11" as shown in other parts of the codebase.
"@tailwindcss/vite": "^4.0.0",
packages/compiler/package.json:21
- The version "^4.0.0" for tailwindcss does not exist. The correct version should be "^4.1.11" as used elsewhere in the codebase.
"tailwindcss": "^4.0.0",
No description provided.