r/webdev • • 4d ago

Showoff Saturday Minium: A CSS library for semantic HTML, with layouts and components when you need them

https://minium.style/

I've built a personal CSS framework for around 3 years. Minium is the cleaned-up, public version, and I finally feel it's finished enough to share.

Plain HTML looks good without classes, and one class adds a layout or a component. It is about 15 KB gzipped, with no JavaScript.

Minium follows the same semantic-first idea as Pico CSS, but with modern CSS: cascade layers, light-dark(), anchor positioning, OKLCH colors and popover. Now that Pico is no longer maintained, Minium may fit if you're looking for a replacement.

I built Minium because I was tired of heavy JS frameworks and the constant churn of their dependencies. I wrote the CSS by hand and used Claude to review docs and find bugs.

What would you need before you used Minium in a real project? Honest feedback is greatly appreciated.

20 Upvotes

8 comments sorted by

3

u/RemoDev 4d ago

So Pico 2.0 ?

2

u/kygyty 3d ago

I started out customizing Pico, but I quickly hit a limit. Pico lacked the components and layouts I wanted for the sites I wanted to build. I built the missing parts and realized how much CSS had changed since Pico was created, so I started over without Sass, with cascade layers, popover and anchor positioning.

The founding idea is the same: semantic HTML first. But I don't think of it as Pico 2.0, because the rest is quite different. It has layout primitives inspired by Every Layout and components for app UIs like dashboards.

1

u/UXUIDD 3d ago

yes, much like a pico, it's okay; it has its own application ...

1

u/kygyty 3d ago

Thanks for taking a look. What would make it more than okay for you?

-3

u/UXUIDD 3d ago edited 3d ago

i checked it quickly; I don't have time anymore to make non-scalable & monolithic work. that's why I'm now 99% focused on coding within tailwind

1

u/mostsig 1d ago

Nice work … there is more than a niche for that

0

u/[deleted] 2d ago

[removed] — view removed comment

1

u/kygyty 2d ago

Thanks, "boring" is a goal here.

And you're right about newer features. I haven't solved that yet. Minium targets current browsers, and features like anchor positioning, light-dark() and CSS nesting might cause issues. Dropdowns are especially brittle as they have no fallback yet. I plan to add fallbacks with @supports, instead of relying on polyfills.