UNPKG

@atlaskit/eslint-plugin-design-system

Version:

The essential plugin for use with the Atlassian Design System.

8 lines 390 B
import shapeTokens from '@atlaskit/tokens/atlassian-shape'; export var radiusValueToToken = Object.fromEntries(shapeTokens.filter(function (t) { return t.name.startsWith('radius'); }).map(function (t) { return [t.value, t.cleanName]; }) // add in extra entries to resolve 3px, 50%, and 100% to tokens .concat([['3px', 'radius.small'], ['50%', 'radius.full'], ['100%', 'radius.full']]));