Skip to content

pantoken / renderers/foundation/src / toFoundationCss

函数: toFoundationCss()

toFoundationCss(options?): string

实验性

生成轻量运行时 CSS 覆盖:使用 var(--instui-*) 对 theme Foundation 的已编译类进行主题化。

参数

options?

ToFoundationCssOptions = {}

ToFoundationCssOptions.

返回值

string

覆盖层的 CSS 字符串。

示例

将覆盖限制到容器内

ts
toFoundationCss({ scope: ".instui" });