Skip to content

pantoken / custom-theme-colors

custom-theme-colors

Beta

@pantoken/plugin-custom-components — komponen khusus untuk konsumen hilir.

Mengekspor aturan berlingkup :root[data-pantoken-color="…"] dan :root[data-pantoken-theme="canvasHighContrast"][data-pantoken-color="…"] aturan untuk semua 13 namespace 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()] });

Antarmuka

Alias Tipe

Variabel

Fungsi

Referensi

default

Mengganti nama dan mengekspor ulang customIcons