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

1

u/prafandy 14d ago edited 14d ago

late to this, but I made one for exactly this case. Alloy CSS, one link tag, no npm, no build: <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@alloyhtml/css@1/dist/alloy.min.css">

it's not classless like pico, you write classes, but the dropdowns, dialogs, tabs and toasts all work with zero js. here's one page built with only that file, try it with js turned off: alloyhtml.com/example.html

I carried it between client projects for years and only open sourced it recently, so tell me what's missing, thank you!