I'm looking for a polished component library I can use without npm, a build step, or a utility framework. What are the practical options?
What component libraries work with plain CSS and no build step?
Answers
Take a look at Pico CSS if you want something that looks good with minimal markup. It styles many native HTML elements directly, so you can start with a stylesheet and ordinary buttons, forms, and articles rather than adding classes everywhere.
It's a good fit for simple pages and forms. If you need a large collection of elaborate interactive components, check its coverage before committing.
Reply to this answer
Bulma is worth a look for the more traditional component library approach. You get classes for things like buttons, cards, navigation, tabs, and modals, and can use the compiled CSS without setting up npm.
One distinction: CSS can style a modal or dropdown, but opening and closing it may still need JavaScript you write yourself. Check the components you need and the project's current maintenance status before choosing it.
Reply to this answer
Bootstrap is another straightforward option. You can load its compiled CSS directly and use its established component classes without a compiler. Just check which components need Bootstrap's JavaScript for their interactive behavior.
Reply to this answer
Pure.css is worth checking if you want a smaller set of building blocks rather than a big, heavily styled component suite. Modest UI is another option for basics you can build on top of.
For a mostly classless approach, there's also Matcha CSS. It is closer to styling regular HTML for you than providing a full set of complex components.
Reply to this answer
Open Props is a different sort of option. It's a collection of CSS custom properties, not a finished component library. If you're happy to write the component styles yourself, it can give you a starting point for things like colors and spacing without bringing in a utility framework.
Reply to this answer
Add your answer
Answers are reviewed before publication.
3d+ferrulecrayon_571:
That distinction matters. No JavaScript build step doesn't necessarily mean every interactive component works without any JavaScript.