Skip to content

explorerTokens

reference
1 min readUpdated

Kind: Constant

Source: atloria-monorepo/packages/ui-core/src/components/api-explorer/theme.ts

The shadow-side half: the explorer's long-standing vocabulary, restated in terms of the mode tokens.

Deliberately NOT a place to declare --ax-* itself. A declaration on an element beats a value inherited into it, and the sheet cannot reach a component nested inside another component's shadow root — so a :host { --ax-surface: … } here would pin every nested panel to its own light default and quietly undo the theme one level down. Chromium says so plainly; jsdom does not, which is what tools/verify-explorer-theme.mjs is for.

Each alias therefore ends in the value that declaration always had, so a page with no sheet installed — and every var(--ax-…, #hex) through the component styles — still renders exactly as it did before this file existed.

Was this page helpful?

Download as PDF