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