Installation
Tailwind CSS
If you’re a Tailwind user, here are some additional (optional) steps to get the most out of cva
:
IntelliSense
You can enable autocompletion inside cva
using the steps below:
-
Install the “Tailwind CSS IntelliSense” Visual Studio Code extension
-
Add the following to your
.vscode/settings.json
:
Add the following to your .zed/settings.json
:
-
Add the following configuration:
-
Check the version. Available for WebStorm 2023.1 and later
-
Open the settings. Go to Languages and Frameworks | Style Sheets | Tailwind CSS
-
Add the following to your tailwind configuration
Handling Style Conflicts
If you want to merge Tailwind CSS classes without conflicts, you may wish to roll-your-own cva
with the tailwind-merge
package: