Skip to content

pantoken-root / formats/css/src / scopedThemeCss

Fall: scopedThemeCss() ​

scopedThemeCss(theme, options?): string

Beta

Fullkomið token-sett eins þema, afmarkað við hvaða stak sem ber data-pantoken-theme="<theme>" eða jafngilda .--pantoken-theme-<theme> klasa.

Allir token eru gefnir út sem yfirlýsing — þar með taldir hin hörðu sem venjulega yrðu að @property upphafsgildi — því upphafsgildi er skjal-vítt og getur ekki verið misjafnt eftir umfangi.

Færibreytur ​

theme ​

Theme

options? ​

ScopedCssOptions = {}

Skilar ​

string