<link href="https://unpkg.com/tailwindcss@^1.0/dist/tailwind.min.css" rel="stylesheet">
npm install -D tailwindcss postcss autoprefixer
npx tailwindcss init
/*Follow the commands for Tailwind CLI*/
1. Initialize a node project in your directory:
npm init -y
2. Install tailwindcss as a devDependency:
npm i -D tailwindcss
3. Install vs code plugin: Tailwind CSS IntelliSense (not for terminal)
4. Create a configuration file for tailwindcss:
npx tailwindcss init
5. Create src and output folder in root.
6. In src folder create a file named tailwind.css / (anyname).css
7. In src/tailwind.css write these :
@tailwind base;
@tailwind components;
@tailwind utilities
8. Create a folder named .vscode and ini this folder create a file
named settings.json.
9. And paste this:
{
"css.validate": false,
"tailwindCSS.emmetCompletions": true
}
this setting will help to not get erron after writing css
10. In scritps property in package.json file write a build property:
"scripts":
"build": "tailwindcss -i ./src/tailwind.css -o ./output/tailwind.css -w"
11. Link tailwind in HTML like this href="./output/tailwind.css"
12. Now build tailwind:
npm run build
13. Now you just have on task to complete which is content configuration:
See the configuration from here:
https://tailwindcss.com/docs/content-configuration
npx tailwindcss -i style.css -o tailwind.css
Code Example |
---|
Css :: css flex justify self |
Css :: how to use nth-child |
Css :: css chamfered corner |
Css :: css basic template |
Css :: boostrap breakpoints |
Css :: what to use instead of overflow overlay |
Css :: css 2 divs nebeneinander |
Css :: feature detect css |
Css :: aspect ratio css media query |
Css :: change color select arrow css cf7 |
Css :: changong text color css |
Css :: gradient css |
Css :: scroll div when page scroll |
Css :: html and css websites |
Css :: learn css animation |
Css :: css max width substruction |
Css :: take out side bar in css |
Css :: pixel to inches |
Css :: make table cell less wide css |
Css :: acf wysiwyg height |
Css :: css apply style to direct children |
Css :: css() multiple |
Css :: object-fit: cover; |
Css :: css hover pointer |
Css :: materialize css icons |
Css :: add css to django |
Css :: circle css animation |
Css :: css icons free |
Css :: crop image in img |
Css :: css button type |