2017-11-06 11:22:02 +00:00
< style >
.demo-color-box {
border-radius: 4px;
padding: 20px;
height: 74px;
box-sizing: border-box;
color: #fff ;
font-size: 14px;
2017-12-03 10:03:06 +00:00
2017-11-06 11:22:02 +00:00
& .value {
font-size: 12px;
opacity: 0.69;
line-height: 24px;
}
}
.demo-color-box-group {
.demo-color-box {
border-radius: 0;
}
.demo-color-box:first-child {
border-radius: 4px 4px 0 0;
}
.demo-color-box:last-child {
border-radius: 0 0 4px 4px;
}
}
.bg-blue {
background-color: #409EFF ;
}
.bg-success {
background-color: #13CE66 ;
}
.bg-warning {
background-color: #f7ba2a ;
}
.bg-danger {
background-color: #ff4949 ;
}
.bg-info {
background-color: #878D99 ;
}
.bg-text-primary {
background-color: #2d2f33 ;
}
.bg-text-regular {
background-color: #5a5e66 ;
}
.bg-text-secondary {
background-color: #878d99 ;
}
.bg-text-placeholder {
background-color: #b4bccc ;
}
.bg-border-base {
background-color: #d8dce5 ;
}
.bg-border-light {
background-color: #dfe4ed ;
}
.bg-border-lighter {
background-color: #e6ebf5 ;
}
.bg-border-extra-light {
background-color: #edf2fc ;
}
[class*=" bg-border-"] {
color: #5a5e66 ;
}
< / style >
## Color
2017-11-08 06:19:52 +00:00
Element utiliza un conjunto de paletas para especificar colores, y así, proporcionar una apariencia y sensación coherente para los productos que construye.
2017-11-06 11:22:02 +00:00
2017-11-08 06:19:52 +00:00
### Color principal
2017-11-06 11:22:02 +00:00
2017-11-08 06:19:52 +00:00
El color principal de Element es el azul brillante y amigable.
2017-11-06 11:22:02 +00:00
< el-row :gutter = "12" >
< el-col :span = "6" >
2017-11-08 06:19:52 +00:00
< div class = "demo-color-box bg-blue" > Azul< div class = "value" > #409EFF< / div > < / div >
2017-11-06 11:22:02 +00:00
< / el-col >
< / el-row >
2017-11-08 06:19:52 +00:00
### Color secundario
2017-11-06 11:22:02 +00:00
2017-12-03 10:03:06 +00:00
Además del color principal, se necesitan utilizar distintos colores para diferentes escenarios (por ejemplo, el color en tono rojo indica una operación peligrosa).
2017-11-06 11:22:02 +00:00
< el-row :gutter = "12" >
< el-col :span = "6" >
2017-11-08 06:19:52 +00:00
< div class = "demo-color-box bg-success" > Éxito< div class = "value" > #67C23A< / div > < / div >
2017-11-06 11:22:02 +00:00
< / el-col >
< el-col :span = "6" >
2017-11-08 06:19:52 +00:00
< div class = "demo-color-box bg-warning" > Precaución< div class = "value" > #EB9E05< / div > < / div >
2017-11-06 11:22:02 +00:00
< / el-col >
< el-col :span = "6" >
2017-11-08 06:19:52 +00:00
< div class = "demo-color-box bg-danger" > Peligro< div class = "value" > #FA5555< / div > < / div >
2017-11-06 11:22:02 +00:00
< / el-col >
< el-col :span = "6" >
< div class = "demo-color-box bg-info" > Info< div class = "value" > #878D99< / div > < / div >
< / el-col >
< / el-row >
2017-11-08 06:19:52 +00:00
### Color neutro
2017-11-06 11:22:02 +00:00
2017-12-03 10:03:06 +00:00
Los colores neutrales son para texto, fondos y bordes. Puede usar diferentes colores neutrales para representar una estructura jeráquica.
2017-11-06 11:22:02 +00:00
< el-row :gutter = "12" >
< el-col :span = "6" >
< div class = "demo-color-box-group" >
2017-11-08 06:19:52 +00:00
< div class = "demo-color-box bg-text-primary" > Texto primario< div class = "value" > #2D2F33< / div > < / div >
< div class = "demo-color-box bg-text-regular" > Texto regular< div class = "value" > #5A5E66< / div > < / div >
< div class = "demo-color-box bg-text-secondary" > Texto secundario< div class = "value" > #878D99< / div > < / div >
< div class = "demo-color-box bg-text-placeholder" > Texto de placeholder< div class = "value" > #B4BCCC< / div > < / div >
2017-11-06 11:22:02 +00:00
< / div >
< / el-col >
< el-col :span = "6" >
< div class = "demo-color-box-group" >
2017-11-08 06:19:52 +00:00
< div class = "demo-color-box bg-border-base" > Borde base< div class = "value" > #D8DCE5< / div > < / div >
< div class = "demo-color-box bg-border-light" > Borde ligero< div class = "value" > #DFE4ED< / div > < / div >
< div class = "demo-color-box bg-border-lighter" > Borde claro< div class = "value" > #E6EBF5< / div > < / div >
< div class = "demo-color-box bg-border-extra-light" > Borde extra claro< div class = "value" > #EDF2FC< / div > < / div >
2017-11-06 11:22:02 +00:00
< / div >
< / el-col >
< / el-row >