Live data from Hacker News

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

newcss.net

71–80 of 192 posts

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

#71
post #32

It doesn't work properly. The body has a max-width of 750px, and the header uses a padding hack of 'calc(50vw - 50%)'. That 50% means '50% of the containing element', so if 50vw is more than 750px (eg your viewport is more than 1500px wide) the header element stops being centred and starts spilling over on the right hand side.

There's already a PR to fix this, looks like there's a missing space after one of the minus signs.

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

#72
post #70
post #62

Tangentially related: I've been on the hunt for a CSS framework/drop-in that approximates the style of the Dracula theme – Dark background with bright, happy, bold, cotton-candy colors. Any suggestions?

1) I went searching for you and was quite impressed with how many apps and such that Dracula supports: https://github.com/dracula .. wow 2) I hope one of those helps you. I didn't see one specific to being classless or a framework for a website. But I did see a github-pages one that might be the closest?

That actually was super helpful! I went to the GH-Pages preview [0] and pulled the compiled CSS file out. I hope the license permits reuse in this way. Thank you!

[0]: https://dracula.github.io/gh-pages/

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

#74

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

Nothing, but a lot of the web dev community feels like we've gone overboard in terms of bloated CSS frameworks and this is what I perceive to be a reversion back to the basic ability to style a document without much need for writing and learning CSS or the frameworks themselves.

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

#75
I don't know why but white on black premade theme given here is just horrible for my eyes. The text burns into my eyes and then anywhere I look I can see the blurry text lines.

I code using a black on white editor but could I guess handle non-white on black themes if the non-white color wasn't as bright.

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

#76

Earlier quoted context omitted.

> It feels like I would spend more time undoing what it does than would be saved by using it. They list use-cases: > A dead-simple blog > Collecting your most used links > Making a simple "about me" site > Rendering markdown-generated HTML It’s when you have some basic HTML and just want it to look good. Agreed that framework is a very unfitting descriptor for it though.

But then, why not have this be defined by the client? I think I would like to see more websites entirely devoid of css, together with an evolving ecosystem of browser-side theme-like css rulesets to style and layout sites based on the page's semantics and everyone's unique preferences, like we style our desktops and terminals. But that's just my cloud cuckoo land, right?

>But then, why not have this be defined by the client?

Because client defaults usually suck.

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

#77

I don't understand the claims re: font loading. > Vercel's impossibly fast CDN delivers new.css and the font Inter using xz/fonts, so there's virtually no bloat added to your pages. It's 300kb of font downloads, hardly light. And the xz/fonts page says: >Break your users from unethical tracking networks I'm still making a request to a 3rd party CDN with an origin header that says what page I'm looking at, so I'm not…

They also have a lite version that uses system fonts, for whatever it is worth.

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

#78
post #67

I don't understand the claims re: font loading. > Vercel's impossibly fast CDN delivers new.css and the font Inter using xz/fonts, so there's virtually no bloat added to your pages. It's 300kb of font downloads, hardly light. And the xz/fonts page says: >Break your users from unethical tracking networks I'm still making a request to a 3rd party CDN with an origin header that says what page I'm looking at, so I'm not…

I guess the key word is “unethical”.

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!

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

#80
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…

Never in a thousand years would I even consider being on the same level as oxal's project. It's an absolute honor! Thanks so much for your support.
Post reply on HN