Skip to content

pantoken / custom-theme-colors

custom-theme-colors

Beta

@pantoken/plugin-custom-components — componentes personalizados para consumidores aguas abajo.

Emite reglas con ámbito :root[data-pantoken-color="…"] y :root[data-pantoken-theme="canvasHighContrast"][data-pantoken-color="…"] para los 13 espacios de nombres de color (navy, blue, green, red, orange, grey, plum, violet, stone, sky, honey, sea, aurora).

Ejemplo

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 tipo

Variables

Funciones

Referencias

default

Renombra y reexporta customIcons