---
title: "invalid-css-directive"
description: "Reports a malformed or unsupported Stillwind directive in your stylesheet."
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.

# invalid-css-directive

This rule reports a Stillwind directive in your stylesheet that the compiler
cannot read, such as `@stillwind-slot` with an unknown slot name. The compiler
skips the directive.

## Reported

```css
@stillwind-slot utility;
```

> invalid-css-directive: `@stillwind-slot utility` names an unsupported slot
> 
> Example:1:1

## Fixed

```css
@stillwind-slot utilities;
```

## How to fix

- Check the name and the arguments of the directive. For example, the slot for
  generated utilities is `utilities`.
- If you do not need the directive, remove it. `@import "stillwind"` already
  places the slots that the default stylesheet needs.

## 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/invalid-css-directive/index.mdx
