Skip to content

pantoken-root / formats/css/src / themeClass

Variable: themeClass ​

const themeClass: (theme) => string

Beta

Class equivalents of the scope attributes, for hosts that sanitize data-* but allow class — Canvas RCE content being the one that forced them. They follow the repo's global-modifier naming (.--name), and the emitter pairs each attribute selector with its class twin.

Parameters ​

theme ​

string

Returns ​

string