News for hackers. Stuff that matters.
Re:Native HTML elements with CSS superpowers by giancarlostoro on Monday June 15, 2020 @09:07AM (#23526891)
From the website because I was wondering if this was some ReactNative alternative or what they meant by native HTML elements:

> Native Elements (NE) is not a CSS framework, no bundlers required or tons of configurations to set. You can consider it as a customizable plug-n-play library for your site which helps you easily styling all the available HTML elements using CSS custom properties, classes, attributes, or whatever you want in less than 7 kB. You can also build your class-based CSS framework on top of it.

Seems interesting, but as a common web developer not uber ahead on next gen stuff they could really put more examples in the homepage outside of just a gif. My best guess is this allows you to create new HTML elements that have some default properties, which sounds nice enough. I heard the browser was coming out with this capability or related in the future, I always forget what they're calling it next but I'm still waiting on that, unless this builds on that?

> This library is built using modern CSS feature and best practices, the compiled version supports only the latest two Chrome, Safari, Firefox, and Edge versions and this is possible thanks to Browserslist

I'm all for us all collectively taking out legacy browsers and forcing grumpy IT guys who are going to get their orgs hacked to finally upgrade, but which features? These details are useful to know.

Re:Native HTML elements with CSS superpowers by nicoburns on Monday June 15, 2020 @09:24AM (#23527038)
This is just a CSS framework that allows you to apply pre-baked styles by adding attributes to your HTML elements.
Re:Native HTML elements with CSS superpowers by yoz-y on Monday June 15, 2020 @09:36AM (#23527142)
As opposed to using classes? What is the advantage?
Re:Native HTML elements with CSS superpowers by dirtnugget on Monday June 15, 2020 @02:43PM (#23531291)
Not having to add classes I guess, because that is way too complicated
Re:Native HTML elements with CSS superpowers by IgorPartola on Monday June 15, 2020 @09:27AM (#23527057)
This is the most concise explanation of what this project is. Why couldn’t the author save themselves the trouble of all that write up and just use that one sentence?