A small collection of important Tailwind commands and tools.
Go to the folder where Tailwind should be installed / used.
Create a.gitignore
file with the content:
node_modules/
npm init -y
-> generates the package.json
npm install tailwind postcss postcss-cli autoprefixer
-> installed tailwind and postcss
npm tailwindcss init -p
-> generates the tailwind.config.js
, -p
generate the postcss.config.js
The following order structure must be created:
tailwind.css
dist/css
-> the dist
folder contains the code to publish.styles.css
in thedist/css
folder.index.html
in the dist
folder.Node.js is indispensable for working with a tailwind.
Visual Studio Code usefull extensions.