---
title: "ignored-tailwind-feature"
description: "Reports Tailwind CSS features that Stillwind ignores in the stylesheet, such as @config and @source."
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.

# ignored-tailwind-feature

This rule reports a Tailwind CSS feature in your stylesheet that Stillwind
ignores, such as `@config`, `@source`, or an option on `@import`. The line has
no effect, because Stillwind reads its settings from `stillwind.config.ts` and
generates utilities only from `style()` calls.

## Reported

```css
@config "./tailwind.config.js";
```

> ignored-tailwind-feature: `@config` has no effect in Stillwind; set the project's `tailwind` field in stillwind.config.ts instead
> 
> Example:1:1

## Fixed

```ts title="stillwind.config.ts"
import { defineConfig } from "stillwind/config";

import tailwindConfig from "./tailwind.config.js";

export default defineConfig({
  projects: [
    {
      css: "./src/stillwind.css",
      files: ["src/**/*.{ts,tsx}"],
      tailwind: tailwindConfig,
    },
  ],
});
```

## How to fix

- Move the configuration to the `tailwind` field of the project in
  `stillwind.config.ts`, as in the example, and remove `@config`.
- Move an `important` option on `@import` to the `important` field.
- Remove `@source`, and move each utility that it listed into a `style()` call.
- Replace `@reference` with an `@import` in the stylesheet of the project.
- Replace a v3 path in `theme()`, such as `theme(colors.red.500)`, with a theme
  variable: `--theme(--color-red-500)`. Without this change, browsers reject the
  declaration.
- [Migrating from Tailwind CSS](/docs/guides/migrating-from-tailwind#move-configuration)
  lists every replacement.

## Rule settings

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

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

Source: https://stillwind.dev/docs/lints/ignored-tailwind-feature/index.mdx
