# useConsistentFontWeightNotation

Rule `biome/useConsistentFontWeightNotation`. Enforce a consistent notation for font weights.

- Source: biome
- Technologies: CSS
- 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: #1954 by reach

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| Biome | `nursery/useConsistentFontWeightNotation` | no | safe | group nursery, since 2.6.7 | [docs](https://biomejs.dev/linter/rules/use-consistent-font-weight-notation/) |

## Code examples

### Incorrect: the rule reports this

```css
a { font-weight: bold; }
```

```css
a { font: italic normal 20px sans-serif; }
```

```css
a { font-weight: lighter; }
```

### Correct: the rule accepts this

```css
a { font-weight: 700; }
a { font: italic 400 20px sans-serif; }
a { font-weight: var(--weight); }
@font-face { font-weight: 400 700; }
```

Examples from the Biome documentation.

## Enable it

### Biome: `biome.json`

```json
{
  "linter": {
    "rules": {
      "nursery": {
        "useConsistentFontWeightNotation": "error"
      }
    }
  }
}
```

## Related rules

- [biome/useConsistentBooleanProps](https://lintradar.dev/rules/biome/useConsistentBooleanProps.md): Require a consistent style for JSX props with the value `true`
- [biome/useConsistentLightnessNotation](https://lintradar.dev/rules/biome/useConsistentLightnessNotation.md): Enforce a consistent notation for the lightness of colors.
- [biome/useAwaitThenable](https://lintradar.dev/rules/biome/useAwaitThenable.md): Enforce that `await` is _only_ used on `Promise` values.
- [biome/useDeprecatedDate](https://lintradar.dev/rules/biome/useDeprecatedDate.md): Require a valid deletion date on the `@deprecated` directive.
- [biome/useAstroClientOnlyDirectiveValue](https://lintradar.dev/rules/biome/useAstroClientOnlyDirectiveValue.md): Require a value for Astro's `client:only` directive.
- [biome/useDisposables](https://lintradar.dev/rules/biome/useDisposables.md): Detects a disposable object assigned to a variable without using or await using syntax.

---

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