Live data from Hacker News

New.css – A classless CSS framework to write modern websites using only HTML

newcss.net

141–150 of 192 posts

Re: New.css – A classless CSS framework to write modern websites using only HTML

#141
post #11

Crazy. This isn't a "framework". It's a stylesheet.

"Classless" also made my brow furrow when I realized they didn't mean, say, CSS components styled without a bunch of classes (a la Twitter Bootstrap) but rather, it just has no components. It's classless because it only styles some basic html elements.

That's exactly how I understood it and it sounds useful to me. No need to look up what styles do what, you can just use the standard elements and expect them to look coherent and as expected. E.g. "" is descriptive enough since HTML5 introduced it.

Re: New.css – A classless CSS framework to write modern websites using only HTML

#142
post #73

Hey sorry I’m not in the know, but what’s wrong with classes and styling?

Nothing's wrong, the supposed advantage of this is that it's less complex and the only thing you need to learn is html.

Which most people that would use this already know and so really you can just skip the learning and go straight to using it.

Re: New.css – A classless CSS framework to write modern websites using only HTML

#143
post #97

Seems one of these things hits the front page every month or so. My question is, why don't the browser makers adopt something like this as the default stylesheet? Are they constrained by the spec here or is it just a matter of inertia?

Browsers do, it's the reading mode feature. However of course it's not a default stylesheet.

Re: New.css – A classless CSS framework to write modern websites using only HTML

#145
post #31

This Github repository tracks a whole bunch of these drop-in CSS files: https://github.com/dohliam/dropin-minimal-css And you can use this demo site to switch between them all on the fly: https://dohliam.github.io/dropin-minimal-css/

It's a shame how few of these prevent horizontal scroll on mobile. Usually the table and/or video are not probably handled. My take away from this: Simple does not mean easy; check edge cases.

It's a tricky problem. I've been battling with it on MVP.css (https://andybrewer.github.io/mvp/) but I think I found a good solution for responsive tables with some help from the community.

Re: New.css – A classless CSS framework to write modern websites using only HTML

#146
post #97

Seems one of these things hits the front page every month or so. My question is, why don't the browser makers adopt something like this as the default stylesheet? Are they constrained by the spec here or is it just a matter of inertia?

> Seems one of these things hits the front page every month or so.

Yep! MVP.css was featured in March: https://news.ycombinator.com/item?id=22681270

Re: New.css – A classless CSS framework to write modern websites using only HTML

#147

Earlier quoted context omitted.

Slightly off-topic but this made me wonder: is it possible to store the 1000 most used web fonts locally and tell your browser to use the local version instead of the Google version?

Decentraleyes[0] does this for JavaScript files. There was a request to add fonts[1], but it hasn't been implemented. [0]: https://decentraleyes.org/ [1]: https://github.com/Synzvato/decentraleyes/issues/34

Cool, thanks! Definitely going to install that extension. It seems they moved to Gitlab, I subscribed to the new issue[0].

[0]: https://git.synz.io/Synzvato/decentraleyes/-/issues/34

Re: New.css – A classless CSS framework to write modern websites using only HTML

#148
post #54

Earlier quoted context omitted.

hah, reminds me of http://www.csszengarden.com but simpler.

I would like these themes to go beyond a simple article view. We have tags like , , , , and now. Should be possible to build a complete app-shell with classless CSS.

I style those elements in MVP.css (https://github.com/andybrewer/mvp/)

Re: New.css – A classless CSS framework to write modern websites using only HTML

#149
post #4

Checkout https://github.com/kognise/water.css I find water.css to be the prettiest of the classless bunch.

I recently started a project using Skeleton CSS (http://getskeleton.com/) which is similar. It only uses classes to deal with the grid (which it looks like neither water.css nor new.css handle).

Re: New.css – A classless CSS framework to write modern websites using only HTML

#150

This recent vibe of minimal CSS files for plain HTML tags feels the same as the CSS Zen Garden from years ago. Which is very good and quite welcome in the current state of overbloated JS frameworks that do everything. I wonder if this will also drive further the adoption of standard web components https://open-wc.org/guide/

I was just thinking the same thing!

I started typing a reply out to someone's criticism of this, and it had me think of it this way.

I have my own personal stylesheet that I use as a plugin for overriding blog styles (just because I like to read text formatted in a specific way, a lot of blogs aren't very readable IMO). This style of library kinda extends that where the end user can "customize" or make the site look how they want it to (not that it's something people should be considering when building their blogs, but I think its fairly normal for people to have opinions on these things).

---

I especially like it for quickly prototyping internal tools/sites at work. A lot of times I want something to look clean but don't have the bandwidth to really customize a lot of stuff. This allows you to write CSS for what you need, but have the overall page styled for you with minimal effort. (Also building your own css templates like this helps teach generic css. I think it's a good skill if anyone is within proximity of the web).

Post reply on HN