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