Skip to content

pantoken-root / formats/css/src / scopedThemeCss

함수: scopedThemeCss() ​

scopedThemeCss(theme, options?): string

베타

하나의 테마에 대한 전체 토큰 세트로, data-pantoken-theme="<theme>"를 가진 요소나 동등한 .--pantoken-theme-<theme> 클래스가 적용된 요소에 스코프됩니다.

모든 토큰은 선언으로 출력됩니다 — 통상적으로 @property 초기값이 될 구체적 토큰들도 포함됩니다 — 초기값은 문서 전역이어서 스코프별로 달라질 수 없기 때문입니다.

매개변수 ​

theme ​

Theme

options? ​

ScopedCssOptions = {}

반환값 ​

string