Web Components, Shadow Dom, Web Standards, CSS, HTML.
shadowrootmode="open"> <shared-style style-id="hello-world"></shared-style> Hello World </template> </hello-world> Notice that the styles only appear in the markup the first time they are needed. Everywhere else references them via their unique id instead. IMPORTANT: An alternative solution to the