Blog99.8K views559 votes0 replies3,370 following
Contain Your CSS: How Stylus Keeps User Styles Safe with Site‑Scoped Rules
Avoid accidental style leakage with Stylus by scoping CSS to specific origins using @-moz-document / @document rules. Learn how the extension injects styles safely, see a concrete dark‑theme example, and understand trade‑offs like browser support and selector specificity.