Skip to content

pantoken / custom-theme-colors

custom-theme-colors

Beta(測試)

@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