@atlaskit/tokens
Version:
Design tokens are the single source of truth to name and store design decisions.
12 lines (11 loc) • 405 B
TypeScript
import type tokens from '../artifacts/token-names';
import { type CSSColor, type ThemeColorModes } from '../theme-config';
type Token = keyof typeof tokens;
type TokenMap = {
[key in Token]?: number | string;
};
type Mode = 'light' | 'dark';
export declare const generateTokenMap: (brandColor: CSSColor, mode: ThemeColorModes, themeRamp?: CSSColor[]) => {
[mode in Mode]?: TokenMap;
};
export {};