variable.scss 5.5 KB

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