# noValueAtRule

Rule `biome/noValueAtRule`. Disallow the `@value` rule in CSS Modules.

- Source: biome
- Technologies: CSS
- Kind: style
- Needs type information: no
- Autofix: no
- Reach: 2.1M weekly downloads of presets that enable it
- Trend: +151.7% last quarter
- Rank: #1550 by reach, #54 by growth

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| Biome | `style/noValueAtRule` | no | no | group style, since 1.8.0 | [docs](https://biomejs.dev/linter/rules/no-value-at-rule/) |

## Code examples

### Incorrect: the rule reports this

```css
@value red: #FF0000;
```

### Correct: the rule accepts this

```css
:root {
  --red: #FF0000;
}

p {
  background-color: var(--red);
}
```

Examples from the Biome documentation.

## Enable it

### Biome: `biome.json`

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

## Presets that enable it

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

## Related rules

- [biome/noUselessCatchBinding](https://lintradar.dev/rules/biome/noUselessCatchBinding.md): Disallow unused error parameters in `catch` clauses.
- [biome/useBaseline](https://lintradar.dev/rules/biome/useBaseline.md): Disallow CSS properties, values, at-rules, functions, and selectors that are not part of the configured Baseline.
- [biome/noUnusedTemplateLiteral](https://lintradar.dev/rules/biome/noUnusedTemplateLiteral.md): Disallow template literals if interpolation and special-character handling are not needed
- [biome/useConsistentGraphqlDescriptions](https://lintradar.dev/rules/biome/useConsistentGraphqlDescriptions.md): Require one description style throughout a GraphQL schema.
- [biome/noTopLevelLiterals](https://lintradar.dev/rules/biome/noTopLevelLiterals.md): Require the JSON top-level value to be an array or object.
- [biome/useGraphqlNamingConvention](https://lintradar.dev/rules/biome/useGraphqlNamingConvention.md): Require uppercase names for GraphQL enum values.

---

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