terribleMia’s avatarterribleMia’s Twitter Archive—№ 8,480

    1. …in reply to @ckirknielsen
      ckirknielsen I did tweet about that! I also think custom properties offer a pretty good solution for you right now. :) .color-accent { color: var(--accessible-accent); } .bg-dark { --accessible-accent: <???>; } .bg-light { --accessible-accent: <???>; }
  1. …in reply to @TerribleMia
    ckirknielsen That relies on _inheritance_ rather than specificity, to get the right value. And inheritance does work based on proximity, which is what you wanted.