Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
April 8, 2022 09:16 pm GMT

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:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To