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/private_birb 19d ago

It depends on what you're looking for, but they do exist.

There are some great unopinionated resets out there.

There are semantic HTML-focused libraries that function well as something like an "opinionated reset".

In terms of actual css-only component libraries, I suppose Pure.css might be what you're looking for.

-17

u/nopeac 19d ago

Just checked Pure.css

.button-secondary { 
  color: white;
  border-radius: 4px;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

I... I could have achieved something similar myself in a blink. I mentioned I wasn't going with shadcn, but I should have clarified that I was looking for that kind of polished, (<) medium-effort result.

0

u/nopeac 18d ago

People just downvote instead of telling me what I've done wrong. Oh well... "community."

5

u/xkey 18d ago

You're looking for something super specific but also super minimal that lives up to some design standard of which we have no idea. You're shutting down every suggestion. Just do it yourself brother.

0

u/nopeac 18d ago

Snippets of CSS of a button, an input, and a details tag that look similar to each other are a super specific request? Wow.

Look what you can do with 40 loc: https://uiverse.io/chintu_2484/fat-moose-56

Yet I'm being asked to be satisfied with a library where a button has a border radius and a text shadow.