Skip to content

pantoken-root / formats/css/src / scopedThemeCss

Fonksyon: scopedThemeCss() ​

scopedThemeCss(theme, options?): string

Beta

Set token konplè yon tèm, scope a aplikab sou nenpòt eleman ki pote data-pantoken-theme="<theme>" oswa ekivalan .--pantoken-theme-<theme> klas.

Chak token emèt kòm yon deklarasyon — enkli sa yo konkrè ki nòmalman ta vin @property initial-values — paske yon initial-value se global pou dokiman an e li pa ka varye pa scope.

Paramèt ​

theme ​

Theme

options? ​

ScopedCssOptions = {}

Retounen ​

string