Skip to content
jshacks.dev

Tag

shadow dom

1 post

Flat illustration of a template rendering into a page, with the webcomponents.org, Google Chrome, CSS and Svelte logos.
Browser

How to Style Web Components From Outside

Style web components from outside with CSS custom properties, ::part, ::slotted, :host and adoptedStyleSheets, and design a stable styling API.

8 min read