src/content/docs/linter/rules/no-value-at-rule.mdx
import { Tabs, TabItem } from '@astrojs/starlight/components';
<Tabs> <TabItem label="CSS" icon="seti:css"> ## Summary - Rule available since: `v1.8.0` - Diagnostic Category: [`lint/style/noValueAtRule`](/reference/diagnostics#diagnostic-category) - This rule isn't recommended, so you need to enable it. - This rule doesn't have a fix. - The default severity of this rule is [**information**](/reference/diagnostics#information). ## How to configure ```json title="biome.json" { "linter": { "rules": { "style": { "noValueAtRule": "error" } } } }## Description
Disallow use of `@value` rule in CSS modules.
Use of CSS variables is recommended instead of `@value` rule.
## Examples
### Invalid
```css title='example.module.css'
@value red: #FF0000;
:root {
--red: #FF0000
}
p {
background-color: var(--red);
}