Skip to content

Search the guides, deployment pages, and API reference.

ScaleFn

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

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

See

TokenTree

Properties

token

readonly token: DimensionToken;