Skip to content

theme/from-theme

import { … } from 'zidane-ui'ui/src/theme/from-theme.ts

Functions#

seedFromThemeFunction#

Converts a registry or extension Theme into the ThemeSeed that derivePalette takes, mapping the terminal roles (brand, dim, mute, borderActive) to surface roles.

TypeScript
function seedFromTheme(theme: Theme): ThemeSeed
Parameters
NameTypeDescription
themeTheme

The theme to convert.

ThemeSeed

The seed.

ui/src/theme/from-theme.ts:21