Live data from Hacker News

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

newcss.net

101–110 of 192 posts

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

#101

Styling semantic tags in a library is a really bad idea, it assumes your css is going to be the only css used in an app. It's good manners to style class names instead.

You should use thing for what they're made for. Even using classes you can't solve the problem you're describing.

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

#102
post #84

Earlier quoted context omitted.

Hey, developer of both here. It's certainly not a light download, I understand. It's more of an effort to pull CDN requests to known unethical networks, namely Google Fonts, which are known to be used to track users between websites. I'll be more clear about this in the future, thanks for your opinions!

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.

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

#105

Styling semantic tags in a library is a really bad idea, it assumes your css is going to be the only css used in an app. It's good manners to style class names instead.

You should use thing for what they're made for. Even using classes you can't solve the problem you're describing.

"You should use thing for what they're made for."

You ever worked on a project where a non-technical PM got to pick technologies? I guarantee you someone is going to choose this CSS library in the future because they think it looks nice, then be confused or frustrated when it stomps over some other styling they want to use because it directly styles tag names

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

#107
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.

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.

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

#108

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/

Ah memories. I used to reference the CSS Zen Garden when convincing my clients about our new approach to web building (CSS is awesome!). Never once achieved it (complete separation of content from style) in practice.

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

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

This is... not remotely what people mean when they say "reactive". And nobody thinks JS is necessary to get a visual theme that looks nice. CSS and JS frameworks serve radically different purposes.
Post reply on HN