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

  1. …in reply to @darth_mall
    darth_mall I think tools like Bootstrap, while not the only use-case, provide the clearest example. They want to provide: - Reliable default patterns - That you can override with branding - But some rules are functionally required Same is true with component libraries. So…
    1. …in reply to @TerribleMia
      darth_mall They try to use simple selectors for defaults, & throw !important on essential rules. Then we try to load their styles first, & selectively override: hacking source order & specificity to get exactly the right layering of defaults, customization, and overrides.
      1. …in reply to @TerribleMia
        darth_mall "Resets" are often even more careful about selectors. But if you look at browser default styles, they can be quite complex - targeting very specific use-cases. What if we could do that kind of specific targeting in our base styles, without making them difficult to override?