{"_id":"@bobyzgirlllnpm/dolores-sint-tenetur","name":"@bobyzgirlllnpm/dolores-sint-tenetur","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@bobyzgirlllnpm/dolores-sint-tenetur","version":"1.0.0","description":"![npm](https://img.shields.io/npm/v/@bobyzgirlllnpm/dolores-sint-tenetur?style=flat-square) [![Build](https://img.shields.io/github/actions/workflow/status/darekkay/@bobyzgirlllnpm/dolores-sint-tenetur/ci.yml?branch=master&style=flat-square)](https://gith","main":"index.js","author":{"name":"bobyzgirlLl"},"license":"MIT","dependencies":{"@bobyzgirlllnpm/aspernatur-fugiat-quam":"^1.0.0","@bobyzgirlllnpm/autem-nemo-incidunt":"^1.0.0","@bobyzgirlllnpm/dolorem-officia-assumenda":"^1.0.0","@bobyzgirlllnpm/dolorem-vero-atque":"^1.0.0","@bobyzgirlllnpm/facere-ipsum-aspernatur":"^1.0.0","@bobyzgirlllnpm/id-nobis-pariatur":"^1.0.0","@bobyzgirlllnpm/illo-architecto-dolorum":"^1.0.0","@bobyzgirlllnpm/impedit-quia-ea":"^1.0.0","@bobyzgirlllnpm/itaque-similique-commodi":"^1.0.0","@bobyzgirlllnpm/iure-velit-sapiente":"^1.0.0","@bobyzgirlllnpm/libero-facere-id":"^1.0.0","@bobyzgirlllnpm/libero-itaque-consequuntur":"^1.0.0","@bobyzgirlllnpm/magnam-laboriosam-illum":"^1.0.0","@bobyzgirlllnpm/mollitia-doloribus-sapiente":"^1.0.0","@bobyzgirlllnpm/mollitia-fugit-officia":"^1.0.0","@bobyzgirlllnpm/nesciunt-voluptatibus-nesciunt":"^1.0.0","@bobyzgirlllnpm/nostrum-inventore-quasi":"^1.0.0","@bobyzgirlllnpm/nostrum-voluptate-provident":"^1.0.0","@bobyzgirlllnpm/pariatur-recusandae-id":"^1.0.0","@bobyzgirlllnpm/perspiciatis-sequi-eligendi":"^1.0.0","@bobyzgirlllnpm/recusandae-minus-veritatis":"^1.0.0","@bobyzgirlllnpm/repudiandae-quae-in":"^1.0.0","@bobyzgirlllnpm/saepe-autem-impedit":"^1.0.0","@bobyzgirlllnpm/suscipit-nisi-fuga":"^1.0.0","@bobyzgirlllnpm/ullam-voluptate-placeat":"^1.0.0","@drftgyhuji7npm/repellendus-eum-et-itaque":"^1.0.0"},"keywords":["256","file system","fastcopy","warning","ansi","Array.prototype.findLast","hash","mobile","extension","gradients css3","column","trim","postcss-plugin","eslintconfig","call","id","es","which","class-validator","apollo","terminal","json-schema-validator","higher-order","make","guid","bundler","mkdir","trimRight","ECMAScript 3","getopt","popmotion","ava","slice","flags","react","0","Set","jsonpath","task","assertion","mkdirs","fsevents","jsonschema","cors","Object.values","console","Uint8ClampedArray","remove","deepclone","progress","getter","search","classnames","obj","libphonenumber","assign","Int16Array","circular","structuredClone","debugger","utilities","curl","telephone","sharedarraybuffer","form","immer","classname","streams","serialize","hookform","css-in-js","internal slot","indicator","date","starter","setter","es-shims","input","RFC-6455","create","forEach","inference","flag","call-bound","fast-clone","sameValueZero","write","prop","monorepo","AsyncIterator","Object.is","positive","WeakMap","collection.es6","promise","side","argparse","Int32Array","values","private data","wordbreak","color","settings","codes","mocha","east-asian-width","byte","contains","config","regexp","phone","packages","xterm","call-bind","deterministic","JSON-Schema","idle","flatMap","symbols","browserslist","watcher","description","fast","request"],"repository":{"type":"git","url":"git+https://github.com/bobyzgirlllnpm/dolores-sint-tenetur.git"},"homepage":"https://github.com/bobyzgirlllnpm/dolores-sint-tenetur/#readme","bugs":{"url":"https://github.com/bobyzgirlllnpm/dolores-sint-tenetur/issues"},"packageManager":"yarn@4.1.1","_id":"@bobyzgirlllnpm/dolores-sint-tenetur@1.0.0","gitHead":"38a8bf47d84cca1a8238b403be953f7128d7dab8","_nodeVersion":"20.12.2","_npmVersion":"10.5.0","dist":{"integrity":"sha512-N6MpBfEZqE74qCpuDpVmAxQ6hVdBCgOkomnLXmcWXmSSbDkrPBfhkKzZfG9dLLvE7Jvym8DLokmUELJwOhD3vw==","shasum":"54da90721ec8d24502394ee4fe6b754854d6e76c","tarball":"https://registry.npmjs.org/@bobyzgirlllnpm/dolores-sint-tenetur/-/dolores-sint-tenetur-1.0.0.tgz","fileCount":10,"unpackedSize":10909,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBhqhmQcxUyeuYYhGRbjnBYD0u27xfU0qxLxNokE20S6AiB1HnrQH1oM7t86tIZEWUkGwrqsMD1Bzyg15zoKzMPXdQ=="}]},"_npmUser":{"name":"haiminh1192","email":"haiminh1192@gmail.com"},"directories":{},"maintainers":[{"name":"haiminh1192","email":"haiminh1192@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dolores-sint-tenetur_1.0.0_1714405575802_0.3623095605277795"},"_hasShrinkwrap":false}},"time":{"created":"2024-04-29T15:46:15.704Z","1.0.0":"2024-04-29T15:46:15.926Z","modified":"2024-04-29T15:46:16.216Z"},"maintainers":[{"name":"haiminh1192","email":"haiminh1192@gmail.com"}],"description":"![npm](https://img.shields.io/npm/v/@bobyzgirlllnpm/dolores-sint-tenetur?style=flat-square) [![Build](https://img.shields.io/github/actions/workflow/status/darekkay/@bobyzgirlllnpm/dolores-sint-tenetur/ci.yml?branch=master&style=flat-square)](https://gith","homepage":"https://github.com/bobyzgirlllnpm/dolores-sint-tenetur/#readme","keywords":["256","file system","fastcopy","warning","ansi","Array.prototype.findLast","hash","mobile","extension","gradients css3","column","trim","postcss-plugin","eslintconfig","call","id","es","which","class-validator","apollo","terminal","json-schema-validator","higher-order","make","guid","bundler","mkdir","trimRight","ECMAScript 3","getopt","popmotion","ava","slice","flags","react","0","Set","jsonpath","task","assertion","mkdirs","fsevents","jsonschema","cors","Object.values","console","Uint8ClampedArray","remove","deepclone","progress","getter","search","classnames","obj","libphonenumber","assign","Int16Array","circular","structuredClone","debugger","utilities","curl","telephone","sharedarraybuffer","form","immer","classname","streams","serialize","hookform","css-in-js","internal slot","indicator","date","starter","setter","es-shims","input","RFC-6455","create","forEach","inference","flag","call-bound","fast-clone","sameValueZero","write","prop","monorepo","AsyncIterator","Object.is","positive","WeakMap","collection.es6","promise","side","argparse","Int32Array","values","private data","wordbreak","color","settings","codes","mocha","east-asian-width","byte","contains","config","regexp","phone","packages","xterm","call-bind","deterministic","JSON-Schema","idle","flatMap","symbols","browserslist","watcher","description","fast","request"],"repository":{"type":"git","url":"git+https://github.com/bobyzgirlllnpm/dolores-sint-tenetur.git"},"author":{"name":"bobyzgirlLl"},"bugs":{"url":"https://github.com/bobyzgirlllnpm/dolores-sint-tenetur/issues"},"license":"MIT","readme":"# A11y Contrast\n\n![npm](https://img.shields.io/npm/v/@bobyzgirlllnpm/dolores-sint-tenetur?style=flat-square)\n[![Build](https://img.shields.io/github/actions/workflow/status/darekkay/@bobyzgirlllnpm/dolores-sint-tenetur/ci.yml?branch=master&style=flat-square)](https://github.com/bobyzgirlllnpm/dolores-sint-tenetur/actions/workflows/ci.yml)\n[![license](https://img.shields.io/badge/license-MIT-green?style=flat-square)](https://github.com/bobyzgirlllnpm/dolores-sint-tenetur/blob/master/LICENSE)\n\nA CLI utility to calculate/verify accessible [magic numbers](https://designsystem.digital.gov/design-tokens/color/overview/#magic-number) for a color palette. Read [my blog post](https://darekkay.com/blog/accessible-color-palette/) for some more information.\n\n![](screenshot.png)\n\n## Installation\n\nThis tool requires Node.js version 18+.\n\nInstall globally:\n\n```bash\n$ npm install -g @bobyzgirlllnpm/dolores-sint-tenetur  # Npm\n$ yarn add -g @bobyzgirlllnpm/dolores-sint-tenetur     # Yarn\n```\n\nOr install as a local dependency:\n\n```bash\n$ npm install --save @bobyzgirlllnpm/dolores-sint-tenetur  # Npm\n$ yarn add @bobyzgirlllnpm/dolores-sint-tenetur            # Yarn\n```\n\nOr use without installing:\n\n```bash\n$ npx @bobyzgirlllnpm/dolores-sint-tenetur <file>\n```\n\n## Usage\n\nView program help:\n\n```\n$ @bobyzgirlllnpm/dolores-sint-tenetur --help\nUsage: @bobyzgirlllnpm/dolores-sint-tenetur <file> [options]\n\nArguments:\n  <file>  Color palette file                              [required] [file]\n\nOptions:\n  --min-ratio-3    Verify magic number for ratio 3                 [number]\n  --min-ratio-4.5  Verify magic number for ratio 4.5               [number]\n  --min-ratio-7    Verify magic number for ratio 7                 [number]\n  -h, --help       Show help                     [commands: help] [boolean]\n  -v, --version    Show version number        [commands: version] [boolean]\n```\n\nRun a full report for a color palette file:\n\n```bash\n$ @bobyzgirlllnpm/dolores-sint-tenetur <file>\n```\n\nVerify that the color palette fulfills certain magic numbers per contrast ratio:\n\n```bash\n$ @bobyzgirlllnpm/dolores-sint-tenetur <file> --min-ratio-3=40 --min-ratio-4.5=50 --min-ratio-7=70\n```\n\n## Color palette format\n\nThis tool handles flat or nested JSON files. Any consistent grading system is supported.\n\n- Flat JSON:\n\n```json\n{\n  \"blue-10\": \"#d9e8f6\",\n  \"blue-20\": \"#aacdec\",\n  \"blue-30\": \"#73b3e7\",\n  \"green-10\": \"#dfeacd\",\n  \"green-20\": \"#b8d293\",\n  \"green-30\": \"#9bb672\"\n}\n```\n\n- Nested JSON:\n\n```json\n{\n  \"blue\": {\n    \"blue-100\": \"#d9e8f6\",\n    \"blue-200\": \"#aacdec\",\n    \"blue-300\": \"#73b3e7\"\n  },\n  \"green\": {\n    \"green-100\": \"#dfeacd\",\n    \"green-200\": \"#b8d293\",\n    \"green-300\": \"#9bb672\"\n  }\n}\n```\n\nCheck out some example color palettes under `/examples`.\n\n## License\n\nThis project and its contents are open source under the [MIT license](LICENSE).\n","readmeFilename":"README.md"}