|
@@ -0,0 +1,157 @@
|
|
|
+<style>
|
|
|
+ .demo-color-box {
|
|
|
+ border-radius: 4px;
|
|
|
+ padding: 20px;
|
|
|
+ height: 74px;
|
|
|
+ box-sizing: border-box;
|
|
|
+ color: #fff;
|
|
|
+ font-size: 14px;
|
|
|
+
|
|
|
+ & .value {
|
|
|
+ font-size: 12px;
|
|
|
+ opacity: 0.69;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .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-light {
|
|
|
+ background-color: #58b7ff;
|
|
|
+ }
|
|
|
+ .bg-blue,
|
|
|
+ .bg-info {
|
|
|
+ background-color: #20a0ff;
|
|
|
+ }
|
|
|
+ .bg-blue-dark {
|
|
|
+ background-color: #1d8ce0;
|
|
|
+ }
|
|
|
+
|
|
|
+ .bg-success {
|
|
|
+ background-color: #13CE66;
|
|
|
+ }
|
|
|
+ .bg-warning {
|
|
|
+ background-color: #f7ba2a;
|
|
|
+ }
|
|
|
+ .bg-danger {
|
|
|
+ background-color: #ff4949;
|
|
|
+ }
|
|
|
+
|
|
|
+ .bg-black {
|
|
|
+ background-color: #1f2d3d;
|
|
|
+ }
|
|
|
+ .bg-black-light {
|
|
|
+ background-color: #324057;
|
|
|
+ }
|
|
|
+ .bg-black-lighter {
|
|
|
+ background-color: #475669;
|
|
|
+ }
|
|
|
+
|
|
|
+ .bg-silver {
|
|
|
+ background-color: #8492a6;
|
|
|
+ }
|
|
|
+ .bg-silver-light {
|
|
|
+ background-color: #99a9bf;
|
|
|
+ }
|
|
|
+ .bg-silver-lighter {
|
|
|
+ background-color: #c0ccda;
|
|
|
+ }
|
|
|
+
|
|
|
+ .bg-gray {
|
|
|
+ background-color: #d3dce6;
|
|
|
+ }
|
|
|
+ .bg-gray-light {
|
|
|
+ background-color: #e5e9f2;
|
|
|
+ }
|
|
|
+ .bg-gray-lighter {
|
|
|
+ background-color: #eff2f7;
|
|
|
+ }
|
|
|
+
|
|
|
+ .bg-white-dark {
|
|
|
+ background-color: #f9fafc;
|
|
|
+ }
|
|
|
+
|
|
|
+ .color-gray {
|
|
|
+ color: #5e6d82;
|
|
|
+ }
|
|
|
+</style>
|
|
|
+
|
|
|
+## Color 色彩
|
|
|
+
|
|
|
+Element 为了避免视觉传达差异,使用一套特定的调色板来规定颜色,为你所搭建的产品提供一致的外观视觉感受。
|
|
|
+
|
|
|
+### 主色
|
|
|
+
|
|
|
+Element 主要品牌颜色是鲜艳、友好的蓝色。
|
|
|
+
|
|
|
+<el-row :gutter="12">
|
|
|
+ <el-col :span="8">
|
|
|
+ <div class="demo-color-box bg-blue-light">Light Blue<div class="value">#58B7FF</div></div>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <div class="demo-color-box bg-blue">Blue<div class="value">#20A0FF</div></div>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <div class="demo-color-box bg-blue-dark">Dark Blue<div class="value">#1D8CE0</div></div>
|
|
|
+ </el-col>
|
|
|
+</el-row>
|
|
|
+
|
|
|
+### 辅助色
|
|
|
+
|
|
|
+除了主色外的场景色,需要在不同的场景中使用(例如危险色表示危险的操作)。每种颜色都有较浅和较深两种。
|
|
|
+
|
|
|
+<el-row :gutter="12">
|
|
|
+ <el-col :span="6">
|
|
|
+ <div class="demo-color-box bg-info">Blue<div class="value">#20A0FF</div></div>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="6">
|
|
|
+ <div class="demo-color-box bg-success">Success<div class="value">#13CE66</div></div>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="6">
|
|
|
+ <div class="demo-color-box bg-warning">Warning<div class="value">#F7BA2A</div></div>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="6">
|
|
|
+ <div class="demo-color-box bg-danger">Danger<div class="value">#ff4949</div></div>
|
|
|
+ </el-col>
|
|
|
+</el-row>
|
|
|
+
|
|
|
+### 中性色
|
|
|
+
|
|
|
+中性色用于文本、背景和边框颜色。通过运用不同的中性色,来表现层次结构。
|
|
|
+
|
|
|
+<el-row :gutter="12">
|
|
|
+ <el-col :span="6">
|
|
|
+ <div class="demo-color-box-group">
|
|
|
+ <div class="demo-color-box bg-black">Black<div class="value">#1f2d3d</div></div>
|
|
|
+ <div class="demo-color-box bg-black-light">Light Black<div class="value">#324057</div></div>
|
|
|
+ <div class="demo-color-box bg-black-lighter">Extra Light Black<div class="value">#475669</div></div>
|
|
|
+ </div>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="6">
|
|
|
+ <div class="demo-color-box-group">
|
|
|
+ <div class="demo-color-box bg-silver">Silver<div class="value">#8492a6</div></div>
|
|
|
+ <div class="demo-color-box bg-silver-light">Light Silver<div class="value">#99a9bf</div></div>
|
|
|
+ <div class="demo-color-box bg-silver-lighter">Extra Light Silver<div class="value">#c0ccda</div></div>
|
|
|
+ </div>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="6">
|
|
|
+ <div class="demo-color-box-group">
|
|
|
+ <div class="demo-color-box color-gray bg-gray">Gray<div class="value">#d3dce6</div></div>
|
|
|
+ <div class="demo-color-box color-gray bg-gray-light">Light Gray<div class="value">#e5e9f2</div></div>
|
|
|
+ <div class="demo-color-box color-gray bg-gray-lighter">Extra Light Gray<div class="value">#eff2f7</div></div>
|
|
|
+ </div>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="6">
|
|
|
+ <div class="demo-color-box-group" style="border: 1px solid #e0e6ed;border-radius: 4px;">
|
|
|
+ <div class="demo-color-box color-gray bg-white">Dark White<div class="value">#F9FAFC</div></div>
|
|
|
+ <div class="demo-color-box color-gray bg-white-dark">White<div class="value">#FFFFFF</div></div>
|
|
|
+ </div>
|
|
|
+ </el-col>
|
|
|
+</el-row>
|