Skip to content

pantoken-root / plugins/postcss/theme-custom-media/src / themeCustomMedia

变量: themeCustomMedia ​

const themeCustomMedia: {(options?): Plugin; postcss: true; }

Beta

创建主题 custom-media 降级插件。

支持在媒体特性中使用直接的主题 custom-idents(例如, (theme: canvas))进行创作,或使用内置的 @custom-media --theme-* 别名。

Type Declaration ​

参数 ​

options? ​

ThemeCustomMediaOptions

ThemeCustomMediaOptions.

返回值 ​

Plugin

一个 PostCSS 插件。

postcss ​

postcss: true

所需的 PostCSS 插件标记。