Skip to content

pantoken-root / custom-theme-colors

custom-theme-colors ​

Beta

@pantoken/plugin-custom-components — komponen tersuai untuk pengguna hiliran.

Menghasilkan peraturan berskop :root[data-pantoken-color="…"] dan :root[data-pantoken-theme="canvasHighContrast"][data-pantoken-color="…"] peraturan untuk semua 13 ruang nama warna (navy, blue, green, red, orange, grey, plum, violet, stone, sky, honey, sea, aurora).

Contoh ​

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()] });

Antaramuka ​

Alias Jenis ​

Pembolehubah ​

Fungsi ​

Rujukan ​

default ​

Menamakan semula dan mengeksport semula customIcons