@ant-design/colors
Advanced tools
Comparing version 6.0.0 to 7.0.0
{ | ||
"name": "@ant-design/colors", | ||
"version": "6.0.0", | ||
"version": "7.0.0", | ||
"description": "Color palettes calculator of Ant Design", | ||
"main": "dist/index.js", | ||
"module": "dist/index.esm.js", | ||
"files": [ | ||
"lib", | ||
"dist/index.js", | ||
"dist/index.esm.js", | ||
"dist/src/index.d.ts", | ||
"dist/src/generate.d.ts" | ||
], | ||
"typings": "dist/src/index.d.ts", | ||
"homepage": "https://github.com/ant-design/ant-design-colors#readme", | ||
"bugs": { | ||
"url": "https://github.com/ant-design/ant-design-colors/issues" | ||
}, | ||
"repository": { | ||
@@ -19,17 +13,19 @@ "type": "git", | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/ant-design/ant-design-colors/issues" | ||
}, | ||
"license": "MIT", | ||
"author": "afc163 <afc163@gmail.com>", | ||
"main": "./lib/index", | ||
"module": "./es/index", | ||
"typings": "es/index.d.ts", | ||
"files": [ | ||
"lib", | ||
"es" | ||
], | ||
"scripts": { | ||
"tsc": "tsc --noEmit", | ||
"compile": "father build --esm --cjs", | ||
"compile": "father build", | ||
"coverage": "npm test -- --coverage && coveralls < coverage/lcov.info", | ||
"lint": "eslint src --ext .ts", | ||
"prepublishOnly": "npm run compile && np --no-cleanup --no-publish", | ||
"lint": "eslint src --ext .ts", | ||
"lint:fix": "prettier --write '{src,tests}/**/*.ts'", | ||
"jest": "jest", | ||
"coverage": "jest --coverage && cat ./coverage/lcov.info | coveralls", | ||
"test": "npm run tsc && npm run lint && npm run jest" | ||
"prettier": "prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\"", | ||
"test": "jest" | ||
}, | ||
"author": "afc163 <afc163@gmail.com>", | ||
"license": "MIT", | ||
"dependencies": { | ||
@@ -40,9 +36,6 @@ "@ctrl/tinycolor": "^3.4.0" | ||
"@types/jest": "^26.0.0", | ||
"@typescript-eslint/eslint-plugin": "^4.0.0", | ||
"@typescript-eslint/parser": "^4.7.0", | ||
"coveralls": "^3.0.3", | ||
"@umijs/fabric": "^3.0.0", | ||
"coveralls": "^3.1.1", | ||
"eslint": "^7.1.0", | ||
"eslint-config-prettier": "^7.0.0", | ||
"eslint-plugin-prettier": "^3.0.1", | ||
"father": "^2.29.5", | ||
"father": "^4.1.2", | ||
"jest": "^26.0.1", | ||
@@ -53,4 +46,3 @@ "np": "^7.0.0", | ||
"typescript": "^4.0.2" | ||
}, | ||
"homepage": "https://github.com/ant-design/ant-design-colors#readme" | ||
} | ||
} |
@@ -7,9 +7,6 @@ <h1 align="center">Ant Design Colors</h1> | ||
[![Travis](https://img.shields.io/travis/ant-design/ant-design-colors/master.svg?style=flat-square)](https://travis-ci.org/ant-design/ant-design-colors) | ||
[![Test coverage](https://img.shields.io/coveralls/ant-design/ant-design-colors.svg?style=flat-square)](https://coveralls.io/r/ant-design/ant-design-colors?branch=master) | ||
[![npm package](https://img.shields.io/npm/v/@ant-design/colors.svg?style=flat-square)](https://www.npmjs.org/package/@ant-design/colors) | ||
[![NPM downloads](http://img.shields.io/npm/dm/@ant-design/colors.svg?style=flat-square)](http://npmjs.com/@ant-design/colors) | ||
[![Travis](https://img.shields.io/travis/ant-design/ant-design-colors/master.svg?style=flat-square)](https://travis-ci.org/ant-design/ant-design-colors) [![Test coverage](https://img.shields.io/coveralls/ant-design/ant-design-colors.svg?style=flat-square)](https://coveralls.io/r/ant-design/ant-design-colors?branch=master) [![npm package](https://img.shields.io/npm/v/@ant-design/colors.svg?style=flat-square)](https://www.npmjs.org/package/@ant-design/colors) [![NPM downloads](http://img.shields.io/npm/dm/@ant-design/colors.svg?style=flat-square)](http://npmjs.com/@ant-design/colors) | ||
[![Dependencies](https://img.shields.io/david/ant-design/ant-design-colors.svg?style=flat-square)](https://david-dm.org/ant-design/ant-design-colors) | ||
[![DevDependencies](https://img.shields.io/david/dev/ant-design/ant-design-colors.svg?style=flat-square)](https://david-dm.org/ant-design/ant-design-colors?type=dev) [![Greenkeeper badge](https://badges.greenkeeper.io/ant-design/ant-design-colors.svg)](https://greenkeeper.io/) | ||
[![Dependencies](https://img.shields.io/david/ant-design/ant-design-colors.svg?style=flat-square)](https://david-dm.org/ant-design/ant-design-colors) [![DevDependencies](https://img.shields.io/david/dev/ant-design/ant-design-colors.svg?style=flat-square)](https://david-dm.org/ant-design/ant-design-colors?type=dev) [![Greenkeeper badge](https://badges.greenkeeper.io/ant-design/ant-design-colors.svg)](https://greenkeeper.io/) | ||
</div> | ||
@@ -34,6 +31,19 @@ | ||
```js | ||
import { red, volcano, gold, yellow, lime, green, cyan, blue, geekblue, purple, magenta, grey } from '@ant-design/colors'; | ||
import { | ||
red, | ||
volcano, | ||
gold, | ||
yellow, | ||
lime, | ||
green, | ||
cyan, | ||
blue, | ||
geekblue, | ||
purple, | ||
magenta, | ||
grey, | ||
} from '@ant-design/colors'; | ||
console.log(blue); // ['#E6F7FF', '#BAE7FF', '#91D5FF', ''#69C0FF', '#40A9FF', '#1890FF', '#096DD9', '#0050B3', '#003A8C', '#002766'] | ||
console.log(blue.primary); // '#1890FF' | ||
console.log(blue); // ['#E6F4FF', '#BAE0FF', '#91CAFF', '#69B1FF', '#4096FF', '#1677FF', '#0958D9', '#003EB3', '#002C8C', '#001D66'] | ||
console.log(blue.primary); // '#1677FF' | ||
``` | ||
@@ -72,5 +82,5 @@ | ||
theme: 'dark', | ||
backgroundColor: '#141414' | ||
backgroundColor: '#141414', | ||
}); | ||
console.log(colors); // ["#111d2c", "#112a45", "#15395b", "#164c7e", "#1765ad", "#177ddc", "#3993dc", "#65b7f3", "#8bcbf3", "#b2dcf3"] | ||
console.log(colors); // ['#111d2c', '#112a45', '#15395b', '#164c7e', '#1765ad', '#177ddc', '#3c9ae8', '#65b7f3', '#8dcff8', '#b7e3fa'] | ||
console.log(presetDarkPalettes); | ||
@@ -77,0 +87,0 @@ /* |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
23774
10
15
534
106
2