Skip to content

pantoken-root / formats/scope/src / ResolvedScope

Interface: ResolvedScope ​

Beta

A ScopeConfig resolved against the DOM, plus where each part came from.

Extends ​

Properties ​

theme? ​

optional theme?: string

Beta

Theme key, e.g. "rebrand". Matched by [data-pantoken-theme="…"].

Inherited from ​

ScopeConfig.theme


scheme? ​

optional scheme?: Scheme

Beta

Pinned color scheme. Omit to follow the OS preference.

Inherited from ​

ScopeConfig.scheme


color? ​

optional color?: string

Beta

Custom brand color key.

Inherited from ​

ScopeConfig.color


instanceId? ​

optional instanceId?: string

Beta

Identifier of the pantoken instance that owns this scope.

Inherited from ​

ScopeConfig.instanceId


element ​

element: Element | null

Beta

The nearest element that declared any scope attribute, or null when none did.


bounded ​

bounded: boolean

Beta

True when resolution stopped at a data-pantoken-boundary element.