@atlaskit/tokens
Version:
Design tokens are the single source of truth to name and store design decisions.
27 lines (26 loc) • 1.01 kB
TypeScript
/**
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
*
* This file is intended to help automate renaming of tokens.
*
* 1. Mark the old token's 'state' as deprecated
* 2. Add a 'replacement' attribute to the token with the value 'my.new.token'
* 3. Create a new token matching the token above: 'my.new.token'
* 4. Run 'yarn build tokens' to have you changes reflected in this map
* 5. ESLint and other tools will now use this to automate replacing tokens
*
* These changes will then be picked up by our tooling which will attempt to
* migrate as many of these renames as possible.
*
* @codegen <<SignedSource::047b57f2d22a7675431a9f6acb147bf6>>
* @codegenCommand yarn build tokens
*/
import type tokens from './token-names';
type Token = keyof typeof tokens | string;
type RenameMap = {
path: string;
state: 'experimental' | 'deprecated' | 'deleted';
replacement?: Token;
};
declare const replacementMapper: RenameMap[];
export default replacementMapper;