News for hackers. Stuff that matters.
Re:Show HN: Lissom.CSS - A classless, minimalist, and themea... by Looky1173 on Tuesday June 20, 2023 @09:29AM (#36403670)
It's mainly the latter. I did consider just using a class, but ultimately settled on this solution. This approach might facilitate usage with additional CSS compilers/tooling.
Re:Show HN: Lissom.CSS - A classless, minimalist, and themea... by canadiantim on Tuesday June 20, 2023 @10:32AM (#36404589)
I admit I become hesitant when I see "data-*" attributes as it makes me think Javascript might be necessary to use it
Re:Show HN: Lissom.CSS - A classless, minimalist, and themea... by Looky1173 on Tuesday June 20, 2023 @10:34AM (#36404630)
"data-*" attributes don't require any JavaScript; their values can even be accessed from CSS with `content: attr(data-*);`