Skip to content

pantoken / custom-components

custom-components

Beta

@pantoken/plugin-custom-components — 供下游使用者的自定义组件。

示例

ts
import { toCss } from "@pantoken/css";
import { byTheme } from "@pantoken/tokens";
import { customComponents } from "@pantoken/plugin-custom-components";

const css = toCss(byTheme("rebrand"), { plugins: [customComponents()] });
// appends all custom-component rules to the token sheet

接口

函数

引用

default

重命名并重新导出 customComponents