UNPKG

@atlaskit/tokens

Version:

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

13 lines (12 loc) 463 B
import themeConfig from '../theme-config'; /** * Finds any matching increased contrast theme available for a selected theme. */ export default function getIncreasedContrastTheme(themeId) { var _Object$entries$find; return (_Object$entries$find = Object.entries(themeConfig).find(([, { increasesContrastFor }]) => { return increasesContrastFor === themeId; })) === null || _Object$entries$find === void 0 ? void 0 : _Object$entries$find[1].id; }