showing results for - "create react app and tailwind"
Jessica
24 Oct 2018
11. npx create-react-app .
2
32. npm i -D tailwindcss postcss-cli autoprefixer 
4or
5npm install tailwindcss@latest postcss@latest autoprefixer@latest
6//postcss - transform our compile css 
7// autoprefixer - set vendor prefixes within our css automatically when needed
8
9//Generate npc config file
103.npx tailwind init tailwind.js --full
11
12// Create post css config file
134. touch postcss.config.js
14
15//open postcss.config.js
16//add this to the file
17__________________________________________
18const tailwindcss = require('tailwindcss');
19module.exports = {
20  plugins: [
21    tailwindcss('./tailwind.js'),
22    require('autoprefixer')
23  ]
24}
25__________________________________________
26
275. inside scr, create assets folder src/assets
28- create tailwind.css and main.css
29
30in tailwind, add this code
31//this will compile to the main css that will include in our app
32___________________________________________
33@import "tailwindcss/base";
34@import "tailwindcss/components";
35@import "tailwindcss/utilities";
36___________________________________________
37
386. Open package.json and add this iside the scripts
39___________________________________________
40   "start": "npm run watch:css && react-scripts start",
41    "build": "npm run build:css && react-scripts build",
42    "test": "react-scripts test",
43    "eject": "react-scripts eject",
44    "build:css": "postcss src/assets/tailwind.css -o src/assets/main.css",
45    "watch:css": "postcss src/assets/tailwind.css -o src/assets/main.css"
46____________________________________________
477. run 'npm start'
48
49
50add this to index.js
51_____________________________________
52import React from 'react';
53import ReactDOM from 'react-dom';
54import './assets/main.css';
55import App from './App';
56
57ReactDOM.render(
58  <React.StrictMode>
59    <App />
60  </React.StrictMode>,
61  document.getElementById('root')
62);
63_________________________________
64
65
66install router
67
681. npm i --save react-router-dom
69
Kourtney
23 Sep 2016
1@import "tailwindcss/base";
2
3@import "tailwindcss/components";
4
5@import "tailwindcss/utilities";
6
Monica
27 Mar 2020
1"scripts": {
2  "start": "npm run watch:css && react-scripts start",
3  "build": "npm run watch:css && react-scripts build",
4  "test": "react-scripts test",
5  "eject": "react-scripts eject",
6  "watch:css": "postcss src/assets/tailwind.css -o src/assets/main.css"
7}
8
queries leading to this page
reactjs tailwind setupcreate react app add tailwindtailwind css for create react appwhere do you put tailwind css in a react appreact install tailwind without create react appsetup tailwind css with reactcreating react app with tailwindcsshow to use talwind css in reactset up tailwind css in react appsetup tailwind in reacttailwind not starting up in react appreact js tailwind cssreact tailwind intellisenseimport tailwind css react in app jsreact app tailwindinstall tailwind in reactadd tailwind css to reacttailwind css with reactadding tailwind to reactjsadding tailwind css to react librarytailwindcss reactadd tailwind react projecttailwind css install react globallyadd tailwind components to react appcreate new react project with tailwind cssinstall tailwind css in react js projecttailwind in reactnpx create react app tailwinds tailwind css npm buildnpx create react app with tailwindcreate a tailwind react libraryhow to use tailwind css with reactuse tailwind css in reacthow to create react app with tailwindinstall tailwind css on react projectimport tailwind css reactinstallation instruction react tailwind csstailwind css and reacttailwindcss setup in react apphow to add tailwind to a react projectreact js project with tailwind css install tailwing on reactcreate a tailwind react apphow to setup tailwind css in reactuse tailwind css for apphow to add tailwind in reactuse tailwind css with reacttailwindcss react exmaplesimple react tailwind setupnpm react js and tailwind cssnpx tailwinds create react appsetup react with tailwindtailwind in react appistalling tailwind 2 css on reactjsadd tailwind to create react apptailwind css reactjshow to use tailwind css in reactinstall tailwind css reacthow to build react app with tailwindhow to setup react with tailwindlearn tailwind css for reacthow to easily setup tailwind to reactsetup tailwind reacthow to add tailwind to react appadding tailwind in react appset up react and tailwindcssreact tailwind custom add cssinstaller tailwind app reactusinng tailwind with reactusing tailwind css with react sjinstalling tailwind css in reacttailwind css guide with reacttailwind css react add to projecttailwind 2 create react apphow to setup tailwind css in create react appsetting up tailwind css with reactadding tailwind to reacthow to integrate tailwind css with reactusing tailwind css with reactadd tailwind in react jsreact tailwindadd tailwind in react projecthow to configure tailwind css with reacthow to install globally tailwind css in react jshow to set up tailwinds inside reactgetting started with react and tailwind cssreact with tailwindmodule tailwind css reacthow add tailwind css to reacttailwind to create react appcreate react app and tailwindinstalling tailwind css reactcreate react app with tailwind cssinstall tailwindcss with reactadd tailwind to react appusing tailwind in reactsetting up tailwind css inn react projecttailwind css kit for reactadd tailwind in reactinstall tailwind css react sample staclcreate react app with tailwindcsstailwind setup in reactreactjs tailwind to css in jsproject with react and tailwind csshow to add tailwind css with reactinstall tailwind css in create react appusing tailwind with a react projecttailwind and reactinstall tailwind in react appadd tailwind to create react apptailwindcss react installtailwindcss with reacthow to build tailwind css in reactimport tailwind css into react apphow to add tailwind css into react componrntadding tailwind for reacthow to install tailwind css in react jshow to add tailwind css to reactcreate a react tailwindcss componenttailwind css in react apptailwind react apphow to start tailwind in reactyarn install tailwind css create react appimplement tailwind in reacttailwind react library creationhow to put tailwind in reactbuild react components with tailwindreact tailwind exampletailwind css react installinstall tailwind reactcreate tailwind as components reacttailwind in react projectadding tailwind in reacthow to use tailwind css in react jsuse tailwind with reacttailwind 2 0 react componentssetup tailwind on reactjstailwind with react initsetting up my react app for tailwindadd tailwind to reactytailwind create react libraryhow to install tailwind in create react appreact app and tailwindreact app with tailwind csstailwind react projectsetting up tailwind with reactinstall tailwind css with create react apptailwind css react integrationinstall tailwindcss in reacttailwindcss setup in react jstailwind to reactuse react without create react app and tailwindhow to setup tailwind css in react projectreact app with tailwindadd tailwind to reactrhow to set up tailwind css in reactcreate react app install tailwind 40tailwind not working reactreact grid js with tailwindcreate react app tailwind 2tailwind css setup for react projecttailwind css intall react jsinstall tailwind css react projectbest way to setup react with tailwindadding custom utilities with tailwind css in reacttailwind css project react installadd tailwindn to react apphow to import tailwind css into reactinstall tailwind css in reacttailwind css project with reacttailwind react js style 40pplyinstall tailwind css for reactsetup tailwind with react jssetting up tailwind in react projectinstall tailwindcss create react apptailwind react exampleusing tailwind reactusing tailwind css in reactreact create app tailwindtailwind css witj react apphow to use tailwind in reactcreate react project with tailwindhow to install tailwind css react commandtailwindcss setup reactadd tailwind to react projectshould i use tailwind css reactadd tailwind to reacthow to setup tailwind in reacttaillwind reactsteps react ui tailwind cssnpx create react app with tailwinduse tailwind for css in react 22npx create react tailwind app 22installing tailwindcss in reactset up tailwind with reacthow can i install tailwind css in react with yarnusing tailwind with create react appreact public url in tailwind confighow to use react tailwindsetup tailwind in react appimporting tailwind css for reactis tailwind needed for creact react appreact create react app with tailwinddownload tailwind css reactjstailwind css react appreact tailwind add csstailwindcss react setupinstalling tailwindcss to existing react appcreate react tailwind appsetup react with tailwind csshow to set up tailwind css in reactjstailind in reactdownload project tailwind css reactjsreact create new app with tailwindsetup react and tailwind cssimport tailwind css in reacthow to import tailwind css in reacttailwind with reacttailwind css in reactusing tailwind with create react appsetup tailwind css for vite react projectadding tailwind css to my react applicationhow to integrate tailwind css in reactadding tailwind to react appadd tailwinds to reactcreate react app tailwind uistart project react js by tailwind cssinstalar react windinstall react tailwind cssinstall tailwind css in reacta ppthailwind css reacttailwind react setupreact tailwinnpx create react app with tailwindshow to setting up tailwind css in reacthow to include tailwind css into react projecthow to install tailwind css reacttailwindcss css install reactsetting up tailwind and reacthow to setup tailwind for vite react apptailwind css with react for fromuse tailwind css in react appinstall tailwind css react applicationcan i use tailwind with reactusing tailwind with react jshow to set up tailkwind to react appadd tailwind css to react projecttailwindcss create react apphow to install tailwind on react 3fistalling tailwind css on reactjstailwind create react appinstalling tailwind js reacttailwind setup reacttailwind css react installationhow to install tailwind css in my react projectreact js and tailwind cssinstall tailwind on reactuse tailwind grid in react jscreate react app e tailwindcreate react app with tailwindsetting up react app with tailwindtailwind create react app latestusing tailwind without create react apphow to start react app with tailwindcsstailwind css easy setupp with reactusing tailwind with reacthow to start tailwind react appadd tailwinds css to reactinstall tailwind css on reactcreating react app with tailwindtailwindcss setup with reacttailwind css dowload reactinject tailwind in react pagereact cli tailwindtailwindcss in reactreactjs tailwindtailwind css include languages for reactadding tailwind css to my react apptailwind for reacthow to build a react app with tailwindconfig tailwind with reacttailwind css react setupreact and tailwind css setupsetup react with tailwindcssinstall tailwind css react npminstall tailwind with yarn to create reactappadd tailwind react apptailwind reactcan i use react with tailwind csscreate react app tailwind csshow to start tailwind css with reactreact tailwindcsscreate react app tailwindcsscan we integrate tailwind css with reactportfolio react with tailwind csstailwindcss with create react apphow can i install tailwind css in reacttailwind css setup reactcreate react component tailwindcssnpx create react tailwind apphow to install tailwind css in reactinstall tailwind on react app using yarnhow to use tailwind with reacthow to setup tailwind css in react jsinstall react with tailwind csstailwind css reacttailwind react loginreact and tailwind setuptailwind using create react appshould i use tailwind with reacttailwind start react jssetup tailwind with reactreact tailwind startedhow to write css and tailwind css in the react projecthow to add tailwind css in react 3ftailwind css for reacthow can add tailwind to reactadd tailwind css to create react appinclude tailwind in your css react jstailwind css install reactdoes tailwind work with reacthow to properly install tailwind css in reacthow to put tailwindcss in a reactjshow to setup the tailwind in app csshow use tailwind in reactreact cra filestructure tailwindhow to add tailwind css in react jstailwindcss with react setupinstall tailwind css form with reacttailwind add to reacttailwind react cssreact tailwind projecthow to install tailwind css for react projecttailwind css add to react projectnpx create react app tailwind templatecreate react tailwind appptailwind with react appshould i use tailwind css in reactconfigurin tailwind css reacthow to add tailwind to reacthow to import tailwind css to your react projecthow to add tailwind to react projecttailwindss css react installadding tailwind css to reacthow to define tailwind css in reactusing tailwind and reacttailewind css with react jsinstall tailwindcss react applicationsetting up react app with tailwind csssetting up tailwind css in a react projectreact add tailwindcan you use tailwind in reactreact tailwind csshow to setup tailwind for reactjsdesign react tailwindinstall tailwind css in racttailwind install create react appreact tailwind css installuse tailwind in reactadd custom css to tailwind reactjstailwind css in react projectnpx create react app tailwindsinstall tailwind create react apptailwindcss installation into the react projectcreate react app tailwindtailwindcss setup in reacttailwind 2b reactinstall tailwindcss reactcreate react app tailwind buildhow top set up react with tailwindinstalling tailwing dont work reactbuilding a react app using tailwind csscreate react app and tailwind