Skip to content

pantoken-root / formats/css/src / scopedThemeCss

Swyddogaeth: scopedThemeCss() ​

scopedThemeCss(theme, options?): string

Bêta

Set tocynau cyflawn un thema, wedi'i gwmpasu i unrhyw elfen sy'n cario data-pantoken-theme="<theme>" neu yr hafaliad .--pantoken-theme-<theme> class.

Mae pob tocyn yn cael ei allyrru fel datganiad — gan gynnwys y rhai concrid a fyddai fel arfer yn dod yn @property gwerthoedd cychwynnol — oherwydd mae gwerth cychwynnol yn gyffredinol i'r ddogfen ac ni all amrywio fesul cwmpas.

Paramedrau ​

theme ​

Theme

options? ​

ScopedCssOptions = {}

Yn dychwelyd ​

string