# theme/from-theme (zidane-ui)

Import: `import { … } from 'zidane-ui'`. Source: [ui/src/theme/from-theme.ts](https://github.com/Tahul/zidane/blob/main/ui/src/theme/from-theme.ts).

## Functions

### `seedFromTheme`

Function.

Converts a registry or extension [`Theme`](https://zidane.si/docs/reference/ui-theme-themes.md#Theme) into the [`ThemeSeed`](https://zidane.si/docs/reference/ui-theme-derive.md#ThemeSeed) that
`derivePalette` takes, mapping the terminal roles (`brand`, `dim`, `mute`, `borderActive`) to
surface roles.

```ts
function seedFromTheme(theme: Theme): ThemeSeed
```

**Parameters**

- `theme` (`Theme`): The theme to convert.

**Returns** `ThemeSeed`: The seed.

Source: [ui/src/theme/from-theme.ts:21](https://github.com/Tahul/zidane/blob/main/ui/src/theme/from-theme.ts#L21)
