News for hackers. Stuff that matters.
Re:Pico CSS Framework by k__ on Wednesday December 15, 2021 @12:29AM (#29562441)
Right now, I'm evaluating classless CSS frameworks for a project. Currently, Bamboo seems to make it, but I will checkout Pico!
Re:Pico CSS Framework by oxalorg on Wednesday December 15, 2021 @01:03AM (#29562631)
Shameless plug, but do check out [sakura.css](https://github.com/oxalorg/sakura).

I've tried to keep it really simple so that folks without css knowledge are also able to hack on it while building their sites.

Would be happy to hear your feedback on it :)

Re:Pico CSS Framework by wx196 on Thursday December 16, 2021 @04:40AM (#29576609)
I don't think it is a good idea to use disabled-like styling for enabled inputs. Especially for "classless" framework that targets simplicity and basic html standards. https://www.w3schools.com/tags/tryit.asp?filename=tryhtml_in...
Re:Pico CSS Framework by pcranaway on Wednesday December 15, 2021 @08:16AM (#29565474)
I've been using it for some time now, it's perfect, thank thank you.
Re:Pico CSS Framework by k__ on Wednesday December 15, 2021 @07:49AM (#29565250)
Sakura makes a good impression, Pico not so much.
Re:Pico CSS Framework by thieu96 on Wednesday December 15, 2021 @06:37AM (#29564583)
I'd advice against it, unless you want to write every component by hand.

Any third party library or component you use will be affected by "classless". There's a good reason explicitly define classes.

It's the same reason you don't change native prototypes in Javascript. Libraries assume the defaults, both for styling and code.

Re:Pico CSS Framework by digitalsankhara on Wednesday December 15, 2021 @08:13AM (#29565440)
That's a good point. I'm by no means a HTML/CSS/JS guru but this seems the wrong way around to me. Maybe components that honour the "base" tags e.g. <p>, <h1> etc that the classless stylesheet has defined could be developed (please accept my lack of awareness of those that already do exist).

So instead of a component assuming, it needs to be pointed to the tag you, as developer/designer, require - perhaps via a config parameter. Interesting comment about using SASS to namespace, but then the elegant simplicity of these stylesheets starts to get chipped away IMHO.

Re:Pico CSS Framework by thinkloop on Wednesday December 15, 2021 @03:30PM (#29571224)
I think the issue there is that there are thousands of available CSS properties. Without assumptions, every single one would have to be specified for every single class. Imagine the same for JS or any other language, you would have to re-write the standard lib if you couldn't rely on it.
Re:Pico CSS Framework by k__ on Wednesday December 15, 2021 @07:32AM (#29565094)
It's okay, really.

I only have a handful of HTML pages with a bit text and code. Nothing fancy.

My main goal is to keep all code in the HTML files with as little boilerplate as possible.

Re:Pico CSS Framework by reactspa on Wednesday December 15, 2021 @03:13AM (#29563257)
Question for anyone reading this:

Why the demand for "classless"?

Re:Pico CSS Framework by stepbeek on Wednesday December 15, 2021 @05:59AM (#29564272)
I’ve been structuring my styles with CUBE.css (https://cube.fyi) for a few months now and a classless approach fits the composition piece very well.

Example: In a particular context (say the <h3> tag in the <header> of each <section>) I almost always want a default style. On changing that style, I don’t want to modify markup. In future, when adding more pages, I don’t want to remember the particular combination of css classes that I’ve used elsewhere. When a particular face out is different (this <article> is a modal) then I can add meaningful class names to convey intentions.

From a practical perspective, I’ve found it to give me 90% of the UI I want at 10% of the cost.

Re:Pico CSS Framework by hobofan on Wednesday December 15, 2021 @11:52AM (#29568469)
OT: Do you by chance have any pointers on where to stay up-to-date on modern frontend development?

As a dev I've been out of the frontend game for a few years, when BEM was widely used. When I started working more on frontend again a few months ago I tried to look around for developments in terms of methodologies (e.g. "is there a 'next BEM'?"), but didn't really find anything and didn't even know where to look. Even just hearing about newer aproaches like CUBE would be nice, regardless if they end up being fit for production usage.

Re:Pico CSS Framework by stepbeek on Thursday December 16, 2021 @10:16AM (#29578960)
I follow the following blogs for front-end.

* https://adactio.com * https://piccalil.li/blog/ * https://stephaniewalter.design/ * https://www.baldurbjarnason.com/

This post has some good pointers: https://www.baldurbjarnason.com/2021/what-do-i-need-to-read-...

I'm not sure what other advice to give. A lot of this was collected over time in response to frustrations I felt around the direction front-end has been moving in (css-in-js, atomic css etc.) and looking for people writing criticisms of it.

Re:Pico CSS Framework by hobofan on Tuesday December 21, 2021 @02:51AM (#29635022)
Thanks a lot! That looks like a good small collection of resources!
Re:Pico CSS Framework by mosselman on Wednesday December 15, 2021 @08:17AM (#29565481)
Cube looks nice, thanks!
Re:Pico CSS Framework by WorldMaker on Wednesday December 15, 2021 @04:49PM (#29572043)
It keeps the HTML about as clean as it can be, more often than not. Many of these classless CSS frameworks you can substitute arbitrarily without ever changing the markup. Which can be very useful for small static sites with hand-edited HTML like the Old Web people used to bake.

I certainly appreciate that "Old Web" feeling from the time before CSS when Browser default/built-in stylesheets were more opinionated and tried to do nice things without forcing you to do all of your styling by hand. Classless frameworks can feel like a good throwback to that era, and a useful compromise from today's browsers' awful default styles and the sorts of CSS frameworks that include everything and a kitchen sink and are designed much more for "apps" than just a clean document full of information.

Re:Pico CSS Framework by dsego on Thursday December 16, 2021 @08:55AM (#29578083)
Cool, I also like https://holidaycss.js.org
Re:Pico CSS Framework by hyuuu on Wednesday December 15, 2021 @12:53AM (#29562577)
why not tailwind?
Re:Pico CSS Framework by gondo on Wednesday December 15, 2021 @12:55AM (#29562594)
because tailwind is not "classless"
Re:Pico CSS Framework by k__ on Wednesday December 15, 2021 @01:10AM (#29562670)
This.

It's just a bunch of code examples and text, so no fancy layout or styling is needed.

I just want a modern look, without much hassle.

Re:Pico CSS Framework by agumonkey on Wednesday December 15, 2021 @03:03AM (#29563206)
somehow tailwind sits in between, maybe it's nameless ?
Re:Pico CSS Framework by k__ on Wednesday December 15, 2021 @06:24AM (#29564481)
Does it?

I had the impression, if Tailwind has one thing, it's a multitude of classes.

Re:Pico CSS Framework by agumonkey on Wednesday December 15, 2021 @10:42AM (#29567459)
From the few I know, the classes are mostly shortcuts to css features (container are one of the exception), which are of course defined as custom classes but they don't create a new layer of (name,meaning) unlike what I assume we were all doing.
Re:Pico CSS Framework by kingdomcome50 on Wednesday December 15, 2021 @10:18AM (#29567066)
Yes Tailwind uses classes. But I think the parent might have meant that Tailwind is not semantic.