Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

how to install tailwind for react

1) Install in your project
npm install -D tailwindcss postcss autoprefixer

2) Install tailwindcss and its peer 
dependencies via npm, and then run 
the init command to generate both 
tailwind.config.js and postcss.config.js.
"npx tailwindcss init -p"

3) Configure your template paths.
Add the paths to all of your template 
files in your tailwind.config.js file.

"module.exports = {
  content: [
    "./src/**/*.{js,jsx,ts,tsx}",
  ],
  theme: {
    extend: {},
  },
  plugins: [],
}"

4) Add the Tailwind directives to your CSS
Add the @tailwind directives for each of Tailwind’s 
layers to your ./src/index.css file.
"@tailwind base;"
"@tailwind components;"
"@tailwind utilities;"
Comment

commmand for installing tailwind to react

npm install tailwindcss
Comment

install tailwind react

Explained well in the source below
https://www.youtube.com/watch?v=kyjmpeBbtPg
Comment

PREVIOUS NEXT
Code Example
Shell :: add file to gitignore 
Shell :: push to git with token 
Shell :: docker extract file from image 
Shell :: how to install as dev dependency 
Shell :: docker stop running container 
Shell :: how to get directory size in linux 
Shell :: what is difference between npm install and npm install save --dev 
Shell :: powershell count lines of code 
Shell :: python listen on port 
Shell :: windows how to install and use RSAT tools 
Shell :: debian search entire system for file 
Shell :: change message from last pushed commit 
Shell :: asyncstorage community 
Shell :: how to install homebrew 
Shell :: Count files and directories using shell script 
Shell :: git commit not showing up in github 
Shell :: change ubuntu username 
Shell :: what service is listen on what port linux 
Shell :: teamviewer raspberry pi command line 
Shell :: bash split 
Shell :: add a home directory for existing user 
Shell :: make shortcut folder in htdocs 
Shell :: install choclatey 
Shell :: git-hub push code 
Shell :: adding in ssh agent 
Shell :: docker compose down single container 
Shell :: bash how to quotes work 
Shell :: how to go back in terminal 
Shell :: bash get last field in line 
Shell :: curl test https 
ADD CONTENT
Topic
Content
Source link
Name
7+9 =