# noImportantInKeyframe

Rule `biome/noImportantInKeyframe`. Disallow `!important` in `@keyframes` declarations.

- Source: biome
- Technologies: CSS
- Kind: suspicious
- Needs type information: no
- Autofix: no
- Reach: 30.6M weekly downloads of presets that enable it
- Trend: +109.3% last quarter
- Rank: #521 by reach, #156 by growth

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| Biome | `suspicious/noImportantInKeyframe` | yes | no | group suspicious, since 1.8.0 | [docs](https://biomejs.dev/linter/rules/no-important-in-keyframe/) |

## Code examples

### Incorrect: the rule reports this

```css
@keyframes foo {
    from {
      opacity: 0;
    }
    to {
      opacity: 1 !important;
    }
}
```

### Correct: the rule accepts this

```css
@keyframes foo {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
}
```

Examples from the Biome documentation.

## Enable it

### Biome: `biome.json`

```json
{
  "linter": {
    "rules": {
      "suspicious": {
        "noImportantInKeyframe": "error"
      }
    }
  }
}
```

## Presets that enable it

| Preset | Linter | Package | Rules | Weekly downloads | Trend |
| --- | --- | --- | --- | --- | --- |
| [Biome recommended](https://lintradar.dev/presets/biome-recommended.md) | Biome | `@biomejs/biome` | 491 | 28.5M | +106.8% |
| [Ultracite for Biome](https://lintradar.dev/presets/ultracite-biome.md) | Biome | `ultracite` | 616 | 2.1M | +151.7% |

## Related rules

- [biome/noImplicitAnyLet](https://lintradar.dev/rules/biome/noImplicitAnyLet.md): Disallow use of implicit `any` type on variable declarations.
- [biome/noInvalidDirectionInLinearGradient](https://lintradar.dev/rules/biome/noInvalidDirectionInLinearGradient.md): Disallow non-standard directions in linear gradients.
- [biome/noGlobalIsNan](https://lintradar.dev/rules/biome/noGlobalIsNan.md): Use `Number.isNaN` instead of global `isNaN`.
- [biome/noInvalidGridAreas](https://lintradar.dev/rules/biome/noInvalidGridAreas.md): Disallow invalid named areas in CSS grid templates.
- [biome/noGlobalIsFinite](https://lintradar.dev/rules/biome/noGlobalIsFinite.md): Use `Number.isFinite` instead of global `isFinite`.
- [biome/noInvalidPositionAtImportRule](https://lintradar.dev/rules/biome/noInvalidPositionAtImportRule.md): Disallow `@import` after other rules.

---

Web page: https://lintradar.dev/rules/biome/noImportantInKeyframe. Data from npm and the linters' documentation, collected Dec 4, 2026. Site guide for agents: https://lintradar.dev/llms.txt
