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