A Utility-First CSS Framework for Rapid UI Development(tailwindcss.com)

almost 2 years ago from Dima Blover, founder at itmeo.com

  • Adam Wathan, almost 2 years ago

    Hey, framework author here! Like Beni mentioned in his reply, we totally agree and have tooling and workflows baked into the framework for extracting these common patterns into component classes when you feel the need to do it:

    https://tailwindcss.com/docs/extracting-components

    We just don't provide classes like btn by default because in my experience with frameworks that do, you end up fighting with default styles and undoing things which I think is more trouble than it's worth. Better to give people the building blocks to create whatever button style they want, and give them tooling to easily create abstractions around those building blocks when needed.

    2 points