style-dictionary
Version:
Style once, use everywhere. A build system for creating cross-platform styles.
7 lines (6 loc) • 307 B
TypeScript
import type { PreprocessedTokens } from './DesignToken.js';
import type { Config, PlatformConfig } from './Config.js';
export type Preprocessor = {
name: string;
preprocessor: (dictionary: PreprocessedTokens, options: Config | PlatformConfig) => PreprocessedTokens | Promise<PreprocessedTokens>;
};