Tailwind GPT is a VS Code extension that provides hover-based explanations for Tailwind CSS classes. It leverages the power of OpenAI's GPT-3.5 Turbo model to generate explanations in real-time as you hover over Tailwind CSS classes in your code.
This extension helps developers understand the purpose and effects of different Tailwind CSS classes directly within their development environment, eliminating the need to refer to external documentation or websites. It enhances the developer experience and speeds up the development process by providing contextual information at your fingertips.
Real-time Explanations: As you hover over a Tailwind CSS class, the extension quickly retrieves and displays an explanation for that class using the GPT-3.5 Turbo model. The explanations provide details on the purpose, usage, and effects of the class.
Tailwind CSS Support: The extension supports the latest version of Tailwind CSS and is regularly updated to ensure compatibility with new classes and features introduced in Tailwind CSS.
Customizable Options: Tailwind GPT offers customizable options to adapt the extension to your preferences. You can configure the appearance of the tooltip, adjust the delay for fetching explanations, and customize the key bindings.
Open Visual Studio Code.
Go to the Extensions view by clicking on the square icon in the sidebar or pressing Ctrl+Shift+X
(Cmd+Shift+X
on macOS).
Search for "Tailwind GPT" in the Extensions Marketplace.
Click on the "Install" button next to the "Tailwind GPT" extension.
Once the installation is complete, click on the "Reload" button to activate the extension.
Open a project that uses Tailwind CSS in Visual Studio Code.
Hover over a Tailwind CSS class in your code.
A panel will appear with the explanation for the hovered classses.
Read the explanation to understand the purpose and effects of the classes.
Tailwind GPT provides customizable options that you can modify to suit your preferences. To access the extension's configuration, follow these steps:
Go to the Extensions view in Visual Studio Code.
Click on the gear icon next to the "Tailwind GPT" extension.
Click on "Extension Settings" to open the settings file for the extension.
Modify the API_KEY.
Save the settings file.
If you encounter any issues, have suggestions for improvements, or would like to contribute to the Tailwind GPT extension, please visit the project's GitHub repository: Link to GitHub Repository
Feel free to submit bug reports, feature requests, or pull requests. Your contributions are highly appreciated.
Tailwind GPT is built by Matan Lasry and is powered by the OpenAI GPT-3.5 Turbo model.
We would like to thank OpenAI for providing access to the GPT-3.5 Turbo model, which made this extension possible.
Special thanks to the Tailwind CSS team for creating an amazing utility-first CSS framework that inspired this project.
If you have any questions, suggestions, or feedback, feel free to reach out to us: