UNPKG

@primer/primitives

Version:

Typography, spacing, and color primitives for Primer design system

30 lines (29 loc) 740 B
import { isSource } from '../filters/index.js'; export const javascript = (outputFile, prefix, buildPath, options) => ({ prefix, buildPath, preprocessors: ['themeOverrides'], transforms: [ 'color/hex', 'dimension/rem', 'shadow/css', 'border/css', 'typography/css', 'fontFamily/css', 'fontWeight/number', ], options: { showFileHeader: false, basePxFontSize: 16, themeOverrides: { theme: options === null || options === void 0 ? void 0 : options.theme, }, }, files: [ { format: 'javascript/commonJs', destination: outputFile, filter: isSource, }, ], });