Anatomy
A head script with no visual or accessibility tree output.
Consumer classes, styles, and data attributes may extend the surface, but required roles, IDs, relationships, and handlers remain owned by the component.
01 · Foundations
betaApplies persisted theme and density before paint to prevent an incorrect-color flash.
PRIVATE_BETA_PACKAGE_COORDINATE_REDACTED/ThemeScriptLocale-aware foundations keep permissions, direction, and reading scale independent.
Preview controls could not be applied. The static default fixture remains available.
Contract
A head script with no visual or accessibility tree output.
Consumer classes, styles, and data attributes may extend the surface, but required roles, IDs, relationships, and handlers remain owned by the component.
Public surface
data-themedata-densitycolor-schemeConsumption
PRIVATE_BETA_PACKAGE_COORDINATE_REDACTED/ThemeScriptimport ThemeScript from 'PRIVATE_BETA_PACKAGE_COORDINATE_REDACTED/ThemeScript';
<ThemeScript>Frauthy content</ThemeScript>static---
import ThemeScript from 'PRIVATE_BETA_PACKAGE_COORDINATE_REDACTED/ThemeScript';
---
<ThemeScript>Frauthy content</ThemeScript>Verification
SSR render, public-contract, state-attribute, and axe fixture scheduled in the Brand matrix.
Pending VoiceOver/Safari and NVDA/Firefox verification for the 1.0.0 release candidate.
Editorial guidance
Place the script in head and keep the storage keys aligned with Provider.
Do not run it as a hydrated component or read browser state at package import time.
Release activity
Baseline public component contract.
Version & provenance
There is no stable predecessor for this explicit compiled subpath. The v1 compatibility layer remains tested separately; visual and API diffs begin with the next prerelease.