UNPKG

@primer/react

Version:

An implementation of GitHub's Primer Design System using React

16 lines (11 loc) 440 B
'use strict'; require('lodash.isempty'); require('lodash.isobject'); // Temporarily disabling since this is originally a JavaScript that needed to be // migrated to TypeScript for exports to work as correctly in Vite. // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-nocheck function fontStack(fonts) { return fonts.map(font => font.includes(' ') ? `"${font}"` : font).join(', '); } exports.fontStack = fontStack;