Mixins / foldkit-mixins/theme

KnobsPlace

interface · packages/mixins/src/theme/knobsKept.ts:28

interface KnobsPlace {
  readonly key?: string | undefined
  readonly selector?: string | undefined
}

Where kept knobs are kept, and the elements they apply to.

Members

KnobsPlace.key

property · packages/mixins/src/theme/knobsKept.ts:30

readonly key?: string | undefined

The storage key. Default KNOBS_KEY.

KnobsPlace.selector

property · packages/mixins/src/theme/knobsKept.ts:36

readonly selector?: string | undefined

The elements whose knobs the rule sets. Default :root. A token derives from the knobs where it is declared, so elements other than the root must declare the tokens too (Theme.scope), or they inherit the root's.