Skip to content

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

Variable: themeCustomMedia ​

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

Bêta

Créer le plugin de transformation (lowering) des custom-media du thème.

Prend en charge la rédaction avec soit des custom-idents de thème directs dans les media features (par exemple, (theme: canvas)), soit des alias @custom-media --theme-* intégrés.

Type Declaration ​

Paramètres ​

options? ​

ThemeCustomMediaOptions

ThemeCustomMediaOptions.

Retourne ​

Plugin

Un plugin PostCSS.

postcss ​

postcss: true

Marqueur requis pour le plugin PostCSS.