Skip to content

pantoken-root / formats/css/src / ToCssOptions

接口: ToCssOptions ​

Beta

用于 toCss 的选项。

属性 ​

scope? ​

optional scope?: string

Beta

选择器作用域的声明将输出到(默认:":root")。


layer? ​

optional layer?: string

Beta

普通的图层名称(例如 "pantoken"),不带 @ 前缀。省略则跳过包装器。


emit? ​

optional emit?: CssEmitTarget

Beta

要生成的主题(默认:"rebrand")。


declareAll? ​

optional declareAll?: boolean

Beta

将每个 token 以声明形式输出,而不是将具体 token 路由到 @property。对于可以嵌套在另一个主题子树内的主题块这是必须的:不完整的块会继承其外层主题所省略的那些 token 的值。


plugins? ​

optional plugins?: readonly PantokenPlugin[]

Beta

其 css 钩子在基础 CSS 构建完成后运行的插件(默认:无)。