mkdir project
cd project

npm init -y
npm i -g postcss-cli
npm i -g cross-env 
npm i tailwindcss@latest postcss@latest autoprefixer@latest daisyui postcss-import

npx tailwindcss init

// postcss.config.js
module.exports = {
  plugins: {
    'postcss-import': {},
    tailwindcss: {},
    autoprefixer: {},
  }
}


/* ./你的css文件夹/styles.css */
@tailwind base;
@tailwind components;
@tailwind utilities;

/** package.json **/
  "scripts": {
    "build": "tailwindcss build src/css/tailwind.css -o dist/css/tailwind.css",
    "watch": "postcss build src/css/tailwind.css -o dist/css/tailwind.css --watch",
    "build:css": "cross-env NODE_ENV=production postcss src/css/tailwind.css -o dist/css/tailwind.css"
  },
  
  
  // tailwind.config.js
  module.exports = {
   purge: [
     './src//**/*.html',
   ],
    darkMode: false, // or 'media' or 'class'
    theme: {
      extend: {},
    },
    variants: {},
    plugins: [],
  }