Tailwind Titan is a Visual Studio Code extension that detects if a Nuxt.js project is using Tailwind CSS and transforms the custom Tailwind classes into optimized vanilla CSS.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Tailwind Titan is a Visual Studio Code extension that detects if a Nuxt.js project is using Tailwind CSS and transforms the custom Tailwind classes into optimized vanilla CSS. It was made out of the need to solve the issue of Tailwind styles not being shown on static site generation (with npm run generate). A few issues have been opened but the solutions suggested haven't worked all the time. This extension will create a /<rootDir>/assets/css/global.css file containing vanilla css representations of the tailwind classes in the components and pages as a hack for bypassing the UI framework.
[NOTE:] THIS PROJECT IS IN ACTIVE DEVELOPMENT. REFER TO THE GIHUB REPOSITORY OR PROJECT WIKI FOR MORE DETAILS.
Features
Detects if Tailwind CSS is installed in the project.
Transforms the custom tailwind code into optimized vanilla CSS.
Requirements
Project has initialized tailwind with npx tailwindcss init
Visual Studio Code v^1.76.0
TailwindCSS v^4.x
Installation
Open Visual Studio Code
Go to the Extensions view (View > Extensions)
Search for "Tailwind Titan"
Click Install to install the extension
Usage
Open a Nuxt.js project that uses Tailwind CSS
Run the "Check & Transform Tailwind CSS" command in the Command Palette (Ctrl/Cmd + Shift + P)
If Tailwind CSS is detected, the CSS code will be transformed into optimized CSS automatically and saved in a temporary file location to be moved to the path of your choice.
License
This extension is licensed under the MIT License. See the LICENSE file for details.
Issues
If you encounter any issues or have any feature requests, please file an issue on the GitHub repository.
tailwind-titan README
Requirements
None yet
Extension Settings
Plug and Play
Known Issues
Considers a project invalid if tailwind.config.js not available even if tailwind is in use in components and pages.