---
title: "gradient"
description: "A `gradient` token. Accepts CSS gradient function text."
url: "https://pitlane.tools/package/theme/schema/function/gradient"
---

# gradient

```ts
import { gradient } from "@pitlane/theme/schema";
```

```ts
function gradient(): TokenSchema<"gradient">;
```

A `gradient` token. Accepts CSS gradient function text.

## Returns

[`TokenSchema`](https://pitlane.tools/package/theme/schema/interface/TokenSchema.md)\<`"gradient"`>

A schema declaring the `gradient` token type
