# noInlineStyles

Rule `biome/noInlineStyles`. Disallow the use of inline styles.

- Source: biome
- Technologies: React, Tailwind CSS, Svelte
- Kind: style
- Needs type information: no
- Autofix: yes, in at least one linter
- Reach: 0 weekly downloads of presets that enable it
- Trend: 0% last quarter
- Rank: #1910 by reach

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| Biome | `style/noInlineStyles` | no | unsafe | group style, since 2.4.9 | [docs](https://biomejs.dev/linter/rules/no-inline-styles/) |

## Code examples

### Incorrect: the rule reports this

```jsx
<div style={{ color: "red" }}>Error</div>
```

```js
React.createElement("div", { style: { color: "red" } });
```

### Correct: the rule accepts this

```jsx
<div className="text-red">Error</div>
```

```js
React.createElement("div", { className: "container" });
```

Examples from the Biome documentation.

## Enable it

### Biome: `biome.json`

```json
{
  "linter": {
    "rules": {
      "style": {
        "noInlineStyles": "error"
      }
    }
  }
}
```

## Related rules

- [biome/noHexColors](https://lintradar.dev/rules/biome/noHexColors.md): Disallow hex colors.
- [biome/noJsxLeakedDollar](https://lintradar.dev/rules/biome/noJsxLeakedDollar.md): Flags text nodes with a trailing `$` before a JSX expression.
- [biome/noExcessiveSelectorComplexity](https://lintradar.dev/rules/biome/noExcessiveSelectorComplexity.md): Limit how complex selectors can be, and disallow chosen parts of selectors.
- [biome/noMisleadingReturnType](https://lintradar.dev/rules/biome/noMisleadingReturnType.md): Detect return type annotations that are misleadingly wider than what the implementation actually returns.
- [biome/noExcessiveSelectorClasses](https://lintradar.dev/rules/biome/noExcessiveSelectorClasses.md): Limit the number of classes in a selector.
- [biome/noMissingScssInterpolation](https://lintradar.dev/rules/biome/noMissingScssInterpolation.md): Disallow Sass variables and function calls in custom property values without `#{}` interpolation.

---

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