UNPKG

@primer/primitives

Version:

Typography, spacing, and color primitives for Primer design system

82 lines (81 loc) 3.07 kB
{ "name": "@primer/primitives", "version": "10.5.0", "description": "Typography, spacing, and color primitives for Primer design system", "type": "module", "files": [ "dist", "src/tokens" ], "repository": "https://github.com/primer/primitives", "keywords": [ "primitives", "colors", "spacing", "typography", "variables", "design-system" ], "author": "GitHub, Inc.", "license": "MIT", "bugs": { "url": "https://github.com/primer/primitives/issues" }, "homepage": "https://github.com/primer/primitives#readme", "scripts": { "build": "npm run clean && npm run build:tokens && npm run build:fallbacks && npm run build:figma && npm run build:config", "build:tokens": "tsx ./scripts/buildTokens.ts", "build:fallbacks": "tsx ./scripts/buildFallbacks.ts", "build:figma": "tsx scripts/buildFigma.ts", "build:config": "tsc -p build.tsconfig.jsonc && tsx ./scripts/copyDir.ts src/types dist/build/types", "clean": "rm -rf dist", "validate:tokenJson": "tsx scripts/diffThemes.ts && tsx scripts/diffTokenProps.ts", "validate:contrast": "tsx scripts/colorContrast.ts", "format": "prettier --check '**/*.{js,jsx,ts,tsx,md,mdx,css}'", "format:fix": "prettier --write '**/*.{js,jsx,ts,tsx,md,mdx,css}'", "lint": "eslint '**/*.{js,ts,tsx,md,mdx}' --config eslint.config.mjs && npm run lint:tokens", "lint:fix": "eslint '**/*.{js,ts,tsx,md,mdx}' --fix --max-warnings=0 --config eslint.config.mjs", "lint:tokens": "tsx ./scripts/validateTokenJson.ts", "test": "npm run test:unit && npm run test:integration", "test:unit": "vitest run --coverage", "test:integration": "vitest run -r integration", "prebuild": "rm -rf dist", "prepack": "npm run build", "release": "changeset publish", "install:storybook": "cd docs/storybook && npm ci --legacy-peer-deps --no-audit --no-fund", "start:storybook": "npm run build && cd docs/storybook && npm run storybook" }, "prettier": "@github/prettier-config", "devDependencies": { "@actions/core": "^1.11.1", "@actions/glob": "^0.5.0", "@changesets/changelog-github": "^0.5.0", "@changesets/cli": "^2.27.7", "@github/prettier-config": "^0.0.6", "@playwright/test": "^1.47.1", "@types/node": "22.9", "@typescript-eslint/eslint-plugin": "8.15", "@typescript-eslint/parser": "8.15", "@vitest/coverage-v8": "^2.0.3", "color-blend": "^4.0.0", "color2k": "^2.0.3", "console-table-printer": "^2.12.1", "eslint": "9.16", "eslint-config-prettier": "^9.1.0", "eslint-plugin-react": "7.37", "eslint-import-resolver-typescript": "3.6", "eslint-plugin-github": "^5.1.3", "eslint-plugin-jsx-a11y": "6.10", "eslint-plugin-react-hooks": "^5.0.0", "json5": "^2.2.1", "markdown-table-ts": "^1.0.3", "prettier": "^3.3.3", "style-dictionary": "^4.3.0", "tsx": "^4.19.0", "typescript": "5.6", "typescript-eslint": "^8.16.0", "vitest": "^2.0.3", "zod": "3.23", "zod-validation-error": "3.4" } }