Mixins / foldkit-mixins/theme

knobScript

function · packages/mixins/src/theme/knobsKept.ts:56

function knobScript({
  key = KNOBS_KEY,
  selector = ':root',
}?: KnobsPlace): string

The text of a <script> for the document's head: it applies the knobs kept under key to selector, so a reader who made a theme never sees the default for a frame. Storage that throws, an entry of another format, and anything that is not a knob variable are left out.