Modi.Bade's avatar

is it good to use bootstrap and tailwind together ?

hi guys, can we use tailwind and bootstrap toghether ?

I don't mean from a technical point of view, is it appropriate to use these two together or not? What problems does it cause if we use ?

is it common ?

0 likes
3 replies
Snapey's avatar

you will have some unexpected issues because of duplicate naming for some css

So, not a good idea.

You can add a prefix to all tailwind commands if you want to avoid the name clashes

tailwind.config.js

module.exports = {
  // ...
  prefix: 'tw-',
}
1 like
Modi.Bade's avatar

@Snapey Apart from the problem of duplicate names, which will be solved with a prefix, is it wrong to use these two together?

someone told me it is wrong so i want to know why

Snapey's avatar

@Modi.Bade you will also have to leave out tailwind's reset functions.

Its not a good idea, no. But if you were transitioning a project from one to the other then it would be ok for a while

There is no good reason to have both if you are not in the process of migration

Watch: https://youtu.be/oG6XPy1t1KA

1 like

Please or to participate in this conversation.