---
title: "invalid-css-import"
description: "Reports a stylesheet import that cannot be resolved."
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-import

This rule reports an `@import` in your stylesheet that the integration cannot
resolve, such as a misspelled package name or a missing file. The import adds
nothing.

## Reported

```css
@import "stilwind";
```

> invalid-css-import: `stilwind` cannot be resolved or read; the stylesheet is loaded without this import
> 
> Example:1:1

## Fixed

```css
@import "stillwind";
```

## How to fix

- Check the spelling of the package name, and that the package is installed.
- Write a file path relative to the stylesheet that imports it, and check that
  the file exists.
- For a package stylesheet, check that the package exports that path.

## 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-import/index.mdx
