I noticed that some frameworks are using scoped CSS. The one I looked at with Vue.js was using name mangling but from the developer's perspective, it looked good. It was an attempt to stop bleeding styles into the global rules. For TornadoFX, this would mean associating a Stylesheet object with a View with a "scoped" flag. This would create addClass() statements with the name mangling prepended.