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 […]

Subscribe to newsletter

Best design and frontend links delivered to your inbox every day and week. No spam, unsubscribe at anytime.

Choose frequency

Privacy Policy