---
title: "SW14008: Circular utility application"
description: "A utility applies itself directly or through another utility."
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.

# SW14008: Circular utility application

This error occurs when an `@apply` dependency returns to a utility that is already
being expanded. The cycle can pass through several utilities.

## Reported

```css
@utility card {
  @apply card;
}

.card {
  @apply card;
}
```

> SW14008: circular @apply dependency for utility `card`

## Fixed

```css
@utility card {
  display: block;
  padding: 1rem;
}

.card {
  @apply card;
}
```

## How to fix

Remove the `@apply` that closes the dependency cycle. A shared utility can contain
the common declarations, provided that it does not apply the utilities that use it.

Source: https://stillwind.dev/docs/errors/SW14008/index.mdx
