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