Skip to content

pantoken-root / custom-theme-colors

custom-theme-colors ​

ベータ

@pantoken/plugin-custom-components — 下流の利用者向けのカスタムコンポーネント。

スコープされた :root[data-pantoken-color="…"] および :root[data-pantoken-theme="canvasHighContrast"][data-pantoken-color="…"] すべての13のカラーネームスペース向けのルールを出力します (navy, blue, green, red, orange, grey, plum, violet, stone, sky, honey, sea, aurora).

例 ​

ts
import { toCss } from "@pantoken/css";
import { byTheme } from "@pantoken/tokens";
import { customThemeColors } from "@pantoken/plugin-custom-theme-colors";

const css = toCss(byTheme("rebrand"), { plugins: [customThemeColors()] });

インターフェース ​

型エイリアス ​

変数 ​

関数 ​

参照 ​

default ​

customIcons の名前を変更し再エクスポートします