Inject stylus in Shadow DOM

inject stylus to shadowRoot

Author
hdyzen
Daily installs
1
Total installs
31
Ratings
1 0 0
Version
0.2
Created
2024-02-07
Updated
2024-09-12
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;
}