ReadonlyfilterActive filter applied to the token list.
ReadonlyfilteredTokens after the active filter is applied.
ReadonlyisWhether the studio drawer is currently visible.
ReadonlyloadError message from the most recent manifest load attempt, or null.
ReadonlyloadingLoading state for the manifest fetch.
ReadonlymanifestRaw manifest loaded from JSON.
ReadonlymodifiedTokens that have been modified by the studio.
ReadonlysampleWhether the token editor is limited to the selected sample's tokens.
ReadonlyselectedThe live component sample currently shown in the canvas.
ReadonlytokensAll tokens with their live computed values and any studio overrides.
Close the studio drawer.
Export the current overrides as a CSS snippet that can be pasted into a stylesheet.
Export the current overrides as a JSON object
({ "--ui-accent": "#ff0000", ... }).
Import a set of overrides from a plain object. Only tokens present in the manifest are applied.
Open the studio drawer, loading the manifest if needed.
Reset all overrides and re-read computed values from the document.
Reset only overrides visible for the current sample.
Apply an override value to a token and update the live document.
Pass null to reset the token to its original computed value.
Toggle the component-focused token view.
Select the component sample shown by the studio canvas.
Toggle the studio drawer.
Return the current live value for a token, if it is loaded.
State management service for the Theme Studio drawer.
Loads the CSS token manifest, reads live computed values from the document root, tracks per-token overrides, and applies them in real time via
document.documentElement.style.setProperty.Inject this wherever you need to open/close the studio or query its state.
Example