4 ms·
Forgive me if this is a dumb question: why would I use Tailwind over say ant design when the latter is free and has hundreds of components?
by george_ciobanu 4y ago
Forgive me if this is a dumb question: why would I use Tailwind over say ant design when the latter is free and has hundreds of components?
- tomlagier 4y agoNot a dumb question! They cover different needs - Tailwind is a low-level CSS library that provides a different (and some claim better) way of styling HTML. It doesn't provide markup, interactivity, etc. AntD is a high-level component library that provides components with pre-built markup, JS interactivity, accessibility, etc. Any of the component libraries in this thread are a good point of comparison. You might use Tailwind if you're building out your own components, or styling a page that doesn't need much interactivity. It is fast, lightweight, and easy to integrate. You can compare it to any CSS-in-JS tool, SASS, and other styling solutions. You'd typically turn towards a component library (like MaterialUI, Ant Design, or Tailwind UI) if you're looking to quickly build a webapp that needs a lot of interactivity out of the gate. These solutions are larger and heavier, but provide a lot more functionality (interactivity, accessibility).
- george_ciobanu 4y agoThank you, this is really helpful.
- newusertoday 4y agoIf you want to change the style of antd it becomes real mess unless you are already familiar with "less". I found it very hard to change styles of antd(it is my own shortcoming) but despite knowing what to do in css and framework getting in your way to do it is really frustrating.
- george_ciobanu 4y agoDidn't get to that point yet, so far their styling is fine for my needs. I have some experience with less but it's been a while.