An Interest In:
Web News this Week
- April 27, 2024
- April 26, 2024
- April 25, 2024
- April 24, 2024
- April 23, 2024
- April 22, 2024
- April 21, 2024
April 8, 2022 09:16 pm GMT
Original Link: https://dev.to/agiksetiawan/use-tailwind-css-in-existing-bootstrap-project-without-crash-classes-45d4
Use Tailwind CSS in existing Bootstrap project without crash classes
Just add prefix 'tw' in 'tailwind.config.js'
like this
module.exports = { prefix: 'tw-', content: [ ], theme: { extend: {}, }, plugins: [],}
now you can use Tailwind CSS class with prefix 'tw' without crash with bootstrap classes
Example use:
tw-bg-red-400
tw-p2
you can change 'tw' prefix with another prefix that you want.
Original Link: https://dev.to/agiksetiawan/use-tailwind-css-in-existing-bootstrap-project-without-crash-classes-45d4
Share this article:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To