terribleMia’s avatarterribleMia’s Twitter Archive—№ 7,186

  1. Oh, you still use CSS-in-JS? That's so 2019. Haven't you heard about CSS-in-Nunjucks? {% set style = { '--fit-min': 'var(--min-page)', '--media-content': 'var(--small-page)' } | styles %}
    oh my god twitter doesn’t include alt text from images in their API
    1. …in reply to @TerribleMia
      omg hi everyone: CSS-in-NJK is a joke, calm down. This was useful on one particular 11ty site, it's not a replacement for normal html and css. yikes. Clearly made it outside my usual followers on that one…
      1. …in reply to @TerribleMia
        There's a reason I *only* set CSS variables here, and only to other variables. That way the CSS is still totally contained in CSS - and the markup is only used for occasionally selecting between pre-defined options. It's a useful CSS Trick, not a whole new approach to CSS.