_var.scss 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. @import './mixins';
  2. //颜色 ,渐变背景60%
  3. $yellow: #ffc300; //ss-黄
  4. $orange: #ff6000; //ss-橘
  5. $red: #ff3000; //ss-红
  6. $pink: #e03997;
  7. $mauve: #b745cb;
  8. $purple: #652abf; //rgba(101, 42, 191, 1); // ss-紫
  9. $blue: #132b85;
  10. $cyan: #37c0fe;
  11. $green: #2aae67; //ss-绿
  12. $olive: #8dc63f;
  13. $grey: #8799a3;
  14. $brown: #a5673f;
  15. $black: #484848; //ss-黑
  16. $golden: #e9b461; //ss-金
  17. $colors: ();
  18. $colors: map-merge(
  19. (
  20. 'yellow': $yellow,
  21. 'orange': $orange,
  22. 'red': $red,
  23. 'pink': $pink,
  24. 'mauve': $mauve,
  25. 'purple': $purple,
  26. 'violet': $purple,
  27. 'blue': $blue,
  28. 'cyan': $cyan,
  29. 'green': $green,
  30. 'olive': $olive,
  31. 'grey': $grey,
  32. 'brown': $brown,
  33. 'black': $black,
  34. 'golden': $golden,
  35. ),
  36. $colors
  37. );
  38. //灰度
  39. $bg-page: #f6f6f6;
  40. $white: #ffffff;
  41. $gray-f: #f8f9fa;
  42. $gray-e: #eeeeee;
  43. $gray-d: #dddddd;
  44. $gray-c: #cccccc;
  45. $gray-b: #bbbbbb;
  46. $gray-a: #aaaaaa;
  47. $dark-9: #999999;
  48. $dark-8: #888888;
  49. $dark-7: #777777;
  50. $dark-6: #666666;
  51. $dark-5: #555555;
  52. $dark-4: #484848; //ss-黑
  53. $dark-3: #333333;
  54. $dark-2: #222222;
  55. $dark-1: #111111;
  56. $black: #000000;
  57. $grays: ();
  58. $grays: map-merge(
  59. (
  60. 'white': $white,
  61. 'gray-f': $gray-f,
  62. 'gray-e': $gray-e,
  63. 'gray-d': $gray-d,
  64. 'gray-c': $gray-c,
  65. 'gray-b': $gray-b,
  66. 'gray-a': $gray-a,
  67. 'gray': $gray-a,
  68. ),
  69. $grays
  70. );
  71. $darks: ();
  72. $darks: map-merge(
  73. (
  74. 'dark-9': $dark-9,
  75. 'dark-8': $dark-8,
  76. 'dark-7': $dark-7,
  77. 'dark-6': $dark-6,
  78. 'dark-5': $dark-5,
  79. 'dark-4': $dark-4,
  80. 'dark-3': $dark-3,
  81. 'dark-2': $dark-2,
  82. 'dark-1': $dark-1,
  83. 'black': $black,
  84. ),
  85. $darks
  86. );
  87. // 边框
  88. $border-width: 1rpx !default; // 边框大小
  89. $border-color: $gray-d !default; // 边框颜色
  90. // 圆角
  91. $radius: 10rpx !default; // 默认圆角大小
  92. $radius-lg: 40rpx !default; // 大圆角
  93. $radius-sm: 6rpx !default; // 小圆角
  94. $round-pill: 1000rpx !default; // 半圆
  95. // 动画过渡
  96. $transition-base: all 0.2s ease-in-out !default; // 默认过渡
  97. $transition-base-out: all 0.04s ease-in-out !default; // 进场过渡
  98. $transition-fade: opacity 0.15s linear !default; // 透明过渡
  99. $transition-collapse: height 0.35s ease !default; // 收缩过渡
  100. // 间距
  101. $spacer: 20rpx !default;
  102. $spacers: () !default;
  103. $spacers: map-merge(
  104. (
  105. 0: 0,
  106. 1: $spacer * 0.25,
  107. 2: $spacer * 0.5,
  108. 3: $spacer,
  109. 4: $spacer * 1.5,
  110. 5: $spacer * 3,
  111. 6: $spacer * 5,
  112. ),
  113. $spacers
  114. );
  115. // 字形
  116. $font-weight-lighter: lighter !default;
  117. $font-weight-light: 300 !default;
  118. $font-weight-normal: 400 !default;
  119. $font-weight-bold: 700 !default;
  120. $font-weight-bolder: 900 !default;
  121. $fontsize: () !default;
  122. $fontsize: map-merge(
  123. (
  124. xs: 20,
  125. sm: 24,
  126. df: 28,
  127. lg: 32,
  128. xl: 36,
  129. xxl: 44,
  130. sl: 80,
  131. xsl: 120,
  132. ),
  133. $fontsize
  134. );
  135. // 段落
  136. $line-height-base: 1.5 !default;
  137. $line-height-lg: 2 !default;
  138. $line-height-sm: 1.25 !default;
  139. // 图标
  140. $iconsize: () !default;
  141. $iconsize: map-merge(
  142. (
  143. xs: 0.5,
  144. sm: 0.75,
  145. df: 1,
  146. lg: 1.25,
  147. xl: 1.5,
  148. xxl: 2,
  149. sl: 6,
  150. xsl: 10,
  151. ),
  152. $iconsize
  153. );