r/webdev • • 19d ago

Question Vanilla CSS component library?

Anyone got a recommendation for a polished component library that only uses plain CSS? I'm trying to avoid npm/build steps entirely, so shadcn is out, and Tailwind-dependent stuff like DaisyUI isn't an option either. Seriously looking for pure CSS solutions here.

12 Upvotes

65 comments sorted by

View all comments

Show parent comment

0

u/Discordbothost 18d ago

ah got it. for 4-6 pieces i'd pick the button you like and derive the rest from it: same height, radius, border width and focus ring on the input and select, and accent-color gets you matching checkboxes/radios for free. if you'd rather start from something already cohesive, pico.css is small enough to just lift the form + button rules out of. and don't sweat the downvotes, webdev gets weird about anything with "library" in the title

1

u/nopeac 18d ago

Thanks for one of the few reasonable replies here, and for explaining this behavior. They are indeed a weird bunch. I'm fine with downvotes if they're accompanied by a comment, but 20 downvotes and not a single person pointed out my mistake, ffs.

If nothing else comes up, I'm going to end up using a UIverse snippet like you said, pretty helpful resource, thanks, good designs there, but definitively more manual work than what I was looking for with this post.

I'm 100% sure there's someone out there who has ported shadcn into vanilla snippets ready to copy. It's just hard to find, I guess.