UNPKG

@primer/primitives

Version:

Typography, spacing, and color primitives for Primer design system

39 lines (38 loc) 993 B
import { isSource } from '../filters/index.js'; export const docJson = (outputFile, prefix, buildPath, options) => ({ prefix, buildPath, preprocessors: ['themeOverrides'], transforms: [ 'name/pathToKebabCase', 'color/hex', 'dimension/rem', 'shadow/css', 'border/css', 'typography/css', 'fontFamily/css', 'fontWeight/number', ], options: { basePxFontSize: 16, propertyConversion: { $value: 'value', $type: 'type', $description: 'description', }, themeOverrides: { theme: options === null || options === void 0 ? void 0 : options.theme, }, }, files: [ { destination: outputFile, format: `json/one-dimensional`, filter: isSource, options: { outputReferences: false, outputVerbose: true, }, }, ], });