{"_id":"color-schema-test","_rev":"3332346","name":"color-schema-test","description":"JSON Schema for Color Palette","dist-tags":{"latest":"0.1.8"},"maintainers":[{"name":"cxxxxxn","email":""},{"name":"neoddish","email":"neo.wang@vip.163.com"}],"time":{"modified":"2024-07-10T07:28:17.000Z","created":"2021-05-24T16:23:13.577Z","0.1.8":"2021-06-30T13:18:52.899Z","0.1.6":"2021-06-09T06:05:11.805Z","0.1.5":"2021-06-09T03:18:23.214Z","0.1.4":"2021-05-27T02:21:02.539Z","0.1.3":"2021-05-26T07:46:53.602Z","0.1.1":"2021-05-24T16:32:11.708Z","0.1.0":"2021-05-24T16:23:13.577Z"},"users":{},"author":{"name":"neoddish"},"repository":{"type":"git","url":"git+https://github.com/neoddish/color-palette-json-schema.git"},"versions":{"0.1.8":{"name":"color-schema-test","version":"0.1.8","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":{"test":"jest","build":"rm -rf lib && tsc --pretty","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","start":"webpack serve --port 8897","module":"rm -rf es && tsc -t ES5 -m ESNext --outDir es","pack":"webpack --config=webpack.config.js","format":"prettier --write \"src/**/*.ts\" \"demo/**/*.ts\" \"demo/**/*.ts\"","lint":"tslint -p tsconfig.json","prepare":"npm run build","prepublish":"npm run module && npm run pack","prepublishOnly":"npm run prepublish && npm test && npm run lint && webpack --mode=production","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/neoddish/color-palette-json-schema.git"},"author":{"name":"neoddish"},"license":"MIT","publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/neoddish/color-palette-json-schema/issues"},"homepage":"https://github.com/neoddish/color-palette-json-schema#readme","dependencies":{},"devDependencies":{"@ant-design/icons":"^4.6.2","@babel/core":"^7.13.14","@babel/plugin-proposal-class-properties":"^7.13.0","@babel/plugin-proposal-export-default-from":"^7.12.13","@babel/plugin-proposal-object-rest-spread":"^7.13.8","@babel/plugin-transform-runtime":"^7.13.10","@babel/preset-env":"^7.13.12","@babel/preset-react":"^7.13.13","@babel/preset-typescript":"^7.13.0","@babel/runtime":"^7.13.10","@types/chroma-js":"^2.1.3","@types/jest":"^26.0.22","@types/jest-json-schema":"^2.1.3","@types/react":"^17.0.3","@types/react-dom":"^17.0.3","ajv":"^8.0.4","antd":"^4.15.4","babel-jest":"^26.6.3","babel-loader":"^8.2.2","babel-plugin-import":"^1.13.3","browser-resolve":"^2.0.0","chroma-js":"^2.1.1","css-loader":"^5.2.0","file-loader":"^6.2.0","jest":"^26.6.3","jest-json-schema":"^5.0.0","less":"^4.1.1","less-loader":"^8.0.0","prettier":"^2.3.0","react":"^17.0.2","react-dom":"^17.0.2","style-loader":"^2.0.0","ts-jest":"^26.5.4","ts-json-schema-generator":"^0.89.2","tslint":"^6.1.3","tslint-config-prettier":"^1.18.0","typescript":"^4.2.4","webpack":"^5.31.0","webpack-cli":"^4.6.0","webpack-dev-server":"^3.11.2"},"gitHead":"67171c6b30d358df13dd06ad54babba5b7509e75","_id":"color-schema-test@0.1.8","_nodeVersion":"14.15.0","_npmVersion":"6.14.8","dist":{"shasum":"eb78205102f57c0f31df51777ea092957c08395c","size":1202606,"noattachment":false,"key":"/color-schema-test/-/color-schema-test-0.1.8.tgz","tarball":"http://registry.cnpm.dingdandao.com/color-schema-test/download/color-schema-test-0.1.8.tgz"},"_npmUser":{"name":"cxxxxxn","email":"christy05.chen@gmail.com"},"directories":{},"maintainers":[{"name":"cxxxxxn","email":""},{"name":"neoddish","email":"neo.wang@vip.163.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/color-schema-test_0.1.8_1625059132698_0.8063273988571273"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-27T15:12:26.791Z","publish_time":1625059132899,"_cnpm_publish_time":1625059132899},"0.1.6":{"name":"color-schema-test","version":"0.1.6","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":{"test":"jest","build":"rm -rf lib && tsc --pretty","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","start":"webpack serve --port 8897","module":"rm -rf es && tsc -t ES5 -m ESNext --outDir es","pack":"webpack --config=webpack.config.js","format":"prettier --write \"src/**/*.ts\" \"demo/**/*.ts\" \"demo/**/*.ts\"","lint":"tslint -p tsconfig.json","prepare":"npm run build","prepublish":"npm run module && npm run pack","prepublishOnly":"npm run prepublish && npm test && npm run lint && webpack --mode=production","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/neoddish/color-palette-json-schema.git"},"author":{"name":"neoddish"},"license":"MIT","publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/neoddish/color-palette-json-schema/issues"},"homepage":"https://github.com/neoddish/color-palette-json-schema#readme","dependencies":{},"devDependencies":{"@ant-design/icons":"^4.6.2","@babel/core":"^7.13.14","@babel/plugin-proposal-class-properties":"^7.13.0","@babel/plugin-proposal-export-default-from":"^7.12.13","@babel/plugin-proposal-object-rest-spread":"^7.13.8","@babel/plugin-transform-runtime":"^7.13.10","@babel/preset-env":"^7.13.12","@babel/preset-react":"^7.13.13","@babel/preset-typescript":"^7.13.0","@babel/runtime":"^7.13.10","@types/chroma-js":"^2.1.3","@types/jest":"^26.0.22","@types/jest-json-schema":"^2.1.3","@types/react":"^17.0.3","@types/react-dom":"^17.0.3","ajv":"^8.0.4","antd":"^4.15.4","babel-jest":"^26.6.3","babel-loader":"^8.2.2","babel-plugin-import":"^1.13.3","browser-resolve":"^2.0.0","chroma-js":"^2.1.1","css-loader":"^5.2.0","file-loader":"^6.2.0","jest":"^26.6.3","jest-json-schema":"^5.0.0","less":"^4.1.1","less-loader":"^8.0.0","prettier":"^2.3.0","react":"^17.0.2","react-dom":"^17.0.2","style-loader":"^2.0.0","ts-jest":"^26.5.4","ts-json-schema-generator":"^0.89.2","tslint":"^6.1.3","tslint-config-prettier":"^1.18.0","typescript":"^4.2.4","webpack":"^5.31.0","webpack-cli":"^4.6.0","webpack-dev-server":"^3.11.2"},"gitHead":"c4f5e45db0ea12e982d0f0189eb74aad8882d5db","_id":"color-schema-test@0.1.6","_nodeVersion":"14.16.1","_npmVersion":"6.14.12","dist":{"shasum":"267a8896e382c55a9f5c0d5ec3ee180d8af492bd","size":1093137,"noattachment":false,"key":"/color-schema-test/-/color-schema-test-0.1.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/color-schema-test/download/color-schema-test-0.1.6.tgz"},"_npmUser":{"name":"cxxxxxn","email":"christy05.chen@gmail.com"},"directories":{},"maintainers":[{"name":"cxxxxxn","email":""},{"name":"neoddish","email":"neo.wang@vip.163.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/color-schema-test_0.1.6_1623218711157_0.8092704150307564"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-27T15:12:24.667Z","publish_time":1623218711805,"_cnpm_publish_time":1623218711805},"0.1.5":{"name":"color-schema-test","version":"0.1.5","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":{"test":"jest","build":"rm -rf lib && tsc --pretty","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","start":"webpack serve --port 8897","module":"rm -rf es && tsc -t ES5 -m ESNext --outDir es","pack":"webpack --config=webpack.config.js","format":"prettier --write \"src/**/*.ts\" \"demo/**/*.ts\" \"demo/**/*.ts\"","lint":"tslint -p tsconfig.json","prepare":"npm run build","prepublish":"npm run module && npm run pack","prepublishOnly":"npm run prepublish && npm test && npm run lint && webpack --mode=production","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/neoddish/color-palette-json-schema.git"},"author":{"name":"neoddish"},"license":"MIT","publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/neoddish/color-palette-json-schema/issues"},"homepage":"https://github.com/neoddish/color-palette-json-schema#readme","dependencies":{},"devDependencies":{"@ant-design/icons":"^4.6.2","@babel/core":"^7.13.14","@babel/plugin-proposal-class-properties":"^7.13.0","@babel/plugin-proposal-export-default-from":"^7.12.13","@babel/plugin-proposal-object-rest-spread":"^7.13.8","@babel/plugin-transform-runtime":"^7.13.10","@babel/preset-env":"^7.13.12","@babel/preset-react":"^7.13.13","@babel/preset-typescript":"^7.13.0","@babel/runtime":"^7.13.10","@types/chroma-js":"^2.1.3","@types/jest":"^26.0.22","@types/jest-json-schema":"^2.1.3","@types/react":"^17.0.3","@types/react-dom":"^17.0.3","ajv":"^8.0.4","antd":"^4.15.4","babel-jest":"^26.6.3","babel-loader":"^8.2.2","babel-plugin-import":"^1.13.3","browser-resolve":"^2.0.0","chroma-js":"^2.1.1","css-loader":"^5.2.0","file-loader":"^6.2.0","jest":"^26.6.3","jest-json-schema":"^5.0.0","less":"^4.1.1","less-loader":"^8.0.0","prettier":"^2.3.0","react":"^17.0.2","react-dom":"^17.0.2","style-loader":"^2.0.0","ts-jest":"^26.5.4","ts-json-schema-generator":"^0.89.2","tslint":"^6.1.3","tslint-config-prettier":"^1.18.0","typescript":"^4.2.4","webpack":"^5.31.0","webpack-cli":"^4.6.0","webpack-dev-server":"^3.11.2"},"gitHead":"233bca72ecea1710a5da3ccb087eba77c3306a89","_id":"color-schema-test@0.1.5","_nodeVersion":"14.16.1","_npmVersion":"6.14.12","dist":{"shasum":"de98c1d825889d196147e2979d89f09ca95b009f","size":1167656,"noattachment":false,"key":"/color-schema-test/-/color-schema-test-0.1.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/color-schema-test/download/color-schema-test-0.1.5.tgz"},"_npmUser":{"name":"cxxxxxn","email":"christy05.chen@gmail.com"},"directories":{},"maintainers":[{"name":"cxxxxxn","email":""},{"name":"neoddish","email":"neo.wang@vip.163.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/color-schema-test_0.1.5_1623208702966_0.586238101031481"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-27T15:12:22.703Z","publish_time":1623208703214,"_cnpm_publish_time":1623208703214},"0.1.4":{"name":"color-schema-test","version":"0.1.4","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":{"test":"jest","build":"rm -rf lib && tsc --pretty","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","start":"webpack serve --port 8897","module":"rm -rf es && tsc -t ES5 -m ESNext --outDir es","pack":"webpack --config=webpack.config.js","format":"prettier --write \"src/**/*.ts\" \"demo/**/*.ts\" \"demo/**/*.ts\"","lint":"tslint -p tsconfig.json","prepare":"npm run build","prepublish":"npm run module && npm run pack","prepublishOnly":"npm run prepublish && npm test && npm run lint && webpack --mode=production","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/neoddish/color-palette-json-schema.git"},"author":{"name":"neoddish"},"license":"MIT","publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/neoddish/color-palette-json-schema/issues"},"homepage":"https://github.com/neoddish/color-palette-json-schema#readme","dependencies":{},"devDependencies":{"@ant-design/icons":"^4.6.2","@babel/core":"^7.13.14","@babel/plugin-proposal-class-properties":"^7.13.0","@babel/plugin-proposal-export-default-from":"^7.12.13","@babel/plugin-proposal-object-rest-spread":"^7.13.8","@babel/plugin-transform-runtime":"^7.13.10","@babel/preset-env":"^7.13.12","@babel/preset-react":"^7.13.13","@babel/preset-typescript":"^7.13.0","@babel/runtime":"^7.13.10","@types/chroma-js":"^2.1.3","@types/jest":"^26.0.22","@types/jest-json-schema":"^2.1.3","@types/react":"^17.0.3","@types/react-dom":"^17.0.3","ajv":"^8.0.4","antd":"^4.15.4","babel-jest":"^26.6.3","babel-loader":"^8.2.2","babel-plugin-import":"^1.13.3","browser-resolve":"^2.0.0","chroma-js":"^2.1.1","css-loader":"^5.2.0","file-loader":"^6.2.0","jest":"^26.6.3","jest-json-schema":"^5.0.0","less":"^4.1.1","less-loader":"^8.0.0","prettier":"^2.3.0","react":"^17.0.2","react-dom":"^17.0.2","style-loader":"^2.0.0","ts-jest":"^26.5.4","ts-json-schema-generator":"^0.89.2","tslint":"^6.1.3","tslint-config-prettier":"^1.18.0","typescript":"^4.2.4","webpack":"^5.31.0","webpack-cli":"^4.6.0","webpack-dev-server":"^3.11.2"},"gitHead":"1db16c407f1c1b7f41d481606d1361ff0ce6fdc5","_id":"color-schema-test@0.1.4","_nodeVersion":"14.16.1","_npmVersion":"6.14.12","dist":{"shasum":"05bc995b63e2b2d2c13b2555f2487a4f3b10c70f","size":1157842,"noattachment":false,"key":"/color-schema-test/-/color-schema-test-0.1.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/color-schema-test/download/color-schema-test-0.1.4.tgz"},"_npmUser":{"name":"cxxxxxn","email":"christy05.chen@gmail.com"},"directories":{},"maintainers":[{"name":"cxxxxxn","email":""},{"name":"neoddish","email":"neo.wang@vip.163.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/color-schema-test_0.1.4_1622082062294_0.05048718518871875"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-27T15:12:20.692Z","publish_time":1622082062539,"_cnpm_publish_time":1622082062539},"0.1.3":{"name":"color-schema-test","version":"0.1.3","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":{"test":"jest","build":"rm -rf lib && tsc --pretty","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","start":"webpack serve --port 8897","module":"rm -rf es && tsc -t ES5 -m ESNext --outDir es","pack":"webpack --config=webpack.config.js","format":"prettier --write \"src/**/*.ts\" \"demo/**/*.ts\" \"demo/**/*.ts\"","lint":"tslint -p tsconfig.json","prepare":"npm run build","prepublish":"npm run module && npm run pack","prepublishOnly":"npm run prepublish && npm test && npm run lint && webpack --mode=production","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/neoddish/color-palette-json-schema.git"},"author":{"name":"neoddish"},"license":"MIT","publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/neoddish/color-palette-json-schema/issues"},"homepage":"https://github.com/neoddish/color-palette-json-schema#readme","dependencies":{},"devDependencies":{"@ant-design/icons":"^4.6.2","@babel/core":"^7.13.14","@babel/plugin-proposal-class-properties":"^7.13.0","@babel/plugin-proposal-export-default-from":"^7.12.13","@babel/plugin-proposal-object-rest-spread":"^7.13.8","@babel/plugin-transform-runtime":"^7.13.10","@babel/preset-env":"^7.13.12","@babel/preset-react":"^7.13.13","@babel/preset-typescript":"^7.13.0","@babel/runtime":"^7.13.10","@types/chroma-js":"^2.1.3","@types/jest":"^26.0.22","@types/jest-json-schema":"^2.1.3","@types/react":"^17.0.3","@types/react-dom":"^17.0.3","ajv":"^8.0.4","antd":"^4.15.4","babel-jest":"^26.6.3","babel-loader":"^8.2.2","babel-plugin-import":"^1.13.3","browser-resolve":"^2.0.0","chroma-js":"^2.1.1","css-loader":"^5.2.0","file-loader":"^6.2.0","jest":"^26.6.3","jest-json-schema":"^5.0.0","less":"^4.1.1","less-loader":"^8.0.0","prettier":"^2.3.0","react":"^17.0.2","react-dom":"^17.0.2","style-loader":"^2.0.0","ts-jest":"^26.5.4","ts-json-schema-generator":"^0.89.2","tslint":"^6.1.3","tslint-config-prettier":"^1.18.0","typescript":"^4.2.4","webpack":"^5.31.0","webpack-cli":"^4.6.0","webpack-dev-server":"^3.11.2"},"gitHead":"ee9e98ee3dbd0d728343a4c21aba0a1306ef3cdf","_id":"color-schema-test@0.1.3","_nodeVersion":"14.16.1","_npmVersion":"6.14.12","dist":{"shasum":"e7f2ab902aa9b81ea9df068d96b71cb21b91df3a","size":1123206,"noattachment":false,"key":"/color-schema-test/-/color-schema-test-0.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/color-schema-test/download/color-schema-test-0.1.3.tgz"},"_npmUser":{"name":"cxxxxxn","email":"christy05.chen@gmail.com"},"directories":{},"maintainers":[{"name":"cxxxxxn","email":""},{"name":"neoddish","email":"neo.wang@vip.163.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/color-schema-test_0.1.3_1622015213414_0.8732799610481641"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-27T15:12:18.708Z","publish_time":1622015213602,"_cnpm_publish_time":1622015213602},"0.1.1":{"name":"color-schema-test","version":"0.1.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":{"test":"jest","build":"rm -rf lib && tsc --pretty","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","start":"webpack serve --port 8897","module":"rm -rf es && tsc -t ES5 -m ESNext --outDir es","pack":"webpack --config=webpack.config.js","format":"prettier --write \"src/**/*.ts\" \"demo/**/*.ts\" \"demo/**/*.ts\"","lint":"tslint -p tsconfig.json","prepare":"npm run build","prepublish":"npm run module && npm run pack","prepublishOnly":"npm run prepublish && npm test && npm run lint && webpack --mode=production","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/neoddish/color-palette-json-schema.git"},"author":{"name":"neoddish"},"license":"MIT","publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/neoddish/color-palette-json-schema/issues"},"homepage":"https://github.com/neoddish/color-palette-json-schema#readme","dependencies":{},"devDependencies":{"@ant-design/icons":"^4.6.2","@babel/core":"^7.13.14","@babel/plugin-proposal-class-properties":"^7.13.0","@babel/plugin-proposal-export-default-from":"^7.12.13","@babel/plugin-proposal-object-rest-spread":"^7.13.8","@babel/plugin-transform-runtime":"^7.13.10","@babel/preset-env":"^7.13.12","@babel/preset-react":"^7.13.13","@babel/preset-typescript":"^7.13.0","@babel/runtime":"^7.13.10","@types/chroma-js":"^2.1.3","@types/jest":"^26.0.22","@types/jest-json-schema":"^2.1.3","@types/react":"^17.0.3","@types/react-dom":"^17.0.3","ajv":"^8.0.4","antd":"^4.15.4","babel-jest":"^26.6.3","babel-loader":"^8.2.2","babel-plugin-import":"^1.13.3","browser-resolve":"^2.0.0","chroma-js":"^2.1.1","css-loader":"^5.2.0","file-loader":"^6.2.0","jest":"^26.6.3","jest-json-schema":"^5.0.0","less":"^4.1.1","less-loader":"^8.0.0","prettier":"^2.3.0","react":"^17.0.2","react-dom":"^17.0.2","style-loader":"^2.0.0","ts-jest":"^26.5.4","ts-json-schema-generator":"^0.89.2","tslint":"^6.1.3","tslint-config-prettier":"^1.18.0","typescript":"^4.2.4","webpack":"^5.31.0","webpack-cli":"^4.6.0","webpack-dev-server":"^3.11.2"},"gitHead":"0282d887014c0caefef1bef354d5e3f1d2863123","_id":"color-schema-test@0.1.1","_nodeVersion":"13.8.0","_npmVersion":"6.13.7","dist":{"shasum":"fb81e96586cec6a8dca78309d5562ac7b528b4ca","size":1126372,"noattachment":false,"key":"/color-schema-test/-/color-schema-test-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/color-schema-test/download/color-schema-test-0.1.1.tgz"},"_npmUser":{"name":"neoddish","email":"neoddish@outlook.com"},"directories":{},"maintainers":[{"name":"cxxxxxn","email":""},{"name":"neoddish","email":"neo.wang@vip.163.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/color-schema-test_0.1.1_1621873931380_0.17438906784851227"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-27T15:12:15.220Z","publish_time":1621873931708,"_cnpm_publish_time":1621873931708},"0.1.0":{"name":"color-schema-test","version":"0.1.0","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":{"test":"jest","build":"rm -rf lib && tsc --pretty","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","start":"webpack serve --port 8897","module":"rm -rf es && tsc -t ES5 -m ESNext --outDir es","pack":"webpack --config=webpack.config.js","format":"prettier --write \"src/**/*.ts\" \"demo/**/*.ts\" \"demo/**/*.ts\"","lint":"tslint -p tsconfig.json","prepare":"npm run build","prepublish":"npm run module && npm run pack","prepublishOnly":"npm run prepublish && npm test && npm run lint && webpack --mode=production","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/neoddish/color-palette-json-schema.git"},"author":{"name":"neoddish"},"license":"MIT","bugs":{"url":"https://github.com/neoddish/color-palette-json-schema/issues"},"homepage":"https://github.com/neoddish/color-palette-json-schema#readme","dependencies":{},"devDependencies":{"@ant-design/icons":"^4.6.2","@babel/core":"^7.13.14","@babel/plugin-proposal-class-properties":"^7.13.0","@babel/plugin-proposal-export-default-from":"^7.12.13","@babel/plugin-proposal-object-rest-spread":"^7.13.8","@babel/plugin-transform-runtime":"^7.13.10","@babel/preset-env":"^7.13.12","@babel/preset-react":"^7.13.13","@babel/preset-typescript":"^7.13.0","@babel/runtime":"^7.13.10","@types/chroma-js":"^2.1.3","@types/jest":"^26.0.22","@types/jest-json-schema":"^2.1.3","@types/react":"^17.0.3","@types/react-dom":"^17.0.3","ajv":"^8.0.4","antd":"^4.15.4","babel-jest":"^26.6.3","babel-loader":"^8.2.2","babel-plugin-import":"^1.13.3","browser-resolve":"^2.0.0","chroma-js":"^2.1.1","css-loader":"^5.2.0","file-loader":"^6.2.0","jest":"^26.6.3","jest-json-schema":"^5.0.0","less":"^4.1.1","less-loader":"^8.0.0","prettier":"^2.3.0","react":"^17.0.2","react-dom":"^17.0.2","style-loader":"^2.0.0","ts-jest":"^26.5.4","ts-json-schema-generator":"^0.89.2","tslint":"^6.1.3","tslint-config-prettier":"^1.18.0","typescript":"^4.2.4","webpack":"^5.31.0","webpack-cli":"^4.6.0","webpack-dev-server":"^3.11.2"},"gitHead":"a854ee54b63855380d9755264331f5420c2cb1c3","_id":"color-schema-test@0.1.0","_nodeVersion":"13.8.0","_npmVersion":"6.13.7","dist":{"shasum":"7a54ca9a8a004ef6ef307164021dff7b2c457b26","size":1160139,"noattachment":false,"key":"/color-schema-test/-/color-schema-test-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/color-schema-test/download/color-schema-test-0.1.0.tgz"},"_npmUser":{},"directories":{},"maintainers":[{"name":"cxxxxxn","email":""},{"name":"neoddish","email":"neo.wang@vip.163.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/color-schema-test_0.1.0_1621873393316_0.15700445049432243"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-27T15:12:13.234Z","publish_time":1621873393577,"_cnpm_publish_time":1621873393577}},"readme":"<img src=\"https://gw.alipayobjects.com/zos/antfincdn/R8sN%24GNdh6/language.svg\" width=\"18\"> English | [简体中文](./README.zh-CN.md)\n\n# color-palette-json-schema\n\nA JSON schema used to regulate semantic color assets or palettes.\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 color-schema-test\n```\n\n## Usage\n\n> Validate data with JSON schema, and develop with types and interfaces.\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 'color-schema-test';\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","_attachments":{},"homepage":"https://github.com/neoddish/color-palette-json-schema#readme","bugs":{"url":"https://github.com/neoddish/color-palette-json-schema/issues"},"license":"MIT"}