Skip to content

pantoken / custom-theme-colors

custom-theme-colors

בטא

@pantoken/plugin-custom-components — רכיבים מותאמים לצרכנים במורד.

מייצר כללים ממוקדים :root[data-pantoken-color="…"] ו:root[data-pantoken-theme="canvasHighContrast"][data-pantoken-color="…"] עבור כל 13 מרחבי השמות של הצבע (navy, blue, green, red, orange, grey, plum, violet, stone, sky, honey, sea, aurora)).

דוגמה

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

ממשקים

כינויים של טיפוסים

משתנים

פונקציות

הפניות

default

משנה שם ומייצא מחדש את customIcons