% npx tailwindcss init
module.exports = {
content: [
'./src/**/*.{js,jsx,ts,tsx}',
'./index.html',
'./src/styles/main.css'
],
theme: {
extend: {},
},
plugins: [],
}
module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {}
}
}
@tailwind base;
@tailwind components;
@tailwind utilities;
$ npm install -D tailwindcss postcss autoprefixer
postCSS란?
- JS로 CSS를 변환하는 도구.