# ThemeProvider (@salmonui/core/theme)

> The ThemeProvider component of @salmonui/core/theme: Theme scope root: &lt;div class="salmon-theme-scope" data-salmon-theme="&lt;hash>">. Renders no styles itself; the CSS comes from ThemeStyle or from the precompiled default stylesheet. No browser APIs during render. A theme that sets density also provides it to components with JavaScript metrics (the Data Grid row height); unset inherits the enclosing scope's.

Canonical: https://salmonui.dev/docs/reference/core/theme/ThemeProvider

```ts
import { ThemeProvider } from '@salmonui/core/theme';
```

Entry index: https://salmonui.dev/docs/reference/core/theme (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/core/theme.md).

## Reference

Kind: component

```ts
function ThemeProvider({ theme, children, className, style, ref }: ThemeProviderProps): import("react").JSX.Element;
```

Theme scope root: `<div class="salmon-theme-scope" data-salmon-theme="<hash>">`.
Renders no styles itself; the CSS comes from `ThemeStyle` or from the
precompiled default stylesheet. No browser APIs during render. A theme
that sets `density` also provides it to components with JavaScript
metrics (the Data Grid row height); unset inherits the enclosing scope's.

Props: [`ThemeProviderProps`](https://salmonui.dev/docs/reference/core/theme/ThemeProviderProps) (its members are the props)
