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를 재내보냅니다.