UNPKG

make-tints

Version:

[![NPM version](https://img.shields.io/npm/v/make-tints?color=a1b858&label=)](https://www.npmjs.com/package/make-tints)

44 lines 2.06 kB
{ "name": "make-tints", "version": "1.0.0-beta.1", "packageManager": "pnpm@6.32.3", "description": "[![NPM version](https://img.shields.io/npm/v/make-tints?color=a1b858&label=)](https://www.npmjs.com/package/make-tints)", "keywords": [ "color", "tones", "tints", "make-tints" ], "homepage": "https://github.com/barelyhuman/make-tints#readme", "bugs": { "url": "https://github.com/barelyhuman/make-tints/issues" }, "license": "MIT", "author": "Reaper <ahoy@barelyhuman.dev>", "repository": "git+https://github.com/barelyhuman/make-tints.git", "funding": "https://github.com/sponsors/barelyhuman", "main": "./index.cjs", "module": "./index.mjs", "types": "./index.d.ts", "exports": { ".": { "require": "./index.cjs", "import": "./index.mjs", "types": "./index.d.ts" } }, "sideEffects": false, "typesVersions": { "*": { "*": [ "./*", "./index.d.ts" ] } }, "dependencies": { "@barelyhuman/tocolor": "^0.0.8" }, "private": false, "readme": "<p align=\"center\">\n <img src=\"images/make-tints.png\" height=\"64\">\n<p align=\"center\">The simplest color tone function for JS</p>\n\n[![NPM version](https://img.shields.io/npm/v/make-tints?color=a1b858&label=)](https://www.npmjs.com/package/make-tints)\n[![CI](https://github.com/barelyhuman/make-tints/actions/workflows/ci.yml/badge.svg)](https://github.com/barelyhuman/make-tints/actions/workflows/ci.yml)\n[![install size](https://packagephobia.com/badge?p=make-tints)](https://packagephobia.com/result?p=make-tints)\n\n## Install\n\n```\nnpm i make-tints\n```\n\n[See it in action &rarr;](https://barelyhuman.github.io/make-tints)\n\n## Usage\n\n```js\nimport {tint} from 'make-tints'\n\nconst tintBy = tint('#000')\ntintBy(-20) //=> 000000 darker tints can be achieved by using negative percentages\ntintBy(20) //=> 333333\ntintBy(40) //=> 666666\ntintBy(60) //=> 999999\n```\n\n## License\n\n[MIT](./LICENSE) License © 2022 [Reaper](https://github.com/barelyhuman)\n" }