UNPKG

@atlaskit/eslint-plugin-design-system

Version:

The essential plugin for use with the Atlassian Design System.

10 lines 438 B
import typographyTokens from '@atlaskit/tokens/atlassian-typography'; export function isValidTypographyToken(tokenName) { return typographyTokens.filter(function (t) { return t.attributes.group === 'typography'; }).filter(function (t) { return t.cleanName.includes('font.heading') || t.cleanName.includes('font.body') || t.cleanName.includes('font.code'); }).find(function (t) { return t.cleanName === tokenName; }); }