How To Add Tailwindcss To An Existing React Project

preview_player
Показать описание
1. npm install -D tailwindcss
2. npx tailwindcss init

content: ["./src/**/*.{html,js,jsx}"],
theme: {
extend: {},
},
plugins: [],
}

4. Add to your highest css file:

@tailwind base;
@tailwind components;
@tailwind utilities;

5. Enjoy tailwindcss 🎉
Рекомендации по теме