Skip to content

pantoken / theme-custom-media

theme-custom-media

Beta(測試)

@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