Search
 
SCRIPT & CODE EXAMPLE
 

CSS

how to properly install tailwind css in react

@import "tailwindcss/base";

@import "tailwindcss/components";

@import "tailwindcss/utilities";
Comment

how to properly install tailwind css in react

npx tailwind init tailwind.js --full
Comment

how to properly install tailwind css in react

npm install tailwindcss postcss-cli autoprefixer@9.8.6 -D
Comment

tailwind css in react

/* ./src/index.css */
@tailwind base;
@tailwind components;
@tailwind utilities;
Comment

Setup Tailwind CSS in react-native or react

// tailwind.config.js
module.exports = {
- content: [],
+ content: ["./App.{js,jsx,ts,tsx}", "./src/**/*.{js,jsx,ts,tsx}"],
  theme: {
    extend: {},
  },
  plugins: [],
}
Comment

tailwind css in react

npx create-react-app my-project
cd my-project
Comment

how to properly install tailwind css in react

const tailwindcss = require('tailwindcss');
module.exports = {
    plugins: [
        tailwindcss('./tailwind.js'),
        require('autoprefixer')
    ],
};
Comment

tailwind css in react

  // tailwind.config.js
  module.exports = {
-   purge: [],
+   purge: ['./src/**/*.{js,jsx,ts,tsx}', './public/index.html'],
    darkMode: false, // or 'media' or 'class'
    theme: {
      extend: {},
    },
    variants: {
      extend: {},
    },
    plugins: [],
  }
Comment

tailwind css and react

/** @type {import('tailwindcss').Config} */ 
module.exports = {
  content: [
    "./src/**/*.{js,jsx,ts,tsx}",
  ],
  theme: {
    extend: {},
  },
  plugins: [],
}
Comment

how to properly install tailwind css in react

"scripts": {
  "start": "npm run watch:css && react-scripts start",
  "build": "npm run watch:css && react-scripts build",
  "test": "react-scripts test",
  "eject": "react-scripts eject",
  "watch:css": "postcss src/assets/tailwind.css -o src/assets/main.css"
}
Comment

tailwind css in react

// tailwind.config.js
module.exports = {
  purge: [],
  darkMode: false, // or 'media' or 'class'
  theme: {
    extend: {},
  },
  variants: {
    extend: {},
  },
  plugins: [],
}
Comment

how to properly install tailwind css in react

touch postcss.config.js
Comment

setup tailwind css with react

/** @type {import('tailwindcss').Config} */
module.exports = {
  content: [
    "./src/**/*.{js,jsx,ts,tsx}",
  ],
  theme: {
    extend: {},
  },
  plugins: [],
}
Comment

how to properly install tailwind css in react

npx create-react-app react-tailwindcss && cd react-tailwindcss
Comment

PREVIOUS NEXT
Code Example
Css :: table vertical align middle 
Css :: css click through after 
Css :: graident colors 
Css :: css is selector 
Css :: sub menu disappears on hover css 
Css :: css clip-path 
Css :: disable line breaking html span 
Css :: css animation png 
Css :: css responsive tabs 
Css :: CSS Table Alignment 
Css :: beautiful checkbox css 
Css :: css outline shorthand 
Css :: what happens when the width is 0 and there is a border and box-sizing is set to border-box? 
Css :: css template 
Css :: how to give rgba in tailwind 
Css :: sweet alert modal form 
Css :: woocommerce cart css description 
Css :: jquery pagination css html 
Css :: flex item: 1; 
Css :: list view render queryset 
Css :: why wont text color of a div change 
Css :: button position translate on bottom edge bootstrap 
Css :: css slide up animation 
Css :: z-index: 1000000; 
Css :: sasas 
Css :: calculate min number in css 
Css :: cons;0 ccs 
Css :: symfony modify request 
Css :: position absolute prevent overflow 
Css :: Slide up and down animation CSS CodePen 
ADD CONTENT
Topic
Content
Source link
Name
1+4 =