Inject stylus in Shadow DOM

inject stylus to shadowRoot

Author
hdyzen
Daily installs
0
Total installs
40
Ratings
1 0 0
Version
0.2
Created
2024-02-07
Updated
2024-09-12
Size
3.5 KB
License
MIT
Applies to
All sites

Add styles of Stylus addon in shadowRoot

To apply styles within shadowRoot use the :host pseudo-class, example:

:host [selector] {
  border: 1px solid red;
}
:host * {
  border: 1px solid blue;
}