Constructable Stylesheets: seamless reusable styles

Jason Miller / filed under HTML & CSS

Constructable Stylesheets are a new way to create and distribute reusable styles when using Shadow DOM. It has always been possible to create stylesheets using JavaScript. However, the process has historically been to create a element using document.createElement(‘style’), and then access its sheet property to obtain a reference to the underlying CSSStyleSheet instance. This method […]

Join thousands of product people and get the latest articles and resources from my curation every day or week.