{ "manifest": { "name": "@patternfly/react-tokens", "version": "5.2.1", "description": "This library provides access to the design tokens of PatternFly 4 from JavaScript", "main": "dist/js/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "sideEffects": false, "publishConfig": { "access": "public" }, "repository": { "type": "git", "url": "https://github.com/patternfly/patternfly-react.git" }, "keywords": [ "react", "patternfly" ], "author": { "name": "Red Hat" }, "license": "MIT", "bugs": { "url": "https://github.com/patternfly/patternfly-react/issues" }, "homepage": "https://github.com/patternfly/patternfly-react#readme", "scripts": { "generate": "yarn clean && node scripts/writeTokens.js", "clean": "rimraf dist" }, "devDependencies": { "@patternfly/patternfly": "5.2.1", "css": "^2.2.3", "fs-extra": "^11.1.1", "glob": "^7.1.2", "rimraf": "^2.6.2" }, "gitHead": "3406ab6010734dceb9b8223eef9b826cae8c5e6c", "_registry": "npm", "_loc": "/home/josie/.cache/yarn/v6/npm-@patternfly-react-tokens-5.2.1-fca7decaa7039dcd93fd215f3f533eff9d070b22-integrity/node_modules/@patternfly/react-tokens/package.json", "readmeFilename": "README.md", "readme": "# @patternfly/react-tokens\n\n## Installation \n\n```bash\nyarn add @patternfly/react-tokens\n```\n\nor\n\n```bash\nnpm install --save @patternfly/react-tokens\n```\n\n## Usage\n\nAll Tokens and their corresponding values can be viewed on the\n[PatternFly React Tokens][token-page] page.\n\n#### Import tokens\n\n## Examples\n\n```js\nimport global_BackgroundColor_100 from '@patternfly/react-tokens/dist/esm/global_-background-color_100';\n```\n\n#### Each token as three properties\n\n- `name`: The CSS custom property name.\n- `value`: The default value for the custom property.\n- `var`: The property name wrapped in `var()`.\n\n```js\nimport global_BackgroundColor_100 from '@patternfly/react-tokens/dist/esm/global_-background-color_100';\n\nglobal_BackgroundColor_100.name === '--pf-v5-global--BackgroundColor--100'; // true\nglobal_BackgroundColor_100.value === '#fff'; // true\nglobal_BackgroundColor_100.var === 'var(--pf-v5-global--BackgroundColor--100)'; // true\n```\n\n[token-page]: https://react-staging.patternfly.org/developer-resources/global-css-variables\n", "licenseText": "MIT License\n\nCopyright (c) 2019 Red Hat, Inc.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n" }, "artifacts": [], "remote": { "resolved": "https://registry.yarnpkg.com/@patternfly/react-tokens/-/react-tokens-5.2.1.tgz#fca7decaa7039dcd93fd215f3f533eff9d070b22", "type": "tarball", "reference": "https://registry.yarnpkg.com/@patternfly/react-tokens/-/react-tokens-5.2.1.tgz", "hash": "fca7decaa7039dcd93fd215f3f533eff9d070b22", "integrity": "sha512-8GYz/jnJTGAWUJt5eRAW5dtyiHPKETeFJBPGHaUQnvi/t1ZAkoy8i4Kd/RlHsDC7ktiu813SKCmlzwBwldAHKg==", "registry": "npm", "packageName": "@patternfly/react-tokens", "cacheIntegrity": "sha512-8GYz/jnJTGAWUJt5eRAW5dtyiHPKETeFJBPGHaUQnvi/t1ZAkoy8i4Kd/RlHsDC7ktiu813SKCmlzwBwldAHKg== sha1-/KfeyqcDnc2T/SFfP1M+/50HCyI=" }, "registry": "npm", "hash": "fca7decaa7039dcd93fd215f3f533eff9d070b22" }