Live data from Hacker News

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

newcss.net

111–120 of 192 posts

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

#111

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/

Stylesheets have absolutely nothing to say about JS framework usage and vice-versa.

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

#112

I'm not entirely sure this can be called a framework. If there was a Bootstrap v0.1 it would be this, before it decided to do a whole bunch of extra things to become a framework. A few years ago you might have simply named it "reset.css", but it's too opinionated to really have that name. It feels like I would spend more time undoing what it does than would be saved by using it. I don't hate it... but I don't entirel…

These types of stylesheets are sometimes referred to as Base Stylesheets.

In practice, I've found its good to roll your own at some point, so you don't have to spend time undoing someone elses.

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

#113
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?

I think it's a backwards-compatibility thing. Browsers take BC extremely seriously, even when it comes to UX. Changing the unstyled look of different elements could break a legacy site that didn't give those its own styles.

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

#114
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/

This is really useful! Thanks for linking to it. I also have a related repository. It is a gallery of screenshots of classless CSS themes: https://github.com/dbohdan/classless-css . I've just added a link to the drop-in CSS switcher there.

Another one here: https://www.cssbed.com https://github.com/ubershmekel/cssbed

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

#115
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?

The defaults inherit, so changes to the default made by a browser (or indeed a browser user) can cascade through to other sites.

Probably part of this CSS is something like reboot or reset which will try to paper over the remaining differences between different browsers, I think the browsers probably are converging in that regard but IE11 and backwards compatibility still make them necessary.

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

#116
post #45
post #11

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

That's my reaction as well... What am I missing? People really forgot that you can write a "reactive" website in pure HTML and that's what it was actually designed for?

Or did you mean "responsive" ?

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

#117
post #54
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/

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.

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

#118
post #44

Author of Sakura.css [0] here linked in the article. Thanks for the link ^_^, new.css looks super great! A bit more on "WHY" you'd want to use a classless theme: * Quick prototyping, especially when working on backend sites and can't yet be bothered to fidget with css/html. * Building a quick (but pretty) site/blog for your best friend or aunt! * Works amazingly with markdown generated HTML content. So it's a perfect…

For some reason the footnote link on sakura did not make my view jump to the note (neither Firefox 76.0.1, nor Chromium 81.0.4044.138 / Linux Ubuntu) although it works in Wikipedia.

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

#119
post #84

Earlier quoted context omitted.

I still don't see how switching from Google to a VC-backed CDN startup is better for ethical purposes.

It's better , but it's still not as good as just using the browser default font.

Or just serve them yourself.

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

#120
post #107

Earlier quoted context omitted.

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.

As suggested by a sibling comment the key isn't to prevent horizontal scrolling, but to prevent content from overflowing a single screen width. Which isn't hard per se but doesn't have a one-size-fits-all solution.

So many websites overflow a single screen width by a trivial amount. This is just enough to cause accidental horizontal scrolling which disrupts the flow of scrolling the page. Very frustrating!
Post reply on HN