Trying out a variant of "UI as a function of state" where I store state in "data" attributes on the component root and then my CSS is peppered with selectors based on those attributes.
@goulet @11ty Were you able to prove out that at ship time the repeated DSD was causing performance issues? Some implementors maintain that compression tooling is enough to alleviate that issue, but they'd likely be swayed by data/reason in the form of lived experience as we look to have better APIs like Declarative CSS Module Scripts and, hopefully, (Declarative) HTML Module Scripts.