Re:Rapidly build efficient sites with Neat, the minimalist C...
by d1sxeyes on Friday August 02, 2024 @09:59AM
(#41138849)
I love PicoCSS, but they go a bit beyond semanticism to build some of their components. For example 'article' becomes a card. Dropdowns use details/summary. Dialog close buttons use 'button rel="prev"' which is... maybe, I guess? If you consider a modal as some sort of shallow navigation...
Anyway, they make relatively few compromises on semanticity, and as a result, they can deliver a very polished-looking final product with more features than a purely semantic framework could deliver.
Again, I love it, just sometimes, you have to hold your nose a bit.
Re:Rapidly build efficient sites with Neat, the minimalist C...
by _heimdall on Friday August 02, 2024 @11:42AM
(#41139797)
Yep, totally agree here. I ran into exactly those same use cases, wanting a standard summary/details and wanting to wrap a blog post in an <article> element. I've been chewing on whether scoping the card style only to articles that are children of a list item would make sense, could be worth an issue or PR to get their take on it.
I've definitely learned a few interesting tricks poking around in their CSS though. I've been coding professionally for 15 years and doing mostly web for around 6 years. I'm always interested to see these minimal frameworks popping up, I feel like I learn at least a few nest tricks from each.
There are also interesting patterns that can be learned from and adapted to your own code. PicoCSS[1] had a new release recently and there's some really interesting stuff in there. The biggest standout to me is how forms are handled and leverage semantic HTML ideas to automatically add form validation styles.
[1] https://picocss.com/