Ant Design Colors
Install
$ npm install @ant-design/colors
// or
$ yarn add @ant-design/colors
Usage
$ npm install @ant-design/colors --save
import {
red,
volcano,
gold,
yellow,
lime,
green,
cyan,
blue,
geekblue,
purple,
magenta,
grey,
} from '@ant-design/colors';
console.log(blue);
console.log(blue.primary);
import { generate, presetPalettes } from '@ant-design/colors';
const colors = generate('#1890ff');
console.log(colors);
console.log(presetPalettes);
import { generate, presetDarkPalettes } from '@ant-design/colors';
const colors = generate('#1890ff', {
theme: 'dark',
backgroundColor: '#141414',
});
console.log(colors);
console.log(presetDarkPalettes);
Articles