{"_id":"@kreattix/colors","_rev":"38-c44cce85d9b97942a9b6dfca192d5285","name":"@kreattix/colors","dist-tags":{"latest":"0.0.3"},"versions":{"0.0.1":{"name":"@kreattix/colors","version":"0.0.1","author":{"name":"Prince Patel"},"license":"MIT","_id":"@kreattix/colors@0.0.1","maintainers":[{"name":"patel-prince","email":"prpatel0949@gmail.com"}],"homepage":"https://github.com/kreattix/colors?tab=readme-ov-file#readme","bugs":{"url":"https://github.com/kreattix/colors/issues"},"dist":{"shasum":"bcf13148c9f65f9f1edc0fedd5eb4e39dd769b59","tarball":"https://registry.npmjs.org/@kreattix/colors/-/colors-0.0.1.tgz","fileCount":19,"integrity":"sha512-XIAgsi6ZQssGJ9+1fpmpu0mbqpX8d57c0GZVxxDABDGKXvSa76azqdnJrecywZVZURBdocDV01KHhpIGJ+ZixQ==","signatures":[{"sig":"MEYCIQCnMa7IOdRTJGgJm6LIWJY7n049UWX9RoVb4yteyVV3/wIhAPS3KHsdfN2ho0ukzgt4Z5E3GFSltW2SGcPB8qospiAV","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":23924647},"main":"./dist/kreattix-colors.cjs.js","type":"module","types":"./dist/index.d.ts","module":"./dist/kreattix-colors.js","gitHead":"2d785c436af9640e1c3a03150432b44acc51c678","scripts":{"lint":"eslint ./lib/**/*.ts --config .eslintrc","test":"jest","build":"tsc && vite build","start":"vite","format":"prettier --write ./lib/**/* --config .prettierrc","lint:fix":"eslint --fix ./lib/**/*.ts --config .eslintrc","test:watch":"jest --watch"},"_npmUser":{"name":"patel-prince","email":"prpatel0949@gmail.com"},"repository":{"url":"git+https://github.com/kreattix/colors.git","type":"git"},"_npmVersion":"10.8.2","description":"A collection of colors for use in Kreattix projects.","directories":{},"_nodeVersion":"20.15.1","dependencies":{"sass":"^1.77.8"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","vite":"^5.3.5","eslint":"8.56.0","ts-jest":"^29.2.3","ts-node":"^10.9.2","prettier":"^3.3.3","typescript":"^5.5.4","@types/jest":"^29.5.12","@types/node":"^22.0.2","vite-plugin-dts":"^4.0.0-beta.2","vite-tsconfig-paths":"^4.3.2","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.2.1","jest-environment-jsdom":"^29.7.0","@typescript-eslint/parser":"^7.18.0","@typescript-eslint/eslint-plugin":"^7.18.0","@trivago/prettier-plugin-sort-imports":"^4.3.0"},"_npmOperationalInternal":{"tmp":"tmp/colors_0.0.1_1730903412727_0.8428576139787884","host":"s3://npm-registry-packages"}},"0.0.2":{"name":"@kreattix/colors","version":"0.0.2","author":{"name":"Prince Patel"},"license":"MIT","_id":"@kreattix/colors@0.0.2","maintainers":[{"name":"patel-prince","email":"prpatel0949@gmail.com"}],"homepage":"https://github.com/kreattix/colors?tab=readme-ov-file#readme","bugs":{"url":"https://github.com/kreattix/colors/issues"},"dist":{"shasum":"c5a37b2caa7bcd5b95a289457328a448be0fc948","tarball":"https://registry.npmjs.org/@kreattix/colors/-/colors-0.0.2.tgz","fileCount":19,"integrity":"sha512-2kjX4KoDWNt9CK8Jj2ORWwdyWC2aAxgWPC5kRLtyk4IabXdJJrPtColQU+7/9G1YCcl3Y8H7DkvM8pnxa/W7QA==","signatures":[{"sig":"MEUCIFBwCBGKdlRdxxtmEDl6O78f9Qr61mnRxMn3aVqpk24xAiEAnI0H26jnbWoJhPjkQgbLk+uFVuOd0aU39fG1KDJABfQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":23924647},"main":"./dist/kreattix-colors.cjs.js","type":"module","types":"./dist/index.d.ts","module":"./dist/kreattix-colors.js","gitHead":"2d785c436af9640e1c3a03150432b44acc51c678","scripts":{"lint":"eslint ./lib/**/*.ts --config .eslintrc","test":"jest","build":"tsc && vite build","start":"vite","format":"prettier --write ./lib/**/* --config .prettierrc","lint:fix":"eslint --fix ./lib/**/*.ts --config .eslintrc","test:watch":"jest --watch"},"_npmUser":{"name":"patel-prince","email":"prpatel0949@gmail.com"},"repository":{"url":"git+https://github.com/kreattix/colors.git","type":"git"},"_npmVersion":"10.8.2","description":"A collection of colors for use in Kreattix projects.","directories":{},"_nodeVersion":"20.15.1","dependencies":{"sass":"^1.77.8"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","vite":"^5.3.5","eslint":"8.56.0","ts-jest":"^29.2.3","ts-node":"^10.9.2","prettier":"^3.3.3","typescript":"^5.5.4","@types/jest":"^29.5.12","@types/node":"^22.0.2","vite-plugin-dts":"^4.0.0-beta.2","vite-tsconfig-paths":"^4.3.2","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.2.1","jest-environment-jsdom":"^29.7.0","@typescript-eslint/parser":"^7.18.0","@typescript-eslint/eslint-plugin":"^7.18.0","@trivago/prettier-plugin-sort-imports":"^4.3.0"},"_npmOperationalInternal":{"tmp":"tmp/colors_0.0.2_1731530252458_0.5597901906520137","host":"s3://npm-registry-packages"}},"0.0.3":{"name":"@kreattix/colors","version":"0.0.3","type":"module","types":"./dist/index.d.ts","main":"./dist/kreattix-colors.cjs.js","module":"./dist/kreattix-colors.js","scripts":{"start":"vite","build":"tsc && vite build","test":"jest","test:watch":"jest --watch","format":"prettier --write ./lib/**/* --config .prettierrc","lint":"eslint ./lib/**/*.ts --config .eslintrc","lint:fix":"eslint --fix ./lib/**/*.ts --config .eslintrc","upload":"npm i &&npm run build && npm publish --access public"},"dependencies":{"sass":"^1.77.8"},"devDependencies":{"@trivago/prettier-plugin-sort-imports":"^4.3.0","@types/jest":"^29.5.12","@types/node":"^22.0.2","@typescript-eslint/eslint-plugin":"^7.18.0","@typescript-eslint/parser":"^7.18.0","eslint":"8.56.0","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.2.1","jest":"^29.7.0","jest-environment-jsdom":"^29.7.0","prettier":"^3.3.3","ts-jest":"^29.2.3","ts-node":"^10.9.2","typescript":"^5.5.4","vite":"^5.3.5","vite-plugin-dts":"^4.0.0-beta.2","vite-tsconfig-paths":"^4.3.2"},"author":{"name":"Prince Patel"},"description":"A collection of colors for use in Kreattix projects.","homepage":"https://github.com/kreattix/colors?tab=readme-ov-file#readme","repository":{"type":"git","url":"git+https://github.com/kreattix/colors.git"},"license":"MIT","_id":"@kreattix/colors@0.0.3","gitHead":"2d785c436af9640e1c3a03150432b44acc51c678","bugs":{"url":"https://github.com/kreattix/colors/issues"},"_nodeVersion":"20.15.1","_npmVersion":"10.8.2","dist":{"integrity":"sha512-66LSah2CReg3BJ5iU71W8O+mF15cx6qukpoo2VBpelGQEBEX1afgKtsSyeoOA0ZDik/STX9R9FukabBn3l/4sQ==","shasum":"1ae35abb4c4443cdd4d37bd29471aa0ffd886459","tarball":"https://registry.npmjs.org/@kreattix/colors/-/colors-0.0.3.tgz","fileCount":19,"unpackedSize":23925395,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE+v+qkI5XYjibLnKfiff5LccpE/B2wUINbuTYdwLOYWAiEA78pPaBrCLKrZ3qZkp/coDvsf77FBxN4x/Ee/hkfrLRk="}]},"_npmUser":{"name":"patel-prince","email":"prpatel0949@gmail.com"},"directories":{},"maintainers":[{"name":"patel-prince","email":"prpatel0949@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/colors_0.0.3_1731530379502_0.12883760869266792"},"_hasShrinkwrap":false}},"time":{"created":"2024-11-06T14:30:12.600Z","modified":"2024-11-13T20:39:39.973Z","1.0.0":"2023-03-24T15:16:06.656Z","1.0.1":"2023-03-24T15:19:29.465Z","1.0.2":"2023-03-24T19:23:45.720Z","1.0.3":"2023-03-24T19:39:58.713Z","1.0.4":"2023-03-25T06:50:38.646Z","1.0.5":"2023-03-25T09:16:35.215Z","1.0.6":"2023-03-25T10:15:35.300Z","1.0.7":"2023-05-29T14:29:57.365Z","1.0.8":"2023-06-22T13:17:46.186Z","1.0.9":"2023-06-22T18:17:19.430Z","1.0.10":"2023-06-22T18:47:16.853Z","1.1.0":"2023-06-22T18:56:14.159Z","1.1.1":"2024-01-25T19:31:05.505Z","1.1.2":"2024-01-25T20:07:18.523Z","1.1.3":"2024-02-25T16:07:03.186Z","1.1.4":"2024-02-25T16:11:20.135Z","1.1.5":"2024-03-03T05:53:18.860Z","1.1.6":"2024-03-14T12:48:05.685Z","1.1.7":"2024-07-28T14:26:48.213Z","1.1.8":"2024-07-29T06:57:10.197Z","1.1.9":"2024-07-29T07:12:43.531Z","1.1.10":"2024-07-29T07:23:47.950Z","1.1.12":"2024-08-01T07:21:56.009Z","2.0.0":"2024-08-01T07:38:31.606Z","2.0.1":"2024-08-01T07:44:15.531Z","2.0.2":"2024-08-02T19:18:38.546Z","2.0.3":"2024-08-02T19:30:54.429Z","2.1.0":"2024-08-02T19:41:41.285Z","2.1.1":"2024-08-07T19:04:52.129Z","2.1.2":"2024-08-07T20:25:25.100Z","3.0.0":"2024-10-14T12:45:01.541Z","0.0.1":"2024-11-06T14:30:13.042Z","0.0.2":"2024-11-13T20:37:32.852Z","0.0.3":"2024-11-13T20:39:39.782Z"},"bugs":{"url":"https://github.com/kreattix/colors/issues"},"author":{"name":"Prince Patel"},"license":"MIT","homepage":"https://github.com/kreattix/colors?tab=readme-ov-file#readme","repository":{"type":"git","url":"git+https://github.com/kreattix/colors.git"},"description":"A collection of colors for use in Kreattix projects.","maintainers":[{"name":"patel-prince","email":"prpatel0949@gmail.com"}],"readme":"## Kreattix Colors\n\nBasic color library that provides all basic colors with 10 shades each.\nIt also provide a color class that accept any color and allow you to change its lightness and darkeness then get the updated color in any format you want.\n\n![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg) ![npm version](https://img.shields.io/npm/v/@kreattix/colors)\n\n## Installation\n\n### using npm\n\n```sh\n$ npm install @kreattix/colors\n```\n\n### using yarn\n\n```sh\n$ yarn add @kreattix/colors\n```\n\n### using color shades\n\n```js\nimport { Colors } from '@kreattix/colors'\n\n...\n...\n\nconst color = {\n    main: Colors.red[500],\n    hover: Colors.red[400],\n    active: Colors.red[600],\n}\n\n...\n...\n```\n\n### using color class to create your own shade\n\n```js\nimport { Color, Colors } from '@kreattix/colors'\n\n...\n...\n\nconst color = Color(Colors.blue[500]) // using color from library\n// or\nconst color = Color('#465657') // using hex value\n// or\nconst color = Color('#465657dd') // using hexa value\n// or\nconst color = Color('rgb(10,30,50)') // using rgb value\n// or\nconst color = Color('rgba(10,30,50,0.8)') // using rgba value\n// or\nconst color = Color('hsl(120,30%,50%)') // using hsl value\n// or\nconst color = Color('hsla(120,30%,50%,0.7)') // using hsla value\n\n...\n...\n\n// manipulate color as per your needs\n\n// to lighten the color\nconst lightColor = color.lighten(10) // it accepts a number as amount of ratio to lighten the color\n\n// to darken the color\nconst darkColor = color.darken(20) // it accepts a number as amount of ratio to darken the color\n\n// to negate the color\nconst negatedColor = color.negate()\n\n// to get the luminance of color\nconst luminance = color.luminance\n\n// to get the contrast color\nconst contrastColor = color.contrast\n\n// to ser the threshold for contrast color\ncolor.setThreshold(100) // default is 128\n\n// to get the threshold of contrast color\nconst threshold = color.threshold\n\n...\n...\n\n// then you can get the updated color in any format\nconst lightColorHEX = lightColor.hex\nconst lightColorRGB = lightColor.rgb\nconst darkColorHEXA = darkColor.hexa\nconst darkColorRGBA = darkColor.rgba\nconst lightColorHSL = lightColor.hsl\nconst lightColorHSLA = lightColor.hsla\n\n...\n...\n```\n\n### Available colors\n\n| Colors\n| ------------\n| red\n| pink\n| purple\n| violet\n| indigo\n| blue\n| lightBlue\n| cyan\n| teal\n| green\n| lightGreen\n| lime\n| yellow\n| amber\n| orange\n| deepOrange\n| brown\n| gray\n| blueGray\n| white\n| black\n\n## License\n\nMIT\n","readmeFilename":"README.md"}