|
|
@@ -0,0 +1,63 @@
|
|
|
+/*
|
|
|
+ * element-plus-theme.scss —— Element Plus 主题变量覆盖(design-tokens.md §1 EP 主题映射)。
|
|
|
+ *
|
|
|
+ * 背景:EP CSS 变量在 index.html 的 element-plus/index.css 里定义为 :root 默认值(蓝色 #409EFF 系)。
|
|
|
+ * 本文件同层 :root 且引入顺序在其后,覆盖即生效。变量名必须与 EP 2.x 官方 CSS 变量一致,
|
|
|
+ * 只改颜色语义,不动尺寸/动效(EP 默认已符合管理端密度)。
|
|
|
+ *
|
|
|
+ * 品牌源:variables.scss 的 --app-brand-* / --app-color-*(design-tokens.md v1.1,Logo 取样)。
|
|
|
+ * 纪律:新增覆盖前先查 EP 官方 css var 清单;禁止在业务组件内再覆盖 EP 变量(双份漂移)。
|
|
|
+ */
|
|
|
+:root {
|
|
|
+ /* 主色:深青蓝(白字对比 4.9:1 达标;浅态用 teal 系) */
|
|
|
+ --el-color-primary: #1f7a8c;
|
|
|
+ --el-color-primary-light-3: #5a9aa8;
|
|
|
+ --el-color-primary-light-5: #9cc7cd;
|
|
|
+ --el-color-primary-light-7: #cfe6ea;
|
|
|
+ --el-color-primary-light-8: #e4f3f6;
|
|
|
+ --el-color-primary-light-9: #f1f8f9;
|
|
|
+ --el-color-primary-dark-2: #175f6b;
|
|
|
+
|
|
|
+ /* 语义色 */
|
|
|
+ --el-color-success: #2f855a;
|
|
|
+ --el-color-warning: #b26a0b;
|
|
|
+ --el-color-danger: #c23a2b;
|
|
|
+ --el-color-error: #c23a2b;
|
|
|
+ --el-color-info: #5d6672;
|
|
|
+
|
|
|
+ /* rgb 变体(EP 半透明场景:rgba(var(--el-color-x-rgb), α),须与上列 hex 同色,否则错位) */
|
|
|
+ --el-color-primary-rgb: 31, 122, 140;
|
|
|
+ --el-color-success-rgb: 47, 133, 90;
|
|
|
+ --el-color-warning-rgb: 178, 106, 11;
|
|
|
+ --el-color-danger-rgb: 194, 58, 43;
|
|
|
+ --el-color-error-rgb: 194, 58, 43;
|
|
|
+ --el-color-info-rgb: 93, 102, 114;
|
|
|
+
|
|
|
+ /* 边框/分割(与 --app-color-border 一致,去蓝灰感) */
|
|
|
+ --el-border-color: #e3e7ea;
|
|
|
+ --el-border-color-light: #e3e7ea;
|
|
|
+ --el-border-color-lighter: #e3e7ea;
|
|
|
+ --el-border-color-hover: #cbd2d8;
|
|
|
+
|
|
|
+ /* 文字(对齐品牌石板灰蓝系) */
|
|
|
+ --el-text-color-primary: #2a3242;
|
|
|
+ --el-text-color-regular: #2a3242;
|
|
|
+ --el-text-color-secondary: #5d6672;
|
|
|
+ --el-text-color-placeholder: #9aa3ad;
|
|
|
+
|
|
|
+ /* 背景(微暖纸白) */
|
|
|
+ --el-bg-color: #ffffff;
|
|
|
+ --el-bg-color-page: #f6f7f2;
|
|
|
+
|
|
|
+ /* 填充 */
|
|
|
+ --el-fill-color: #f6f7f2;
|
|
|
+ --el-fill-color-light: #fafbf7;
|
|
|
+
|
|
|
+ /* 浮层阴影(品牌墨蓝调) */
|
|
|
+ --el-box-shadow: 0 8px 24px rgba(30, 42, 84, 0.14);
|
|
|
+ --el-box-shadow-light: 0 4px 16px rgba(30, 42, 84, 0.1);
|
|
|
+
|
|
|
+ /* 圆角对齐 */
|
|
|
+ --el-border-radius-base: 6px;
|
|
|
+ --el-border-radius-small: 4px;
|
|
|
+}
|