Skip to content

pantoken / custom-theme-colors

custom-theme-colors

Beta

@pantoken/plugin-custom-components — prilagojene komponente za nadaljnje uporabnike.

Generira omejena :root[data-pantoken-color="…"] in :root[data-pantoken-theme="canvasHighContrast"][data-pantoken-color="…"] pravila za vseh 13 imenikov barv (navy, blue, green, red, orange, grey, plum, violet, stone, sky, honey, sea, aurora).

Primer

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

Vmesniki

Alias tipi

Spremenljivke

Funkcije

Sklici

default

Preimenuje in ponovno izvaža customIcons