Mixins / foldkit-mixins/theme/runtime

ThemeNames

interface · packages/mixins/src/theme/runtime.ts:16

interface ThemeNames<Name extends string> {
  readonly names: ReadonlyArray<Name>
  readonly initial: Name
  readonly attribute: string
}

What the functions here need of a set of named themes: its names and where the active one is shown.

In the guides

Members

ThemeNames.names

property · packages/mixins/src/theme/runtime.ts:17

readonly names: ReadonlyArray<Name>

ThemeNames.initial

property · packages/mixins/src/theme/runtime.ts:18

readonly initial: Name

ThemeNames.attribute

property · packages/mixins/src/theme/runtime.ts:20

readonly attribute: string

The root element's attribute that names the active theme.