---
title: "ScaleFn"
description: "The accessor leaf for a token declared with `s.scale()`: callable for steps, with the base itself as `.token`."
url: "https://pitlane.tools/package/theme/interface/ScaleFn"
---

# ScaleFn

```ts
import type { ScaleFn } from "@pitlane/theme";
```

The accessor leaf for a token declared with `s.scale()`: callable for steps, with the base itself as `.token`.

`.token` is what a projection re-roots and what `raw` resolves, so it is load-bearing rather than decorative.

## See

[TokenTree](https://pitlane.tools/package/theme/type/TokenTree.md)

```ts
ScaleFn(steps): DimensionToken;
```

The accessor leaf for a token declared with `s.scale()`: callable for steps, with the base itself as `.token`.

`.token` is what a projection re-roots and what `raw` resolves, so it is load-bearing rather than decorative.

## Parameters

### steps

`number`

## Returns

[`DimensionToken`](https://pitlane.tools/package/theme/type/DimensionToken.md)

## See

[TokenTree](https://pitlane.tools/package/theme/type/TokenTree.md)

## Properties

### token

```ts
readonly token: DimensionToken;
```
