Login
You're viewing the ruby.social public feed.

Replies

  • Oct 12, 2026, 1:41 PM

    @leaverou

    I like/use the semantic nature of "this button is class=delete" and then letting the CSS draw icons (whether Wastebasket emoji or an SVG, but please no icon-fonts because they break when Firefox enforces my own readable fonts and I get something like "ß" that sites attempt to visually override as a trash-can icon) and choose colors appropriately.

    But I find it a bit unfortunate to suggest intermingling one-off icons directly into the HTML. Better to promote the one-off to a full-fledged class and use that semantically.

    Sticking to pure class=classname in the HTML should also resolve the "branching between these three" issue you mention/defer. The HTML becomes responsible only for "this is a class=XYZ" and the CSS is responsible for "this is what .XYZ looks like" whether it uses content=emoji or SVG icons or whatever.

    💬 1🔄 0⭐ 0
  • Oct 12, 2026, 4:44 PM

    @gumnos That's up to the icon system user.

    The icon system allows either pattern. But also, there are perfectly valid cases for one-off icons (e.g. an icon palette!)

    💬 0🔄 0⭐ 0
  • 💬 2🔄 0⭐ 0
  • Oct 12, 2026, 4:51 PM

    @kizu Ha, some of this is basically what I was planning to discuss in the icon animation followup! Of course you got there first lol. I'll send you a draft when that post is ready for review!

    💬 0🔄 0⭐ 0
  • Oct 13, 2026, 5:18 AM

    @kizu Thanks, I just updated the post to use this (linking to your post), and released a new version of @nudeui/icons that uses it!

    💬 0🔄 0⭐ 0
  • Oct 12, 2026, 4:30 PM

    @leaverou I thought I was happy just dropping references to SVGs via `use` but your reminder that I have to use an entirely different technique to style `:marker`s means I'll be digging into this on <current project>

    💬 1🔄 0⭐ 0
  • Oct 12, 2026, 4:40 PM

    @devolute ::marker may be a little limited in the properties it allows for this, so you may still need to recreate markers with ::before. But that's true for most heavily customized markers anyway…

    💬 0🔄 0⭐ 0
  • Oct 12, 2026, 9:00 PM

    @leaverou I love your deep dives, like this one and the one on bundlers, because you state the goals upfront and then try every single thing to try and achieve them. I end up learning so much. Thanks!

    💬 0🔄 0⭐ 0