variables.scss 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. /**
  2. * @description 全局主题变量配置
  3. */
  4. //颜色配置
  5. $base-color-white: #ffffff;
  6. $base-color-black: rgba(0, 0, 0, 0.75);
  7. $base-color-grey: rgba(0, 0, 0, 0.65);
  8. $base-color-primary: #4e88f3;
  9. $base-color-success: #13ce66;
  10. $base-color-warning: #e6a23c;
  11. $base-color-danger: #fd4e4e;
  12. $base-color-error: #fd4e4e;
  13. $base-background-color: #f6f8f9;
  14. $base-color-text-primary: #303133;
  15. $base-color-text-regular: #606266;
  16. $base-color-text-secondary: #909399;
  17. $base-color-text-placeholder: #c0c4cc;
  18. $base-border-color-base: #dcdfe6;
  19. $base-border-color-light: #e4e7ed;
  20. $base-border-color-lighter: #ebeef5;
  21. $base-border-color-extra-light: #f2f6fc;
  22. //默认层级
  23. $base-z-index: 1999;
  24. //菜单背景色
  25. $base-menu-background: #282c34;
  26. //菜单文字颜色
  27. $base-menu-color: hsla(0, 0%, 100%, 0.95);
  28. //菜单选中文字颜色
  29. $base-menu-color-active: hsla(0, 0%, 100%, 0.95);
  30. //菜单选中背景色
  31. $base-menu-active: $base-color-primary;
  32. //标题颜色
  33. $base-title-color: #fff;
  34. //最大宽度
  35. $base-main-width: 1279px;
  36. //圆角
  37. $base-border-radius: 5px;
  38. //边框颜色
  39. $base-border-color: #dcdfe6;
  40. //输入框高度
  41. $base-input-height: 32px;
  42. //默认margin
  43. $base-margin: 20px;
  44. //默认padding
  45. $base-padding: 20px;
  46. //默认阴影
  47. $base-box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
  48. //横向top-bar、logo、一级菜单的高度
  49. $base-header-height: 60px;
  50. //纵向、综合、分栏logo的高度
  51. $base-logo-height: 60px;
  52. //顶部nav-bar的高度
  53. $base-nav-height: 60px;
  54. //顶部标签页tabs-bar的高度
  55. $base-tabs-height: 50px;
  56. //顶部标签页tabs-bar中每一个item的高度
  57. $base-tab-item-height: 34px;
  58. //菜单li标签的高度
  59. $base-menu-item-height: 50px;
  60. //纵向左侧导航未折叠的宽度
  61. $base-left-menu-width: 266px;
  62. //纵向左侧导航已折叠的宽度
  63. $base-left-menu-width-min: 64px;
  64. //纵向左侧导航已折叠右侧内容的宽度
  65. $base-right-content-width-min: calc(100% - #{$base-left-menu-width-min});
  66. //默认动画
  67. $base-transition:
  68. all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1),
  69. border 0s,
  70. color 0.1s,
  71. font-size 0s;
  72. //vite不支持export,vab样式重写
  73. $vab-color-primary: $base-color-primary;
  74. $vab-color-primary-light-1: rgba($base-color-primary, 0.9);
  75. $vab-color-primary-light-2: rgba($base-color-primary, 0.8);
  76. $vab-color-primary-light-3: rgba($base-color-primary, 0.7);
  77. $vab-color-primary-light-4: rgba($base-color-primary, 0.6);
  78. $vab-color-primary-light-5: rgba($base-color-primary, 0.5);
  79. $vab-color-primary-light-6: rgba($base-color-primary, 0.4);
  80. $vab-color-primary-light-7: rgba($base-color-primary, 0.3);
  81. $vab-color-primary-light-8: rgba($base-color-primary, 0.2);
  82. $vab-color-primary-light-9: rgba($base-color-primary, 0.1);
  83. $vab-color-success: $base-color-success;
  84. $vab-color-success-light: rgba($base-color-success, 0.2);
  85. $vab-color-success-lighter: rgba($base-color-success, 0.1);
  86. $vab-color-success-light-1: rgba($base-color-success, 0.9);
  87. $vab-color-success-light-2: rgba($base-color-success, 0.8);
  88. $vab-color-success-light-3: rgba($base-color-success, 0.7);
  89. $vab-color-success-light-4: rgba($base-color-success, 0.6);
  90. $vab-color-success-light-5: rgba($base-color-success, 0.5);
  91. $vab-color-success-light-6: rgba($base-color-success, 0.4);
  92. $vab-color-success-light-7: rgba($base-color-success, 0.3);
  93. $vab-color-success-light-8: rgba($base-color-success, 0.2);
  94. $vab-color-success-light-9: rgba($base-color-success, 0.1);
  95. $vab-color-warning: $base-color-warning;
  96. $vab-color-warning-light: rgba($base-color-warning, 0.2);
  97. $vab-color-warning-lighter: rgba($base-color-warning, 0.1);
  98. $vab-color-warning-light-1: rgba($base-color-warning, 0.9);
  99. $vab-color-warning-light-2: rgba($base-color-warning, 0.8);
  100. $vab-color-warning-light-3: rgba($base-color-warning, 0.7);
  101. $vab-color-warning-light-4: rgba($base-color-warning, 0.6);
  102. $vab-color-warning-light-5: rgba($base-color-warning, 0.5);
  103. $vab-color-warning-light-6: rgba($base-color-warning, 0.4);
  104. $vab-color-warning-light-7: rgba($base-color-warning, 0.3);
  105. $vab-color-warning-light-8: rgba($base-color-warning, 0.2);
  106. $vab-color-warning-light-9: rgba($base-color-warning, 0.1);
  107. $vab-color-danger: $base-color-danger;
  108. $vab-color-danger-light: rgba($base-color-danger, 0.2);
  109. $vab-color-danger-lighter: rgba($base-color-danger, 0.1);
  110. $vab-color-danger-light-1: rgba($base-color-danger, 0.9);
  111. $vab-color-danger-light-2: rgba($base-color-danger, 0.8);
  112. $vab-color-danger-light-3: rgba($base-color-danger, 0.7);
  113. $vab-color-danger-light-4: rgba($base-color-danger, 0.6);
  114. $vab-color-danger-light-5: rgba($base-color-danger, 0.5);
  115. $vab-color-danger-light-6: rgba($base-color-danger, 0.4);
  116. $vab-color-danger-light-7: rgba($base-color-danger, 0.3);
  117. $vab-color-danger-light-8: rgba($base-color-danger, 0.2);
  118. $vab-color-danger-light-9: rgba($base-color-danger, 0.1);
  119. $vab-color-error: $base-color-error;
  120. $vab-color-error-light: rgba($base-color-error, 0.2);
  121. $vab-color-error-lighter: rgba($base-color-error, 0.1);
  122. $vab-color-error-light-1: rgba($base-color-error, 0.9);
  123. $vab-color-error-light-2: rgba($base-color-error, 0.8);
  124. $vab-color-error-light-3: rgba($base-color-error, 0.7);
  125. $vab-color-error-light-4: rgba($base-color-error, 0.6);
  126. $vab-color-error-light-5: rgba($base-color-error, 0.5);
  127. $vab-color-error-light-6: rgba($base-color-error, 0.4);
  128. $vab-color-error-light-7: rgba($base-color-error, 0.3);
  129. $vab-color-error-light-8: rgba($base-color-error, 0.2);
  130. $vab-color-error-light-9: rgba($base-color-error, 0.1);
  131. $vab-color-info: $base-color-text-secondary;
  132. $vab-color-info-light: rgba($base-color-text-secondary, 0.2);
  133. $vab-color-info-lighter: rgba($base-color-text-secondary, 0.1);