Ant Design 的基础色板共计 120 个颜色,
包含 12 个主色以及衍生色。这些颜色基本可以满足中后台设计中对于颜色的需求
- Github https://github.com/ant-design/ant-design-colors
- 系统级色彩体系和产品级色彩体系 https://ant.design/docs/spec/colors-cn
Ant Design 色板生成算法演进之路 https://zhuanlan.zhihu.com/p/32422584
```javascript import { red, volcano, gold, yellow, lime, green, cyan, blue, geekblue, purple, magenta, grey, presetPalettes, // 预设颜色 generate, // 生成一个系列颜色 presetPrimaryColors, // 默认色 presetDarkPalettes, // 暗色 } from ‘@ant-design/colors’;
const allColors = [“blue”,”cyan”,”geekblue”,”generate”,”gold”,”gray”,”green”,”grey”,”lime”,”magenta”,”orange”,”presetDarkPalettes”,”presetPalettes”,”presetPrimaryColors”,”purple”,”red”,”volcano”,”yellow”]
const useColors = [‘red’, ‘volcano’, ‘orange’, ‘gold’, ‘yellow’, ‘lime’, ‘green’, ‘cyan’, ‘blue’, ‘geekblue’, ‘purple’, ‘magenta’, ‘grey’];
const colorSource = [ { “label”: “薄暮”, “value”: “red” }, { “label”: “火山”, “value”: “volcano” }, { “label”: “日暮”, “value”: “orange” }, { “label”: “金盏花”, “value”: “gold” }, { “label”: “日出”, “value”: “yellow” }, { “label”: “青柠”, “value”: “lime” }, { “label”: “极光绿”, “value”: “green” }, { “label”: “明青”, “value”: “cyan” }, { “label”: “佛晓蓝”, “value”: “blue” }, { “label”: “极客蓝”, “value”: “geekblue” }, { “label”: “酱紫”, “value”: “purple” }, { “label”: “法式洋红”, “value”: “magenta” }, { “label”: “中性色”, “value”: “grey” } ] ```
核心色彩
主色调蓝色
核心颜色的色彩饱和度
- 高饱和度
- 低明度
- 有部分绿色参与,没有红色参与
色彩的阶梯,自上而下的阶梯
- 核心色阶
- 辅助色阶
- 灰度色阶