Skip to content

pantoken-root / custom-theme-colors

custom-theme-colors ​

Beta

@pantoken/plugin-custom-components — components personalitzats per a consumidors de flux descendent.

Emet regles amb àmbit :root[data-pantoken-color="…"] i :root[data-pantoken-theme="canvasHighContrast"][data-pantoken-color="…"] per a les 13 espais de noms de color (navy, blue, green, red, orange, grey, plum, violet, stone, sky, honey, sea, aurora).

Exemple ​

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

Interfícies ​

Àlies de tipus ​

Variables ​

Funcions ​

Referències ​

default ​

Reanomena i reexporta customIcons