Skip to content

pantoken / renderers/pendo/src / addImportant

変数: addImportant

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

ベータ

add-!important プラグインを作成する。

Type Declaration

戻り値

Plugin

postcss

postcss: true

必須の PostCSS プラグインマーカー。

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

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