Skip to content

Search the guides, deployment pages, and API reference.

AnyToken

import type { AnyToken } from "@pitlane/theme";
type AnyToken = BrandByType[TokenType];

The union of all twelve token brands. Brands are compile-time tags naming each token's type; they let css reject a dimension where a color belongs. They exist only in the type system — every ref is a plain string at runtime, so brands cost nothing — and they are theme-independent, so tokens minted by two different createTheme calls mix freely in one css call.