# useGenericFontNames

Rule `biome/useGenericFontNames`. Require a generic fallback in font-family lists.

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

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| Biome | `a11y/useGenericFontNames` | yes | no | group a11y, since 1.8.0 | [docs](https://biomejs.dev/linter/rules/use-generic-font-names/) |

## Code examples

### Incorrect: the rule reports this

```css
a { font-family: Arial; }
```

```css
a { font: normal 14px/32px -apple-system, BlinkMacSystemFont; }
```

### Correct: the rule accepts this

```css
a { font-family: "Lucida Grande", "Arial", sans-serif; }
```

```css
a { font-family: inherit; }
```

```css
a { font-family: sans-serif; }
```

Examples from the Biome documentation.

## Enable it

### Biome: `biome.json`

```json
{
  "linter": {
    "rules": {
      "a11y": {
        "useGenericFontNames": "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/useDeprecatedReason](https://lintradar.dev/rules/biome/useDeprecatedReason.md): Require a reason when using the `@deprecated` directive.
- [biome/useGraphqlNamedOperations](https://lintradar.dev/rules/biome/useGraphqlNamedOperations.md): Require a name for every explicit GraphQL operation definition.
- [biome/useConvexExplicitTableIds](https://lintradar.dev/rules/biome/useConvexExplicitTableIds.md): Require the table name as the first argument of Convex database calls.
- [biome/useImageSize](https://lintradar.dev/rules/biome/useImageSize.md): Enforces that `<img>` elements have both width and height attributes.
- [biome/useConvexArgsValidator](https://lintradar.dev/rules/biome/useConvexArgsValidator.md): Require an `args` validator in Convex queries, mutations, and actions.
- [biome/useLoneAnonymousOperation](https://lintradar.dev/rules/biome/useLoneAnonymousOperation.md): Disallow an anonymous operation in a document with other operations.

---

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