Skip to content

pantoken / custom-theme-colors

custom-theme-colors

Beta

@pantoken/plugin-custom-components — konpozan koutim pou konsomatè desandan.

Emete règ scope :root[data-pantoken-color="…"] ak :root[data-pantoken-theme="canvasHighContrast"][data-pantoken-color="…"] pou tout 13 espas non koulè (navy, blue, green, red, orange, grey, plum, violet, stone, sky, honey, sea, aurora).

Egzanp

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

Entèfas

Alyas tip

Varyab

Fonksyon

Referans

default

Renome epi re-ekspòte customIcons