# @salmonui/core/server API reference

> 9 exported symbols of @salmonui/core/server: 1 component, 2 functions, 2 interfaces and 4 types.

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

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

## Components

### ThemeStyle

Kind: component

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

```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)

## Functions

### createThemeCss

Kind: function

Page: https://salmonui.dev/docs/reference/core/server/createThemeCss

```ts
function createThemeCss(theme?: SalmonThemeInput): string;
```

Deterministic CSS text for one theme scope (both schemes and `prefers-contrast` overrides).

### getThemeHash

Kind: function

Page: https://salmonui.dev/docs/reference/core/server/getThemeHash

```ts
function getThemeHash(theme?: SalmonThemeInput): string;
```

The `data-salmon-theme` hash of a theme; equal seeds always produce the same hash.

## Interfaces

### ThemeStyleProps

Kind: interface

Page: https://salmonui.dev/docs/reference/core/server/ThemeStyleProps

```ts
interface ThemeStyleProps {
    theme?: SalmonThemeInput;
    nonce?: string;
}
```

Members (2):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `theme` | `theme?: SalmonThemeInput;` | optional |  |
| `nonce` | `nonce?: string;` | optional | CSP nonce forwarded to the `<style>` element. |

## Re-exported entry points

- [@salmonui/core/theme](https://salmonui.dev/docs/reference/core/theme.md): 5 symbols: 1 interface and 4 types
  `SalmonColorScheme`, `SalmonDensity`, `SalmonHexColor`, `SalmonSurfaceColor`, `SalmonThemeInput`
