Skip to content

pantoken-root / formats/css/src / scopedThemeCss

函数: scopedThemeCss() ​

scopedThemeCss(theme, options?): string

Beta

某一主题的完整 token 集,作用域限定在任何带有 data-pantoken-theme="<theme>" 的元素或等效的 .--pantoken-theme-<theme> 类上。

每个 token 都以声明的形式输出——包括通常会成为 @property 初始值的那些具体值——因为初始值是文档全局的,无法在不同作用域间变化。

参数 ​

theme ​

Theme

options? ​

ScopedCssOptions = {}

返回值 ​

string