---
title: "unknown-variant"
description: "Reports a variant that your stylesheet does not define."
image: "https://stillwind.dev/og.png"
---

> Documentation Index
> Fetch the complete documentation index at: https://stillwind.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# unknown-variant

This rule reports a variant that your stylesheet does not define, such as a
misspelled `hovr:`. The condition never matches, so the utilities under it never
apply.

## Reported

```tsx
style("hovr:p-4");
```

> unknown-variant: unknown variant `hovr`; did you mean `hover:p-4`?
> 
> Example:1:8

## Fixed

```tsx
style("hover:p-4");
```

## How to fix

- Correct the spelling of the variant.
- To use a variant of your own, define it with `@custom-variant` in your
  stylesheet.

## Rule settings

| Preset | Severity |
| --- | --- |
| `recommended` | deny |
| `strict` | deny |
| `stylistic` | off |

[Configure lint](/docs/configuration#lint) to change the severity or options.

Source: https://stillwind.dev/docs/lints/unknown-variant/index.mdx
