Skip to content

pantoken / custom-theme-colors

custom-theme-colors

Beta

@pantoken/plugin-custom-components — anpassade komponenter för nedströmskonsumenter.

Genererar scope:ade :root[data-pantoken-color="…"] och :root[data-pantoken-theme="canvasHighContrast"][data-pantoken-color="…"] regler för alla 13 färgnamnrymder (navy, blue, green, red, orange, grey, plum, violet, stone, sky, honey, sea, aurora).

Exempel

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

Gränssnitt

Typalias

Variabler

Funktioner

Referenser

default

Byter namn på och återexporterar customIcons