oc · docs
docs / documentation

@orangecheck/design


@orangecheck/design / readOcSceneTokens

Function: readOcSceneTokens()

function readOcSceneTokens(host: HTMLElement): OcSceneTokens | null;

Defined in: tokens/scene-tokens.ts:99

Read the scene tokens by probing INSIDE host (normally the .oc-aurora element). Returns null if any slot fails to parse — callers treat null as "keep the CSS floor", never as an error.

Parameters

ParameterType
hostHTMLElement

Returns

OcSceneTokens | null