Skip to content

pantoken / renderers/pendo/src / addImportant

Variable: addImportant

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

Beta

Create the add-!important plugin.

Type Declaration

Returns

Plugin

postcss

postcss: true

Required PostCSS plugin marker.

Example

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

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