variable.scss 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. $primary-color: #e1251b !default;
  2. $normal-color: #848484 !default;
  3. $link-color: $primary-color !default;
  4. $link-hover-color: mix($link-color, #000, 80%) !default;
  5. $title-color: #323232 !default;
  6. $text-color: #646464 !default;
  7. $light-color: #f6f6f6 !default;
  8. $dark-color: #dadada !default;
  9. // jdl 主要色值
  10. // ---- 主色调color ----
  11. $primary-color-jd-red: $primary-color !default; // 京东红,主要用于对外C端产品。
  12. $primary-color-jc-blue: #3c6ef0 !default; // 京牛蓝,主要用于对内B端产品。
  13. // ---- 辅助color ----
  14. $assist-color-green: #26a872 !default; // 常用于成功信息/成功icon,或者卡片标签
  15. $assist-color-orange: #ff6e4c !default; // 常用于警告信息/警告icon,或者卡片标签
  16. $assist-color-yellow: #ffba12 !default; // 常用于提示信息/提示icon,或者卡片标签
  17. $assist-color-blue: #2ca6e1 !default; // 冷链蓝,主要用于京东冷链相关产品,也可以用于卡片标签或页面其他元素
  18. $assist-color-purple: #6236ff !default;
  19. $assist-color-gray: #7c7a8a !default; // 常用于卡片标签或页面其他元素
  20. $assist-color-light-gray: #d9d9d9 !default; // 常用于弱标签背景色
  21. // ---- 文本color ----
  22. $text-black-1: #323232 !default; // 重要文字颜色,用于Narbar等大标题
  23. $text-black-2: #646464 !default; // 普通文字颜色,用于段落、表单标题、列表内容等
  24. $text-black-3: #969696 !default; // 辅助文字,用于次要信息
  25. $text-black-4: #c8c8c8 !default; // 一般文字,用于提示性文字
  26. $text-jd-red: $primary-color !default; // 用于报错文字颜色
  27. // ---- 背景/分割线color ----
  28. $body-background-color: #f7f7f7 !default; // 用于页面整体背景
  29. $split-line-color: #e6e6e6 !default; // 用于分割线,按钮描边,1px
  30. $disabled-bg-color: #dcdcdc !default; // 用于按钮置灰
  31. // ---- 常用字号 ----
  32. $font-size-title-large: 20px; // 用于标题类文字
  33. $font-size-title-normal: 18px; // 用于全局操作类文字
  34. $font-size-body-large: 17px; // 常用字号,用于需要强调的文字信息
  35. $font-size-body-normal: 16px; // 最常用的正文字号
  36. $font-size-body-small: 14px; // 常用字号,用于较弱的文字信息
  37. $font-size-display-large: 14px; // 常用于辅助说明文字
  38. $font-size-display-normal: 13px; // 常用字号,用于解释信息
  39. $font-size-display-small: 12px; // 常用于标签信息展示
  40. $disabled-bg-1: #f1f1f1;
  41. $disabled-border: #dedede;
  42. // ---- base ----
  43. $body-background: #f6f6f6 !default;
  44. $mask-bg: rgba(0, 0, 0, 0.5) !default;
  45. $font-family: PingHei, 'Lucida Grande', 'Lucida Sans Unicode', STHeiti, Helvetica, Arial, Verdana, 'sans-serif', 'PingHei-light', SimHei, 'Droid Sans' !default;
  46. $font-size-base: 14px !default;
  47. $font-size-small: 12px !default;
  48. $font-size-large: 16px !default;
  49. $line-height-base: 1.5 !default;
  50. $border-radius-base: 8px !default;
  51. $border-radius-small: 3px !default;
  52. $border-radius-large: 50px !default;
  53. // ---- Animation ----
  54. $animation-duration: 0.25s !default;
  55. $transition-duration: 0.2s !default;
  56. $transition-duration-fast: 0.2s !default;
  57. $transition-duration-slow: 0.4s !default;
  58. $animation-timing-fun: cubic-bezier(0.55, 0.085, 0.68, 0.53) !default;
  59. $ease-in-out: cubic-bezier(0.445, 0.05, 0.55, 0.95);
  60. $ease-out: cubic-bezier(0.895, 0.03, 0.685, 0.22);
  61. // ---- Border color ----
  62. $border-color-base: $dark-color !default;
  63. $border-color-dark: #ababab !default;
  64. $border-width-base: 1px !default;
  65. $border-style-base: solid !default;
  66. $border-color-active: $primary-color !default;
  67. // ---- Disabled ----
  68. $disabled-color: #f6f6f6 !default;
  69. $disabled-bg: #dadada !default;
  70. $disabled-primary-bg: #eb8a7e !default;
  71. // ---- Shadow ----
  72. $shadow-color: rgba(0, 0, 0, 0.15) !default;
  73. $shadow-up: 0 -2px 8px $shadow-color !default;
  74. $shadow-down: 0 2px 8px $shadow-color !default;
  75. $shadow-left: -2px 0 8px $shadow-color !default;
  76. $shadow-right: 2px 0 8px $shadow-color !default;
  77. $shadow-base: $shadow-down !default;
  78. // ---- Buttons ----
  79. $btn-font-weight: normal !default;
  80. $btn-border-radius-base: 4px !default;
  81. $btn-border-radius-small: 3px !default;
  82. $btn-border-radius-large: 50px !default;
  83. $btn-height-small: 28px !default;
  84. $btn-height-middle: 40px !default;
  85. $btn-height-big: 48px !default;
  86. $btn-icon-height-small: 12px !default;
  87. $btn-icon-height-big: 16px !default;
  88. $btn-menu-icon-height: 20px !default;
  89. $btn-menu-height: 50px !default;
  90. $btn-primary-color: #fff !default;
  91. $btn-primary-bg: $primary-color !default;
  92. $btn-gradient-color: #fff !default;
  93. $btn-gradient-start-color: #ff4f18;
  94. $btn-gradient-end-color: #f20000;
  95. $btn-gradient-bg: $primary-color-jd-red !default;
  96. $btn-gradient-active-bg: linear-gradient(315deg, darken($btn-gradient-start-color, 10%) 0%, darken($btn-gradient-end-color, 10%) 100%) !default;
  97. $btn-default-color: $normal-color !default;
  98. $btn-default-bg: #fff !default;
  99. $btn-default-border: $border-color-dark !default;
  100. $btn-active-color: #fff !default;
  101. $btn-active-bg: $primary-color !default;
  102. $btn-active-border: 􏰅􏴦􏵘􏵑􏱱􏵘􏴦$primary-color !default;
  103. $btn-disable-color: $disabled-bg-color !default;
  104. $btn-disable-bg: $disabled-bg-color !default;
  105. $btn-disable-border: $disabled-color !default;
  106. $btn-icon-margin: 5px;
  107. $btn-label-light-bg: rgba(240, 37, 15, 0.05);
  108. $font-size-big: 18px;
  109. $font-size-middle: 15px;
  110. $font-size-small: 13px;
  111. // ---- z-index ----
  112. $zindex-mask: 9998 !default;
  113. $zindex-actionsheet: 10001 !default;
  114. $zindex-dialog: 10000 !default;
  115. $zindex-picker: 10050 !default;
  116. // ---- Assets path ----
  117. $assetsPath: '../../assets' !default;
  118. // ---- Stepper ----
  119. $stepper-color: #333 !default;
  120. $stepperbar-width: 11px !default;
  121. $stepperbar-color: #333 !default;
  122. // ---- Tag ----
  123. $tag-height-small: 20px !default;
  124. $tag-height-middle: 22px !default;
  125. $tag-height-big: 24px !default;
  126. $tag-border-radius: 2px !default;
  127. $tag-border-radius-circle: 10px !default;
  128. // ---- Badge ----
  129. $badge-font-size: 11px !default;
  130. $badge-font-color: #fff !default;
  131. // ---- ActionSheet ----
  132. $as-border-color: rgba(230, 230, 230, 1) !default;
  133. $as-disable-color: $text-black-4 !default;
  134. $as-base-color: $text-black-1 !default;
  135. $as-desc-color: $text-black-3 !default;
  136. $as-confirm-btn-bg: $primary-color-jd-red;
  137. $as-confirm-btn-color: #fff !default;
  138. $as-base-bg-color: #fff !default;
  139. $as-base-font-size: 15px !default;
  140. $as-desc-font-size: 14px !default;