Skip to content

pantoken-root / theme-custom-media

theme-custom-media ​

ベータ

@pantoken/plugin-theme-custom-media — author with theme custom-idents (@media (theme: <name>)) and/or @media (--theme-*) aliases, then emit concrete CSS for a chosen target theme.

このプラグインは組み込みの --theme-* と --breakpoint-* エイリアスを展開し、ターゲット外のテーマ ブランチを剪定し、保持されたクエリから一致する theme:* 句を除去し、常に真となるテーマ専用メディア ラッパーのラップを解除し、生成される CSS から @custom-media --theme-*/--breakpoint-* 宣言を削除します。

インターフェース ​

型エイリアス ​

変数 ​

参照 ​

default ​

themeCustomMedia の名前を変更し、再エクスポートします