Notes

Short stuff: links worth keeping, things I learned, and half-formed thoughts — all in one stream.

  1. TILs

    CSS has if() now.

    .element {
    background: if(
    style(--status: online): #​16A34A;
    style(--status: away): #​F59E0B;
    else: #​9CA3AF
    );
    }

    Set --status on the element and the color follows.

    — via Marco Denic