---
title: "SW14007: Malformed theme reference"
description: "A --theme() call in your stylesheet has invalid syntax."
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.

# SW14007: Malformed theme reference

This error occurs when a `--theme()` call in your stylesheet has invalid syntax,
such as no token name.

## Reported

```css
.card {
  color: --theme();
}
```

> SW14007: invalid --theme() reference at value byte 9667: invalid --theme() property `` at byte 0

## Fixed

```css
.card {
  color: --theme(--color-blue-500);
}
```

## How to fix

Write the full name of a theme token, with an optional fallback after a comma,
such as `--theme(--color-brand, blue)`.

A valid reference to a token that the theme does not define is reported by
[invalid-theme-reference](/docs/lints/invalid-theme-reference) instead.

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