Skip to content

pantoken-root / custom-theme-colors

custom-theme-colors ​

Beta

@pantoken/plugin-custom-components — componenti personalizzati per i consumatori a valle.

Emette regole scoped :root[data-pantoken-color="…"] e :root[data-pantoken-theme="canvasHighContrast"][data-pantoken-color="…"] per tutti e 13 i namespace di colore (navy, blue, green, red, orange, grey, plum, violet, stone, sky, honey, sea, aurora).

Esempio ​

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

Interfacce ​

Alias di tipo ​

Variabili ​

Funzioni ​

Riferimenti ​

default ​

Rinomina e riesporta customIcons