pantoken / renderers/pendo/src / addImportant
Variable: addImportant
constaddImportant: {():Plugin;postcss:true; }
Beta
Create the add-!important plugin.
Type Declaration
Returns
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}"