Skip to content

pantoken / custom-theme-colors

custom-theme-colors

Bêta

@pantoken/plugin-custom-components — composants personnalisés pour les consommateurs en aval.

Émet des :root[data-pantoken-color="…"] and :root[data-pantoken-theme="canvasHighContrast"][data-pantoken-color="…"] règles pour les 13 espaces de noms de couleurs (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()] });

Interfaces

Alias de type

Variables

Fonctions

Références

default

Renomme et ré-exporte customIcons