Gathering detailed insights and metrics for @ant-design/colors
Gathering detailed insights and metrics for @ant-design/colors
Gathering detailed insights and metrics for @ant-design/colors
Gathering detailed insights and metrics for @ant-design/colors
npm install @ant-design/colors
Typescript
Module System
Node Version
NPM Version
TypeScript (99.05%)
JavaScript (0.95%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
674 Stars
139 Commits
82 Forks
13 Watchers
2 Branches
47 Contributors
Updated on Jul 06, 2025
Latest Version
7.2.1
Package Id
@ant-design/colors@7.2.1
Unpacked Size
31.56 kB
Size
7.63 kB
File Count
27
NPM Version
10.8.3
Node Version
22.8.0
Published on
May 20, 2025
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
1
1$ npm install @ant-design/colors 2// or 3$ yarn add @ant-design/colors
1$ npm install @ant-design/colors --save
1import { 2 red, 3 volcano, 4 gold, 5 yellow, 6 lime, 7 green, 8 cyan, 9 blue, 10 geekblue, 11 purple, 12 magenta, 13 grey, 14} from '@ant-design/colors'; 15 16console.log(blue); // ['#E6F4FF', '#BAE0FF', '#91CAFF', '#69B1FF', '#4096FF', '#1677FF', '#0958D9', '#003EB3', '#002C8C', '#001D66'] 17console.log(blue.primary); // '#1677FF'
1import { generate, presetPalettes } from '@ant-design/colors'; 2 3// Generate color palettes by a given color 4const colors = generate('#1890ff'); 5console.log(colors); // ['#E6F7FF', '#BAE7FF', '#91D5FF', ''#69C0FF', '#40A9FF', '#1890FF', '#096DD9', '#0050B3', '#003A8C', '#002766'] 6console.log(presetPalettes); 7/* 8{ 9 red: [...], 10 volcano: [...], 11 orange: [...], 12 gold: [...], 13 yellow: [...], 14 lime: [...], 15 green: [...], 16 cyan: [...], 17 blue: [...], 18 geekblue: [...], 19 purple: [...], 20 magenta: [...], 21} 22*/
1import { generate, presetDarkPalettes } from '@ant-design/colors'; 2 3// Generate dark color palettes by a given color 4const colors = generate('#1890ff', { 5 theme: 'dark', 6 backgroundColor: '#141414', 7}); 8console.log(colors); // ['#111d2c', '#112a45', '#15395b', '#164c7e', '#1765ad', '#177ddc', '#3c9ae8', '#65b7f3', '#8dcff8', '#b7e3fa'] 9console.log(presetDarkPalettes); 10/* 11{ 12 red: [...], 13 volcano: [...], 14 orange: [...], 15 gold: [...], 16 yellow: [...], 17 lime: [...], 18 green: [...], 19 cyan: [...], 20 blue: [...], 21 geekblue: [...], 22 purple: [...], 23 magenta: [...], 24} 25*/
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
0 existing vulnerabilities detected
Reason
SAST tool detected but not run on all commits
Details
Reason
Found 9/29 approved changesets -- score normalized to 3
Reason
1 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
security policy file not detected
Details
Score
Last Scanned on 2025-07-14
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More