Skip to content

pantoken-root / formats/css/src / scopedThemeCss

Funzione: scopedThemeCss() ​

scopedThemeCss(theme, options?): string

Beta

L'insieme completo di token di un tema, limitato a qualsiasi elemento che porti data-pantoken-theme="<theme>" o l'equivalente classe .--pantoken-theme-<theme>.

Ogni token viene emesso come dichiarazione — inclusi quelli concreti che normalmente diventerebbero @property initial-values — poiché un initial-value è document-global e non può variare per scope.

Parametri ​

theme ​

Theme

options? ​

ScopedCssOptions = {}

Restituisce ​

string