Skip to content

pantoken / custom-theme-colors

custom-theme-colors

Beta

@pantoken/plugin-custom-components — tilpassa komponentar for nedstrømsbrukarar.

Skriv ut avgrensa :root[data-pantoken-color="…"] og :root[data-pantoken-theme="canvasHighContrast"][data-pantoken-color="…"] reglar for alle 13 fargenamnområde (navy, blue, green, red, orange, grey, plum, violet, stone, sky, honey, sea, aurora).

Døme

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

Grensesnitt

Typealias

Variablar

Funksjonar

Referansar

default

Endrar namn og re-eksporterer customIcons