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