---
title: "dimension"
description: "A `dimension` token. Accepts any CSS length, including `clamp()`, `calc()`, `%`, and `em`."
url: "https://pitlane.tools/package/theme/schema/function/dimension"
---

# dimension

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

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

A `dimension` token. Accepts any CSS length, including `clamp()`, `calc()`, `%`, and `em`.

## Returns

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

A schema declaring the `dimension` token type
