Skip to content

pantoken / renderers/pendo/src / addImportant

Variable: addImportant

const addImportant: {(): Plugin; postcss: true; }

Beta

Crear el plugin add-!important.

Type Declaration

Devuelve

Plugin

postcss

postcss: true

Marcador requerido para el plugin de PostCSS.

Ejemplo

ts
import postcss from "postcss";
import { addImportant } from "@pantoken/pendo";

const { css } = postcss([addImportant()]).process(".x{color:red}", { from: undefined });
// ".x{color:red !important}"