the_other 4 minutes ago

I like it. Nice effort. Plus I like the visual style a lot too.

I feel there's a mismatch between creating novel "semantic" elements, and then customising them in the markup, rather than the contextual approach (nesting, rich selectors). The mismatch is that the new elements still apply a "what" approach, but the attributes used for customisation apply a "how" approach and leave it in the mark-up. It's still like `<p class="red" />` rather than `main p { background-color: red; }`.

I get that there's a trade-off between purity and code that's nice to work with, and I think you've hit a very readable, appealing and creative balance.

gherkinnn 34 minutes ago

I recently went down a similar path to build the FE of an app. It worked fine at first and I learned a whole lot about recent updates to CSS. And boy, has it come a long way. Cascade layers, nesting, and the :has selector tripple-handedly change how views can be written for the better.

It is a solid solution for blogs and apps with a distinct document feel, but for anything beyond that I found it too limiting and brittle. Back to components and Tailwind.

Iv 23 minutes ago

Well, HTML was supposed to be a generic language to describe typical documents. Most websites don't need more than the default elements.

From an outside perspective, it is perplexing to see the constant back and forth webdevs do between making website more complex and rediscovering the simpler first principles

habibur 15 minutes ago

Right click -> view source.

Found "<span class=..." — What?

Read the page.

Footer : "I only got 99% of the way there. I use 11ty’s syntax highlighting plugin, which uses classes for styling."

ZYbCRq22HbJ2y7 13 minutes ago

> In my recent post, “There’s no such thing as a CSS reset”, I wrote this: Think of elements like components, but ones that come packed in the browser. Custom elements, without the “custom” part. You can just like, use them. The line continued to rattle around in my head, and a few weeks later when I was digging into some cleanup work I came to an uncomfortable realization; I wasn’t really taking my own advice.

Dude is high as fuck on his own farts

dayvster 14 minutes ago

Hah that's a cool and creative exercise. Love the writing style as well

thiago_fm 23 minutes ago

I love the design of his blog -- the use of dots, link highlights etc.

It also brings back memory of 2000s internet, but merged into Today's design standards. I assume this was intentional.

iLoveOncall 38 minutes ago

> I removed a non-trivial amount of CSS (now about ~5KB of CSS over the wire for the entire site)

That's around 2% of the size of the single page of that article, it absolutely is a trivial amount, especially when it complexifies so much the maintenance or addition of the website.

  • Gabrys1 30 minutes ago

    The 5KB is trivial. They don't mention how much was actually removed. Maybe 200KB? Who knows

    • drcongo 18 minutes ago

      It has also vastly simplified the maintenance of the website.