Files
element-plus/docs/en-US/component/color.md
jeremywu 8fdf558b04 fix(docs): adding title for components (#4025)
- Remove `type` field.
- Add `title` field
2021-10-25 15:21:08 +08:00

2.1 KiB

title, lang
title lang
Color en-US

Color

Element Plus uses a specific set of palettes to specify colors to provide a consistent look and feel for the products you build.

<style lang="scss"> .demo-color-box { position: relative; border-radius: 4px; padding: 20px; margin: 5px 0; height: 114px; box-sizing: border-box; color: var(--el-color-white); font-size: 14px; .bg-color-sub { width: 100%; height: 40px; left: 0; bottom: 0; position: absolute; .bg-blue-sub-item { width: 11.1111111%; height: 100%; display: inline-block; &:first-child { border-radius: 0 0 0 var(--el-border-radius-base); } } .bg-secondary-sub-item { width: 50%; height: 100%; display: inline-block; &:first-child { border-radius: 0 0 0 var(--el-border-radius-base); } } } } .demo-color-box-lite { color: var(--el-text-color-primary); .value { font-size: 12px; opacity: .69; line-height: 24px; } } .bg-transparent { color: var(--el-text-color-primary); background-image: linear-gradient( 45deg, rgb(249, 249, 250) 25%, transparent 25% ), linear-gradient(135deg, rgb(249, 249, 250) 25%, transparent 25%), linear-gradient(45deg, transparent 75%, rgb(249, 249, 250) 75%), linear-gradient(135deg, transparent 75%, rgb(249, 249, 250) 75%); background-size: 20px 20px; background-position: 0px 0px, 10px 0px, 10px -10px, 0px 10px; } </style>

Main Color

The main color of Element Plus is bright and friendly blue.

Secondary Color

Besides the main color, you need to use different scene colors in different scenarios (for example, dangerous color indicates dangerous operation)

Neutral Color

Neutral colors are for text, background and border colors. You can use different neutral colors to represent the hierarchical structure.