There are lots of reasons that can be espoused for using Tailwind CSS and in this video I try to explain my main reason for using it myself. For me the ability to throw away my main style sheet and no longer need to maintain what can become a behemoth over time is all the justification I need. By replacing this with the Tailwind utility classes I reduce the maintenance overhead that this list of semantic classes used to impose and can move from one project to the next using a consistent set of classes that have a design system already built in.
Previously I would start creating a new set of semantic classes with each new project and then look to refactor it as I go in order to remove any 'magic' numbers in an effort I guess to make it into a design system. This is very costly and is never fully achievable without a huge amount of effort.
One last point is that to compare using Tailwind to simply adding inline styles does miss our on the benefits it provides in that it is a complete design system and that certain CSS that is not possible inline such as media queries are readily available in Tailwind.
Ещё видео!