3 ms·
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. Dia
by d1sxeyes 2y ago
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.
- _heimdall 2y agoYep, 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.