Answers for "how to use tailwind css in react properly"

3

how to properly install tailwind css in react

@import "tailwindcss/base";

@import "tailwindcss/components";

@import "tailwindcss/utilities";
Posted by: Guest on December-24-2020
0

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: [],
  }
Posted by: Guest on August-28-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language