Skip to content

pantoken-root / plugins/pantoken/custom-theme-colors/src / customColorReferenceCurve

함수: customColorReferenceCurve() ​

customColorReferenceCurve(tokens?): ReferenceCurve

베타

단계별 명도 곡선과 채도 형태는 custom 스케일이 파생되는 방식을 결정하며, 13개 제공 패밀리에서 계산됩니다 . JSON 안전 형태이므로, 빌드는 이를 브라우저에 전달하여 의존성 없는 @pantoken/plugin-custom-theme-colors/scale 엔트리와 함께 사용할 수 있습니다 .

매개변수 ​

tokens? ​

읽기 전용 Token[]

기본 단계 색상 값을 참조하기 위한 선택적 토큰 배열 또는 맵입니다.

반환값 ​

ReferenceCurve

하나의 ResolvedDemo.