enhance your workflow when working with Tailwind CSS. It provides a live preview of your HTML code, including Tailwind CSS, allowing you to see changes in real-time as you work.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Tailwind Preview is a Visual Studio Code extension designed to enhance your workflow when working with Tailwind CSS. It provides a live preview of your HTML code, including Tailwind CSS, allowing you to see changes in real-time as you work.
Features
Live preview of HTML with Tailwind CSS.
Automatic server management: The extension starts and stops a local server for the preview as needed.
Real-time updates: The preview updates in real-time as you edit your HTML code with Tailwind CSS.
Installation
You can install the Tailwind Preview extension directly from the Visual Studio Code Marketplace. Just search for "Tailwind Preview" in the Extensions view (Ctrl+Shift+X).
Usage
Open a Workspace that contains Tailwind CSS.
Focus on a file containing HTML with Tailwind CSS.
Run the tailwind-preview.startServer command from the Command Palette (Ctrl+Shift+P). This will start the preview server.
The preview will open automatically.
As you edit your HTML code with Tailwind CSS, the live preview will update in real-time.
When you're done, you can stop the preview server by running the tailwind-preview.stopServer command from the Command Palette. If the Workspace is closed, the server will stop automatically.
Make sure to run Tailwind CSS with the --watch option. The CSS file specified in the settings will be watched for changes and will trigger a live update when modified.