Hacker News new | ask | show | jobs
by siduck 1005 days ago
what would be nue-css? i really like unocss currently as its syntax's pretty clean

like

<div border="1 solid red"> instead of tailwind's <div classname='border-1 border-solid borde-red />

also <div bg-red> too, it supports value-less attributes and one can use a single class name as tag name too, like <bg-red> something </bg-red>

1 comments

Nue CSS is like SASS, but more minimal and more in line with the current standards. Think CSS variables instead of template variables. It's pretty vocal about semantic CSS and separation of concerns once it's public. The main thing is to give a strong alternative to the current css-in-js movement. Haven't checked Uno CSS in detail, but looks like it's a close companion to Tailwind. Nue is a big step away from tight coupling.