Skip to content

pantoken / custom-components

custom-components

ベータ

@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 を名前を変更して再エクスポートします