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>>;

Source

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