Your index.css file can contain utility classes.
You use the tailwind command tailwind -i index.css -o output.css to build and generate the css file.
In your html file: you need to use tailwind inline in the class attribute:
you rest of body
The last thing you need is the tailwind configuration file, which is automatically created when you run tailwind init in your working directory. The configuration file looks like this:
Your
index.css
file can contain utility classes. You use the tailwind commandtailwind -i index.css -o output.css
to build and generate the css file.In your html file: you need to use tailwind inline in the
class
attribute:The last thing you need is the tailwind configuration file, which is automatically created when you run
tailwind init
in your working directory. The configuration file looks like this:The purpose of this file is to check if any html file is using tailwind class and if so, render based on
output.css
when running the build command.