ant-design-palettes

WebJar for ant-design-palettes

License

License

MIT
Categories

Categories

Ant Build Tools
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

ant-design-palettes
Last Version

Last Version

1.1.3
Release Date

Release Date

Type

Type

jar
Description

Description

ant-design-palettes
WebJar for ant-design-palettes
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/ant-design/ant-design-palettes

Download ant-design-palettes

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/ant-design-palettes/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>ant-design-palettes</artifactId>
    <version>1.1.3</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/ant-design-palettes/
implementation 'org.webjars.npm:ant-design-palettes:1.1.3'
// https://jarcasting.com/artifacts/org.webjars.npm/ant-design-palettes/
implementation ("org.webjars.npm:ant-design-palettes:1.1.3")
'org.webjars.npm:ant-design-palettes:jar:1.1.3'
<dependency org="org.webjars.npm" name="ant-design-palettes" rev="1.1.3">
  <artifact name="ant-design-palettes" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='ant-design-palettes', version='1.1.3')
)
libraryDependencies += "org.webjars.npm" % "ant-design-palettes" % "1.1.3"
[org.webjars.npm/ant-design-palettes "1.1.3"]

Dependencies

compile (1)

Group / Artifact Type Version
org.webjars.npm : tinycolor2 jar [1.4.1,2)

Project Modules

There are no modules declared in this project.

Ant Design Colors

🎨 Color palettes calculator of Ant Design.

Travis Test coverage npm package NPM downloads

Dependencies DevDependencies Greenkeeper badge

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); // ['#E6F7FF', '#BAE7FF', '#91D5FF', ''#69C0FF', '#40A9FF', '#1890FF', '#096DD9', '#0050B3', '#003A8C', '#002766']
console.log(blue.primary); // '#1890FF'
import { generate, presetPalettes } from '@ant-design/colors';

// Generate color palettes by a given color
const colors = generate('#1890ff');
console.log(colors); // ['#E6F7FF', '#BAE7FF', '#91D5FF', ''#69C0FF', '#40A9FF', '#1890FF', '#096DD9', '#0050B3', '#003A8C', '#002766']
console.log(presetPalettes);
/*
{
  red: [...],
  volcano: [...],
  orange: [...],
  gold: [...],
  yellow: [...],
  lime: [...],
  green: [...],
  cyan: [...],
  blue: [...],
  geekblue: [...],
  purple: [...],
  magenta: [...],
}
*/
import { generate, presetDarkPalettes } from '@ant-design/colors';

// Generate dark color palettes by a given color
const colors = generate('#1890ff', {
  theme: 'dark',
  backgroundColor: '#141414'
});
console.log(colors); // ["#111d2c", "#112a45", "#15395b", "#164c7e", "#1765ad", "#177ddc", "#3993dc", "#65b7f3", "#8bcbf3", "#b2dcf3"]
console.log(presetDarkPalettes);
/*
{
  red: [...],
  volcano: [...],
  orange: [...],
  gold: [...],
  yellow: [...],
  lime: [...],
  green: [...],
  cyan: [...],
  blue: [...],
  geekblue: [...],
  purple: [...],
  magenta: [...],
}
*/

Articles

org.webjars.npm

Ant Design Team

A UI Design Language

Versions

Version
1.1.3