# provideShadowRootThemeTarget Type documentation

## TypeScript declaration

### [provideShadowRootThemeTarget](<https://github.com/siemens/element/blob/main/projects/element-ng/shadow-root/si-shadow-root-theme-target.ts#L48-L56>)

**Kind:** constant

```
import { provideShadowRootThemeTarget } from '@siemens/element-ng/shadow-root';
```

Provides the shadow root specific theme service with a dedicated theme target for components using Shadow DOM encapsulation. Use this when the component defines and loads the Element theme in its own shadow root instead of reusing the theme defined on `:root`.

```
() => Provider = ...
```

```
provideShadowRootThemeTarget(): Provider
```

Provides the shadow root specific theme service with a dedicated theme target for components using Shadow DOM encapsulation. Use this when the component defines and loads the Element theme in its own shadow root instead of reusing the theme defined on `:root`.

**Returns:** [Provider](<https://angular.dev/api/core/Provider>)
