Skip to content

Theemo / @theemo/tokens / TokenTransformRegistry

Interface: TokenTransformRegistry

Registry for token transformations.

Example

Adding your own transformations

ts
type DimensionTransform = /* ... */

declare module '@theemo/tokens' {
  interface TokenTransformRegistry {
    dimension: DimensionTransform;
  }
}

Properties

color

ts
color: Partial<Record<"hue" | "saturation" | "lightness" | "alpha", number>>;

Defined in

packages/@theemo/tokens/src/token-types.ts:300