Skip to content

pantoken / custom-theme-colors

custom-theme-colors

Bèta

@pantoken/plugin-custom-components — aangepaste componenten voor downstream-gebruikers.

Geeft gescopeerde :root[data-pantoken-color="…"] en :root[data-pantoken-theme="canvasHighContrast"][data-pantoken-color="…"] regels voor alle 13 kleur-naamruimten (navy, blue, green, red, orange, grey, plum, violet, stone, sky, honey, sea, aurora).

Voorbeeld

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

Type-aliases

Variabelen

Functies

Referenties

default

Hernoemt en opnieuw exporteert customIcons