@atlaskit/eslint-plugin-design-system
Version:
The essential plugin for use with the Atlassian Design System.
4 lines • 360 B
JavaScript
import typographyTokens from '@atlaskit/tokens/atlassian-typography';
export function isValidTypographyToken(tokenName) {
return typographyTokens.filter(t => t.attributes.group === 'typography').filter(t => t.cleanName.includes('font.heading') || t.cleanName.includes('font.body') || t.cleanName.includes('font.code')).find(t => t.cleanName === tokenName);
}