---
title: "no-important"
description: "Reports utilities with the important modifier, such as p-4!."
image: "https://stillwind.dev/og.png"
---

> Documentation Index
> Fetch the complete documentation index at: https://stillwind.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# no-important

This rule reports each use of a utility with the `!` modifier once, even when it
emits several important declarations. It also reports `!important` declarations
in utility definitions. An important declaration wins over styles that would
normally override it, which makes later changes harder. No preset enables this rule.

## Reported

```tsx
const base = style("p-2");
style(base, "p-4!");
```

> no-important: the `!` utility modifier is forbidden
> 
> Example:2:14

## Fixed

```tsx
const base = style("p-2");
style(base, "p-4");
```

## How to fix

- To override a shared style, pass it as a base. The later utilities win without
  `!`, as in the example.
- To win over a stylesheet that you do not control, use the `important` field of
  the project instead. See [Configuration](/docs/configuration#generated-css).

## Rule settings

| Preset | Severity |
| --- | --- |
| `recommended` | off |
| `strict` | off |
| `stylistic` | off |

| Option | Default |
| --- | --- |
| `checkImplementation` | `true` |

[Configure lint](/docs/configuration#lint) to change the severity or options.

Source: https://stillwind.dev/docs/lints/no-important/index.mdx
