{"_id":"@antv/color-schema","_rev":"3331989","name":"@antv/color-schema","description":"JSON Schema for Color Palette","dist-tags":{"latest":"0.2.3"},"maintainers":[{"name":"afc163","email":""},{"name":"army8735","email":"army8735@qq.com"},{"name":"atool","email":""},{"name":"baizn","email":""},{"name":"banxuan","email":""},{"name":"basketduck","email":""},{"name":"bbsqq","email":""},{"name":"biupiubiupiu","email":""},{"name":"boyu.zlj","email":"boyu.zlj@antfin.com"},{"name":"bubkoo","email":""},{"name":"ccnuzindex","email":""},{"name":"chenluli","email":""},{"name":"cxxxxxn","email":""},{"name":"dengfuping","email":"dengfuping_develop@163.com"},{"name":"dori","email":"418466938@qq.com"},{"name":"dreammy23","email":""},{"name":"dxq613","email":"dxq613@gmail.com"},{"name":"elaine.q.10","email":"yilin.qyl@antfin.com"},{"name":"esora","email":"tygyh2012@gmail.com"},{"name":"flash1","email":""},{"name":"freestyle21","email":"675861708@qq.com"},{"name":"iaaron","email":"943720372@qq.com"},{"name":"intchous","email":""},{"name":"jeffy2012","email":"yuanjiefeng@gmail.com"},{"name":"jinke.li","email":"1359518268@qq.com"},{"name":"kasmine","email":""},{"name":"kn9117","email":"1175863618@qq.com"},{"name":"kopiluwaky","email":"wyy460342010@gmail.com"},{"name":"l1ud0ngq1","email":""},{"name":"laixingui.lxg","email":""},{"name":"leungwensen","email":"leungwensen@gmail.com"},{"name":"lvisei","email":""},{"name":"lzxue","email":""},{"name":"mxz96102","email":""},{"name":"nadia_liu","email":""},{"name":"neoddish","email":"neo.wang@vip.163.com"},{"name":"newbyvector","email":"vectorse@126.com"},{"name":"openwayne","email":"openwayne@gmail.com"},{"name":"panyuqi","email":""},{"name":"pddpd","email":""},{"name":"pearmini","email":"subairui@icloud.com"},{"name":"pomelo-nwu","email":""},{"name":"rainy25ghz","email":""},{"name":"sakuya223","email":""},{"name":"semious2020","email":"semious@163.com"},{"name":"serializedowen","email":"wjh199455@gmail.com"},{"name":"simaq","email":"sima.zhang1990@gmail.com"},{"name":"soundquiet","email":""},{"name":"sturuby","email":"xingya.shi@gmail.com"},{"name":"susan_ann","email":""},{"name":"susiwen8","email":""},{"name":"winniexing","email":""},{"name":"wjgogogo","email":""},{"name":"xdddst","email":""},{"name":"xdzhao","email":""},{"name":"xuying1027","email":""},{"name":"yangzhanmei","email":"15809244435@163.com"},{"name":"yanxiong","email":""},{"name":"yard","email":"zjwengyidong@outlook.com"},{"name":"yiqianyao","email":""},{"name":"yisi.wang","email":""},{"name":"zengyue","email":""},{"name":"zeyuwang","email":""},{"name":"zhanba","email":"c5e1856@gmail.com"},{"name":"zhangjunjie-loki","email":""},{"name":"zqlu","email":""}],"time":{"modified":"2024-07-10T07:25:41.000Z","created":"2021-07-14T05:33:06.392Z","0.2.3":"2021-11-16T15:57:51.673Z","0.2.2":"2021-07-14T13:04:22.154Z","0.2.1":"2021-07-14T05:33:06.392Z"},"users":{},"author":{"name":"AntV","url":"https://antv.vision/"},"repository":{"type":"git","url":"git+https://github.com/antvis/color-schema.git"},"versions":{"0.2.3":{"name":"@antv/color-schema","version":"0.2.3","description":"JSON Schema for Color Palette","main":"lib/src/index.js","types":"lib/src/index.d.ts","unpkg":"dist/index.min.js","module":"esm/src/index.js","scripts":{"clean":"rimraf lib esm dist","lint-staged":"lint-staged","size":"limit-size","format":"prettier --write \"src/**/*.ts\" \"__tests__/**/*.ts\" \"demo/**/*.{ts,tsx}\"","format-check":" prettier ./src/**/*.ts ./__tests__/**/*.ts ./demo/**/*.{ts,tsx} --check","lint":"eslint ./src/**/*.ts ./__tests__/**/*.ts ./demo/**/*.{ts,tsx} && npm run format-check","fix":"eslint ./src/**/*.ts ./__tests__/**/*.ts ./demo/**/*.{ts,tsx} --fix && npm run format","test":"jest","build:umd":"rimraf ./dist && rollup -c && npm run size","build:cjs":"rimraf ./lib && tsc --module commonjs --outDir lib","build:esm":"rimraf ./esm && tsc --module ESNext --outDir esm","build":"run-p build:*","schema":"mkdir -p build && ts-json-schema-generator -f tsconfig.json -p src/index.ts -t ColorSchema --no-type-check --no-ref-encode > build/color-schema.json","ci":"run-s lint test build schema","prepublishOnly":"npm run ci","prepare":"husky install","setup:demo":"cd demo && npm install --package-lock=false","start:demo":"npm run setup:demo && cd demo && npm start","deploy:site":"cd demo && npm run deploy:site","preversion":"npm run lint","version":"npm run format && git add -A src","postversion":"git push && git push --tags","one-stop-setup":"npm install --package-lock=false && run-s build setup:demo"},"repository":{"type":"git","url":"git+https://github.com/antvis/color-schema.git"},"author":{"name":"AntV","url":"https://antv.vision/"},"license":"MIT","homepage":"https://antvis.github.io/color-schema","publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/antvis/color-schema/issues"},"dependencies":{"@types/chroma-js":"^2.1.3"},"devDependencies":{"@babel/runtime":"^7.13.10","@commitlint/cli":"^12.1.4","@commitlint/config-conventional":"^12.1.4","@rollup/plugin-commonjs":"^21.0.1","@rollup/plugin-node-resolve":"^13.0.0","@rollup/plugin-typescript":"^8.2.1","@types/jest":"^26.0.22","@types/jest-json-schema":"^2.1.3","@typescript-eslint/eslint-plugin":"^4.28.3","@typescript-eslint/parser":"^4.28.3","ajv":"^8.0.4","chroma-js":"^2.1.1","eslint":"^7.29.0","eslint-config-airbnb":"^18.2.1","eslint-config-prettier":"^8.3.0","eslint-import-resolver-typescript":"^2.4.0","eslint-plugin-import":"^2.23.4","eslint-plugin-prettier":"^3.4.0","eslint-plugin-react":"^7.24.0","husky":"^7.0.1","jest":"^26.6.3","jest-json-schema":"^5.0.0","limit-size":"^0.1.4","lint-staged":"^11.0.1","npm-run-all":"^4.1.5","prettier":"^2.3.0","rimraf":"^3.0.2","rollup":"^2.53.1","rollup-plugin-terser":"^7.0.2","ts-jest":"^26.5.4","ts-json-schema-generator":"^0.89.2","typescript":"^4.2.4"},"lint-staged":{"*.{ts,tsx}":["eslint --fix","prettier --write","git add"]},"limit-size":[{"path":"dist/index.min.js","limit":"8 Kb","gzip":true},{"path":"dist/index.min.js","limit":"24 Kb"}],"gitHead":"44a4d5a0ac1146f821dca72acfccbf1ccfee2fb4","_id":"@antv/color-schema@0.2.3","_nodeVersion":"16.13.0","_npmVersion":"8.1.0","dist":{"shasum":"e3d1547939aedb4979e914ac43fb6c23af853dee","size":15054,"noattachment":false,"key":"/@antv/color-schema/-/@antv/color-schema-0.2.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/@antv/color-schema/download/@antv/color-schema-0.2.3.tgz"},"_npmUser":{"name":"neoddish","email":"neoddish@outlook.com"},"directories":{},"maintainers":[{"name":"afc163","email":""},{"name":"army8735","email":"army8735@qq.com"},{"name":"atool","email":""},{"name":"baizn","email":""},{"name":"banxuan","email":""},{"name":"basketduck","email":""},{"name":"bbsqq","email":""},{"name":"biupiubiupiu","email":""},{"name":"boyu.zlj","email":"boyu.zlj@antfin.com"},{"name":"bubkoo","email":""},{"name":"ccnuzindex","email":""},{"name":"chenluli","email":""},{"name":"cxxxxxn","email":""},{"name":"dengfuping","email":"dengfuping_develop@163.com"},{"name":"dori","email":"418466938@qq.com"},{"name":"dreammy23","email":""},{"name":"dxq613","email":"dxq613@gmail.com"},{"name":"elaine.q.10","email":"yilin.qyl@antfin.com"},{"name":"esora","email":"tygyh2012@gmail.com"},{"name":"flash1","email":""},{"name":"freestyle21","email":"675861708@qq.com"},{"name":"iaaron","email":"943720372@qq.com"},{"name":"intchous","email":""},{"name":"jeffy2012","email":"yuanjiefeng@gmail.com"},{"name":"jinke.li","email":"1359518268@qq.com"},{"name":"kasmine","email":""},{"name":"kn9117","email":"1175863618@qq.com"},{"name":"kopiluwaky","email":"wyy460342010@gmail.com"},{"name":"l1ud0ngq1","email":""},{"name":"laixingui.lxg","email":""},{"name":"leungwensen","email":"leungwensen@gmail.com"},{"name":"lvisei","email":""},{"name":"lzxue","email":""},{"name":"mxz96102","email":""},{"name":"nadia_liu","email":""},{"name":"neoddish","email":"neo.wang@vip.163.com"},{"name":"newbyvector","email":"vectorse@126.com"},{"name":"openwayne","email":"openwayne@gmail.com"},{"name":"panyuqi","email":""},{"name":"pddpd","email":""},{"name":"pearmini","email":"subairui@icloud.com"},{"name":"pomelo-nwu","email":""},{"name":"rainy25ghz","email":""},{"name":"sakuya223","email":""},{"name":"semious2020","email":"semious@163.com"},{"name":"serializedowen","email":"wjh199455@gmail.com"},{"name":"simaq","email":"sima.zhang1990@gmail.com"},{"name":"soundquiet","email":""},{"name":"sturuby","email":"xingya.shi@gmail.com"},{"name":"susan_ann","email":""},{"name":"susiwen8","email":""},{"name":"winniexing","email":""},{"name":"wjgogogo","email":""},{"name":"xdddst","email":""},{"name":"xdzhao","email":""},{"name":"xuying1027","email":""},{"name":"yangzhanmei","email":"15809244435@163.com"},{"name":"yanxiong","email":""},{"name":"yard","email":"zjwengyidong@outlook.com"},{"name":"yiqianyao","email":""},{"name":"yisi.wang","email":""},{"name":"zengyue","email":""},{"name":"zeyuwang","email":""},{"name":"zhanba","email":"c5e1856@gmail.com"},{"name":"zhangjunjie-loki","email":""},{"name":"zqlu","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/color-schema_0.2.3_1637078271508_0.5628699125607357"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-27T18:18:15.402Z","publish_time":1637078271673,"_cnpm_publish_time":1637078271673},"0.2.2":{"name":"@antv/color-schema","version":"0.2.2","description":"JSON Schema for Color Palette","main":"lib/src/index.js","types":"lib/src/index.d.ts","browser":"dist/index.js","module":"es/src/index.js","scripts":{"clean":"rimraf lib esm dist","lint-staged":"lint-staged","size":"limit-size","format":"prettier --write \"src/**/*.ts\" \"__tests__/**/*.ts\" \"demo/**/*.{ts,tsx}\"","format-check":" prettier ./src/**/*.ts ./__tests__/**/*.ts ./demo/**/*.{ts,tsx} --check","lint":"eslint ./src/**/*.ts ./__tests__/**/*.ts ./demo/**/*.{ts,tsx} && npm run format-check","fix":"eslint ./src/**/*.ts ./__tests__/**/*.ts ./demo/**/*.{ts,tsx} --fix && npm run format","test":"jest","build:umd":"rimraf ./dist && rollup -c && npm run size","build:cjs":"rimraf ./lib && tsc --module commonjs --outDir lib","build:esm":"rimraf ./esm && tsc --module ESNext --outDir esm","build":"run-p build:*","schema":"mkdir -p build && ts-json-schema-generator -f tsconfig.json -p src/index.ts -t ColorSchema --no-type-check --no-ref-encode > build/color-schema.json","ci":"run-s lint test build schema","prepublishOnly":"npm run ci","prepare":"husky install","prepare:demo":"cd demo && npm install","start:demo":"npm run prepare:demo && npm start","deploy:site":"cd demo && npm run deploy:site","preversion":"npm run lint","version":"npm run format && git add -A src","postversion":"git push && git push --tags"},"repository":{"type":"git","url":"git+https://github.com/antvis/color-schema.git"},"author":{"name":"AntV","url":"https://antv.vision/"},"license":"MIT","homepage":"https://antvis.github.io/color-schema","publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/antvis/color-schema/issues"},"dependencies":{"@types/chroma-js":"^2.1.3"},"devDependencies":{"@babel/runtime":"^7.13.10","@commitlint/cli":"^12.1.4","@commitlint/config-conventional":"^12.1.4","@rollup/plugin-node-resolve":"^13.0.0","@rollup/plugin-typescript":"^8.2.1","@types/jest":"^26.0.22","@types/jest-json-schema":"^2.1.3","@typescript-eslint/eslint-plugin":"^4.28.3","@typescript-eslint/parser":"^4.28.3","ajv":"^8.0.4","chroma-js":"^2.1.1","eslint":"^7.29.0","eslint-config-airbnb":"^18.2.1","eslint-config-prettier":"^8.3.0","eslint-import-resolver-typescript":"^2.4.0","eslint-plugin-import":"^2.23.4","eslint-plugin-prettier":"^3.4.0","eslint-plugin-react":"^7.24.0","husky":"^7.0.1","jest":"^26.6.3","jest-json-schema":"^5.0.0","limit-size":"^0.1.4","lint-staged":"^11.0.1","npm-run-all":"^4.1.5","prettier":"^2.3.0","rimraf":"^3.0.2","rollup":"^2.53.1","rollup-plugin-uglify":"^6.0.4","ts-jest":"^26.5.4","ts-json-schema-generator":"^0.89.2","typescript":"^4.2.4"},"lint-staged":{"*.{ts,tsx}":["eslint --fix","prettier --write","git add"]},"limit-size":[{"path":"dist/color-schema.min.js","limit":"8 Kb","gzip":true},{"path":"dist/color-schema.min.js","limit":"24 Kb"}],"gitHead":"1801b35784aa69c01d2c5faace103eea0124840a","_id":"@antv/color-schema@0.2.2","_nodeVersion":"14.15.1","_npmVersion":"6.14.8","dist":{"shasum":"9c7359ff6dfaaea245b8c20f0b2bca1fd30f9e82","size":13592,"noattachment":false,"key":"/@antv/color-schema/-/@antv/color-schema-0.2.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@antv/color-schema/download/@antv/color-schema-0.2.2.tgz"},"_npmUser":{"name":"neoddish","email":"neoddish@outlook.com"},"directories":{},"maintainers":[{"name":"afc163","email":""},{"name":"army8735","email":"army8735@qq.com"},{"name":"atool","email":""},{"name":"baizn","email":""},{"name":"banxuan","email":""},{"name":"basketduck","email":""},{"name":"bbsqq","email":""},{"name":"biupiubiupiu","email":""},{"name":"boyu.zlj","email":"boyu.zlj@antfin.com"},{"name":"bubkoo","email":""},{"name":"ccnuzindex","email":""},{"name":"chenluli","email":""},{"name":"cxxxxxn","email":""},{"name":"dengfuping","email":"dengfuping_develop@163.com"},{"name":"dori","email":"418466938@qq.com"},{"name":"dreammy23","email":""},{"name":"dxq613","email":"dxq613@gmail.com"},{"name":"elaine.q.10","email":"yilin.qyl@antfin.com"},{"name":"esora","email":"tygyh2012@gmail.com"},{"name":"flash1","email":""},{"name":"freestyle21","email":"675861708@qq.com"},{"name":"iaaron","email":"943720372@qq.com"},{"name":"intchous","email":""},{"name":"jeffy2012","email":"yuanjiefeng@gmail.com"},{"name":"jinke.li","email":"1359518268@qq.com"},{"name":"kasmine","email":""},{"name":"kn9117","email":"1175863618@qq.com"},{"name":"kopiluwaky","email":"wyy460342010@gmail.com"},{"name":"l1ud0ngq1","email":""},{"name":"laixingui.lxg","email":""},{"name":"leungwensen","email":"leungwensen@gmail.com"},{"name":"lvisei","email":""},{"name":"lzxue","email":""},{"name":"mxz96102","email":""},{"name":"nadia_liu","email":""},{"name":"neoddish","email":"neo.wang@vip.163.com"},{"name":"newbyvector","email":"vectorse@126.com"},{"name":"openwayne","email":"openwayne@gmail.com"},{"name":"panyuqi","email":""},{"name":"pddpd","email":""},{"name":"pearmini","email":"subairui@icloud.com"},{"name":"pomelo-nwu","email":""},{"name":"rainy25ghz","email":""},{"name":"sakuya223","email":""},{"name":"semious2020","email":"semious@163.com"},{"name":"serializedowen","email":"wjh199455@gmail.com"},{"name":"simaq","email":"sima.zhang1990@gmail.com"},{"name":"soundquiet","email":""},{"name":"sturuby","email":"xingya.shi@gmail.com"},{"name":"susan_ann","email":""},{"name":"susiwen8","email":""},{"name":"winniexing","email":""},{"name":"wjgogogo","email":""},{"name":"xdddst","email":""},{"name":"xdzhao","email":""},{"name":"xuying1027","email":""},{"name":"yangzhanmei","email":"15809244435@163.com"},{"name":"yanxiong","email":""},{"name":"yard","email":"zjwengyidong@outlook.com"},{"name":"yiqianyao","email":""},{"name":"yisi.wang","email":""},{"name":"zengyue","email":""},{"name":"zeyuwang","email":""},{"name":"zhanba","email":"c5e1856@gmail.com"},{"name":"zhangjunjie-loki","email":""},{"name":"zqlu","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/color-schema_0.2.2_1626267862023_0.7484784171732646"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-27T18:18:13.757Z","publish_time":1626267862154,"_cnpm_publish_time":1626267862154},"0.2.1":{"name":"@antv/color-schema","version":"0.2.1","description":"JSON Schema for Color Palette","main":"lib/src/index.js","types":"lib/src/index.d.ts","browser":"dist/index.js","module":"es/src/index.js","scripts":{"clean":"rimraf lib esm dist","lint-staged":"lint-staged","size":"limit-size","format":"prettier --write \"src/**/*.ts\" \"__tests__/**/*.ts\" \"demo/**/*.{ts,tsx}\"","format-check":" prettier ./src/**/*.ts ./__tests__/**/*.ts ./demo/**/*.{ts,tsx} --check","lint":"eslint ./src/**/*.ts ./__tests__/**/*.ts ./demo/**/*.{ts,tsx} && npm run format-check","fix":"eslint ./src/**/*.ts ./__tests__/**/*.ts ./demo/**/*.{ts,tsx} --fix && npm run format","test":"jest","build:umd":"rimraf ./dist && rollup -c && npm run size","build:cjs":"rimraf ./lib && tsc --module commonjs --outDir lib","build:esm":"rimraf ./esm && tsc --module ESNext --outDir esm","build":"run-p build:*","schema":"mkdir -p build && ts-json-schema-generator -f tsconfig.json -p src/index.ts -t ColorSchema --no-type-check --no-ref-encode > build/color-schema.json","ci":"run-s lint test build schema","prepublishOnly":"npm run ci","prepare":"husky install","prepare:demo":"cd demo && npm install","start:demo":"npm run prepare:demo && npm start","deploy:site":"cd demo && npm run deploy:site","preversion":"npm run lint","version":"npm run format && git add -A src","postversion":"git push && git push --tags"},"repository":{"type":"git","url":"git+https://github.com/antvis/color-schema.git"},"author":{"name":"AntV","url":"https://antv.vision/"},"license":"MIT","homepage":"https://antvis.github.io/color-schema","publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/antvis/color-schema/issues"},"dependencies":{"@types/chroma-js":"^2.1.3"},"devDependencies":{"@babel/runtime":"^7.13.10","@commitlint/cli":"^12.1.4","@commitlint/config-conventional":"^12.1.4","@rollup/plugin-node-resolve":"^13.0.0","@rollup/plugin-typescript":"^8.2.1","@types/jest":"^26.0.22","@types/jest-json-schema":"^2.1.3","@typescript-eslint/eslint-plugin":"^4.28.3","@typescript-eslint/parser":"^4.28.3","ajv":"^8.0.4","chroma-js":"^2.1.1","eslint":"^7.29.0","eslint-config-airbnb":"^18.2.1","eslint-config-prettier":"^8.3.0","eslint-import-resolver-typescript":"^2.4.0","eslint-plugin-import":"^2.23.4","eslint-plugin-prettier":"^3.4.0","eslint-plugin-react":"^7.24.0","husky":"^7.0.1","jest":"^26.6.3","jest-json-schema":"^5.0.0","limit-size":"^0.1.4","lint-staged":"^11.0.1","npm-run-all":"^4.1.5","prettier":"^2.3.0","rimraf":"^3.0.2","rollup":"^2.53.1","rollup-plugin-uglify":"^6.0.4","ts-jest":"^26.5.4","ts-json-schema-generator":"^0.89.2","typescript":"^4.2.4"},"lint-staged":{"*.{ts,tsx}":["eslint --fix","prettier --write","git add"]},"limit-size":[{"path":"dist/color-schema.min.js","limit":"8 Kb","gzip":true},{"path":"dist/color-schema.min.js","limit":"24 Kb"}],"gitHead":"7444c154c5887139427a1a9d62700225e8bb6447","_id":"@antv/color-schema@0.2.1","_nodeVersion":"14.15.1","_npmVersion":"6.14.8","dist":{"shasum":"b80cffe1482a3fde7432b5e86e8457ca76a84bf3","size":9037,"noattachment":false,"key":"/@antv/color-schema/-/@antv/color-schema-0.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@antv/color-schema/download/@antv/color-schema-0.2.1.tgz"},"_npmUser":{"name":"neoddish","email":"neoddish@outlook.com"},"directories":{},"maintainers":[{"name":"afc163","email":""},{"name":"army8735","email":"army8735@qq.com"},{"name":"atool","email":""},{"name":"baizn","email":""},{"name":"banxuan","email":""},{"name":"basketduck","email":""},{"name":"bbsqq","email":""},{"name":"biupiubiupiu","email":""},{"name":"boyu.zlj","email":"boyu.zlj@antfin.com"},{"name":"bubkoo","email":""},{"name":"ccnuzindex","email":""},{"name":"chenluli","email":""},{"name":"cxxxxxn","email":""},{"name":"dengfuping","email":"dengfuping_develop@163.com"},{"name":"dori","email":"418466938@qq.com"},{"name":"dreammy23","email":""},{"name":"dxq613","email":"dxq613@gmail.com"},{"name":"elaine.q.10","email":"yilin.qyl@antfin.com"},{"name":"esora","email":"tygyh2012@gmail.com"},{"name":"flash1","email":""},{"name":"freestyle21","email":"675861708@qq.com"},{"name":"iaaron","email":"943720372@qq.com"},{"name":"intchous","email":""},{"name":"jeffy2012","email":"yuanjiefeng@gmail.com"},{"name":"jinke.li","email":"1359518268@qq.com"},{"name":"kasmine","email":""},{"name":"kn9117","email":"1175863618@qq.com"},{"name":"kopiluwaky","email":"wyy460342010@gmail.com"},{"name":"l1ud0ngq1","email":""},{"name":"laixingui.lxg","email":""},{"name":"leungwensen","email":"leungwensen@gmail.com"},{"name":"lvisei","email":""},{"name":"lzxue","email":""},{"name":"mxz96102","email":""},{"name":"nadia_liu","email":""},{"name":"neoddish","email":"neo.wang@vip.163.com"},{"name":"newbyvector","email":"vectorse@126.com"},{"name":"openwayne","email":"openwayne@gmail.com"},{"name":"panyuqi","email":""},{"name":"pddpd","email":""},{"name":"pearmini","email":"subairui@icloud.com"},{"name":"pomelo-nwu","email":""},{"name":"rainy25ghz","email":""},{"name":"sakuya223","email":""},{"name":"semious2020","email":"semious@163.com"},{"name":"serializedowen","email":"wjh199455@gmail.com"},{"name":"simaq","email":"sima.zhang1990@gmail.com"},{"name":"soundquiet","email":""},{"name":"sturuby","email":"xingya.shi@gmail.com"},{"name":"susan_ann","email":""},{"name":"susiwen8","email":""},{"name":"winniexing","email":""},{"name":"wjgogogo","email":""},{"name":"xdddst","email":""},{"name":"xdzhao","email":""},{"name":"xuying1027","email":""},{"name":"yangzhanmei","email":"15809244435@163.com"},{"name":"yanxiong","email":""},{"name":"yard","email":"zjwengyidong@outlook.com"},{"name":"yiqianyao","email":""},{"name":"yisi.wang","email":""},{"name":"zengyue","email":""},{"name":"zeyuwang","email":""},{"name":"zhanba","email":"c5e1856@gmail.com"},{"name":"zhangjunjie-loki","email":""},{"name":"zqlu","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/color-schema_0.2.1_1626240786263_0.1645485992383655"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-27T18:18:12.098Z","publish_time":1626240786392,"_cnpm_publish_time":1626240786392}},"readme":"<img src=\"https://gw.alipayobjects.com/zos/antfincdn/R8sN%24GNdh6/language.svg\" width=\"18\"> English | [简体中文](./README.zh-CN.md)\n\n<h1 align=\"center\">\n<b>@antv/color-schema</b>\n</h1>\n\n<div align=\"center\">\nA JSON schema used to regulate semantic color assets or palettes.\n</div>\n\n## ✨ Features\n* **Validate**: Validate data with JSON schema.\n* **Develop**: Develop with types and interfaces.\n\n## ???? Example\n\n```js\n{\n  brandName: \"antd\",\n  palettes: [\n    {\n      name: \"trinity\",\n      semantic: \"three\",\n      type: \"categorical\",\n      colors: [\n        {\n          model: \"rgb\",\n          value: { r: 255, g: 0, b: 0 },\n          name: \"red\",\n          undertone: \"warm\",\n          usage: [ \"danger\", \"apple\" ]\n        },\n        {\n          model: \"rgb\",\n          value: { r: 0, g: 255, b: 0 },\n          name: \"green\",\n          undertone: \"neutral\"\n        },\n        {\n          model: \"rgb\",\n          value: { r: 0, g: 0, b: 255 },\n          name: \"blue\",\n          undertone: \"cool\"\n        }\n      ]\n    },\n    {\n      name: \"Leaf Yellow\",\n      semantic: \"tranquil\",\n      type: \"discrete-scale\",\n      description: \"Colors of leaves in different seasons.\",\n      colors: [\n        { model: \"rgb\", value: { r: 255, g: 235, b: 176} },\n        { model: \"rgb\", value: { r: 255, g: 223, b: 128} },\n        { model: \"rgb\", value: { r: 250, g: 202, b: 62 },\n        { model: \"rgb\", value: { r: 230, g: 184, b: 1 },\n        { model: \"rgb\", value: { r: 181, g: 172, b: 35} },\n        { model: \"rgb\", value: { r: 106, g: 154, b: 72} },\n        { model: \"rgb\", value: { r: 32, g: 135, b: 107} },\n        { model: \"rgb\", value: { r: 6, g: 116, b: 107} },\n        { model: \"rgb\", value: { r: 4, g: 78, b: 72} }\n      ],\n      \"usage\": [\"visualization\"]\n    },\n    {\n      name: \"scale3\",\n      semantic: \"passional\",\n      type: \"continuous-scale\",\n      colors: [\n        { model: \"rgb\", value: {r: 255, g: 247, b: 236}, location: 0 },\n        { model: \"rgb\", value: {r: 252, g: 141, b: 89}, location: 0.2 },\n        { model: \"rgb\", value: {r: 127, g: 0, b: 0}, location: 1 }\n      ]\n    },\n    {\n      name: \"Matrix\",\n      semantic: \"mysterious\",\n      type: \"matrix\",\n      colors: [\n        [\n          { model: \"rgb\", value: { r: 139, g: 89, b: 255 } },\n          { model: \"rgb\", value: { r: 103, g: 82, b: 255 } },\n          { model: \"rgb\", value: { r: 20, g: 68, b: 237 } }\n        ],\n        [ \n          { model: \"rgb\", value: { r: 183, g: 141, b: 255 } },\n          { model: \"rgb\", value: { r: 136, g: 129, b: 255 } },\n          { model: \"rgb\", value: { r: 27, g: 107, b: 237 } }\n        ],\n        [\n          { model: \"rgb\", value: { r: 215, g: 209, b: 255 } },\n          { model: \"rgb\", value: { r: 160, g: 191, b: 255 } },\n          { model: \"rgb\", value: { r: 32, g: 159, b: 237 } }\n        ]\n      ],\n      origin: {\n        x: [ \n          { model: \"rgb\", value: { r: 215, g: 209, b: 255 } },\n          { model: \"rgb\", value: { r: 160, g: 191, b: 255 } },\n          { model: \"rgb\", value: { r: 32, g: 159, b: 237 } }\n        ],\n        y: [\n          { model: \"rgb\", value: { r: 215, g: 209, b: 255 } },\n          { model: \"rgb\", value: { r: 183, g: 141, b: 255 } },\n          { model: \"rgb\", value: { r: 139, g: 89, b: 255 } }\n        ]\n      }\n    }\n  ]\n}\n```\n<div align=\"center\">\n  <img src=\"https://gw.alipayobjects.com/zos/antfincdn/OJkRfCvSxN/palettes.png\" width=\"300\" />\n</div>\n\n## ???? Installation\n```bash\n$ npm install @antv/color-schema\n```\n\n## ???? Usage\n\n### Validate \nValidate by [Ajv](https://github.com/ajv-validator/ajv) (JSON schema validator):\n\n```js\nimport Ajv from \"ajv\";\nimport colorSchema from \"build/color-schema.json\";\n\nconst ajv = new Ajv();\nconst validate = ajv.compile(colorSchema);\nconst valid = validate(data);\n```\n\n### Types & Interfaces\n\nSome types and interfaces:\n\n```js\nimport { ColorSchema, Palette, Color } from '@antv/color-schema';\n```\n\n#### ColorSchema\nColor Schema is a color assets package consisting of a collection of palettes.\n```ts\ninterface ColorSchema {\n  brandName: string;\n  palettes: Palette[];\n}\n```\n\n#### Palette\nColor palette is a collection of colors.\n```ts\ninterface Palette {\n  id?: string;\n  name: string;\n  type: PaletteType;\n  semantic: string | null;\n  description?: string;\n  colorScheme?: ColorSchemeType;\n  usage?: string[];\n  colors: Color[] | ContinuousColor[] | colors: Color[][];\n  origin?: {\n    x: Color[];\n    y: Color[];\n  };\n}\n```\n\n#### PaletteType\nAccording to different data types and usage scenarios, four different [types](https://antv.vision/en/docs/specification/language/palette#6-%E5%A4%A7%E8%89%B2%E6%9D%BF%E7%B1%BB%E5%9E%8B) of color plates are provided.\n```ts\ntype PaletteType = \"categorical\" | \"discrete-scale\" | \"continuous-scale\" | \"matrix\";\n```\n\n#### ColorSchemeType\n[Color scheme](https://en.wikipedia.org/wiki/Color_scheme) is described in terms of logical combinations of colors on a color wheel. Different types of schemes, like monochromatic or complementary, are used.\n```ts\ntype ColorSchemeType = \n  | \"monochromatic\"\n  | \"complementary\"\n  | \"split-complementary\"\n  | \"achromatic\"\n  | \"analogous\"\n  | \"triadic\"\n  | \"tetradic\"\n  | \"polychromatic\"\n  | \"customized\";\n```\n\n#### Color\n```ts\ninterface Color {\n  model: ColorModel;\n  value: ColorValue;\n  id?: string;\n  name?: string;\n  undertone?: Undertone;\n  usage?: string[];\n}\n```\n\n#### ColorModel\n```ts\ntype ColorModel = \"hsl\" | \"hsv\" | \"hsi\" | \"rgb\" | \"rgba\" | \"lab\" | \"lch\" | \"cmyk\";\n```\n\n#### Undertone\n```ts\ntype Undertone = \"warm\" | \"neutral\" | \"cool\";\n```\n\n## ???? Dev\n\n```bash\nnpm install\nnpm run start\n```\n\n## ???? Reference\n\n* [Ant Design Colors](https://ant.design/docs/spec/colors)\n* [AntV Color Design](https://antv.vision/en/docs/specification/language/palette)\n\n## License\n\nMIT\n","_attachments":{},"homepage":"https://antvis.github.io/color-schema","bugs":{"url":"https://github.com/antvis/color-schema/issues"},"license":"MIT"}