Skip to content

pantoken / custom-theme-colors

custom-theme-colors

Béta

@pantoken/plugin-custom-components — egyéni komponensek a továbbfelhasználók számára.

Kibocsát hatókörre szűrt :root[data-pantoken-color="…"] és :root[data-pantoken-theme="canvasHighContrast"][data-pantoken-color="…"] szabályokat az összes 13 színnévtérre (navy, blue, green, red, orange, grey, plum, violet, stone, sky, honey, sea, aurora).

Példa

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

Interfészek

Típusaliasok

Változók

Függvények

Hivatkozások

default

Átnevezi és újra exportálja a customIcons függvényt