UNPKG

@atlaskit/tokens

Version:

Design tokens are the single source of truth to name and store design decisions.

10 lines (9 loc) 401 B
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 {};