github.com

what are some potential challenges developers might face when adopting Tailwind in large projects? · tailwindlabs tailwindcss · Discussion #18443

7/3/2025Updated 8/6/2025

Excerpt

Adopting Tailwind CSS in a big project can be a game-changer for speed, but it's not without its hurdles. One common challenge is the **initial learning curve**. Developers used to traditional CSS or component-based frameworks might find the utility-first approach a bit jarring at first. Instead of naming a component `button` and styling it in a separate CSS file, you're directly adding classes like `px-4 py-2 bg-blue-500 rounded` right in your HTML. This shift in thinking takes time to get used to. Then there's the **"verbose HTML" concern**. Your HTML files can become quite packed with Tailwind classes, making them look "ugly" or harder to read for some. While this is often mitigated by using compo… View full answer … ### Dronzer2code Jul 3, 2025 ... One common challenge is the **initial learning curve**. Developers used to traditional CSS or component-based frameworks might find the utility-first approach a bit jarring at first. Instead of naming a component `button` and styling it in a separate CSS file, you're directly adding classes like `px-4 py-2 bg-blue-500 rounded` right in your HTML. This shift in thinking takes time to get used to. Then there's the **"verbose HTML" concern**. Your HTML files can become quite packed with Tailwind classes, making them look "ugly" or harder to read for some. While this is often mitigated by using component frameworks (like React or Vue) where you abstract these classes into reusable components, if you're working with plain HTML or templating engines, it can feel cluttered. Another point is **maintaining design consistency without strict componentization**. If you're not disciplined about creating reusable components, it's easy for slight variations in spacing or color to creep in across different parts of a large application because developers might hand-pick slightly different utility classes each time. Finally, setting up the **build process** correctly, especially ensuring PurgeCSS (which removes unused Tailwind classes) is configured perfectly, can be a small but crucial challenge to avoid shipping unnecessarily large CSS files. Missing this can negate some of Tailwind's performance benefits. … #### jacob-friedman-international-gc-ca Jul 14, 2025 - Oh! `object-position-[x y]` wouldn't even work because there's a space between x and y when there should be an underscore. Also, calc doesn't work on those as well. - 👍 1 Category Help Labels

Source URL

https://github.com/tailwindlabs/tailwindcss/discussions/18443

Related Pain Points