---
title: "unverified-style-base"
description: "Reports a base style whose source the CLI cannot find from its type."
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.

# unverified-style-base

This rule reports a base style whose type does not show which `style()` call
created it, such as a value declared as `ReturnType<typeof style>`. The compiler
cannot find the CSS of the base, so it cannot order the later utilities after it.

## Project files

```ts title="globals.d.ts"
declare module "virtual:styles" {
  import { style } from "stillwind/react";

  export const base: ReturnType<typeof style>;
}
```

```ts title="styles.ts"
import { style } from "stillwind/react";

export const base = style("rounded-md");
```

## Reported

```tsx
import { base } from "virtual:styles";

export const props = style(base, "p-4");
```

> unverified-style-base: the style base cannot be identified, so its CSS may follow this call's CSS
> 
> Example:3:28

## Fixed

```tsx
import { base } from "./styles";

export const props = style(base, "p-4");
```

## How to fix

- Import the base from the source module that calls `style()`, as in the example.
- Keep the type that TypeScript infers when you export a style. A type annotation
  such as `ReturnType<typeof style>` hides the source.

## Rule settings

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

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

The CLI and the editor report this rule only when they analyze the whole project.

Source: https://stillwind.dev/docs/lints/unverified-style-base/index.mdx
