# ThemeStyle (@salmonui/core/server)

> The ThemeStyle component of @salmonui/core/server: Server-safe theme stylesheet: no hooks, effects, or browser globals. Renders one React 19 hoistable &lt;style> (data-href="salmonui-theme-&lt;hash>"), which React deduplicates per document and hoists into &lt;head>, on the server and on the client alike.

Canonical: https://salmonui.dev/docs/reference/core/server/ThemeStyle

```ts
import { ThemeStyle } from '@salmonui/core/server';
```

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

## Reference

Kind: component

```ts
function ThemeStyle({ theme, nonce }: ThemeStyleProps): import("react").JSX.Element;
```

Server-safe theme stylesheet: no hooks, effects, or browser globals. Renders
one React 19 hoistable `<style>` (`data-href="salmonui-theme-<hash>"`), which
React deduplicates per document and hoists into `<head>`, on the server and
on the client alike.

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