# Shadow-DOM-inject-styles A helper function to easily modify Shadow DOM CSS. ## Install ```bash npm install shadow-dom-inject-styles --save ``` ## Vanilla JS Example / Demo [jsfiddle](https://jsfiddle.net/ry4sbnom/1/) ```html ``` ## Typescript Example ```ts import {injectStyles} from 'shadow-dom-inject-styles'; const toolbar = (this.el.querySelector('ion-header > ion-toolbar') as HTMLElement); // language=CSS const styles = ` .toolbar-background { background: red !important;; } `; injectStyles(toolbar, '.toolbar-background', styles); ```