@timus-networks/theme 2.2.2 → 2.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (275) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/module.mjs +9 -2
  3. package/dist/runtime/components/development/example.dialog.vue +4 -5
  4. package/dist/runtime/components/development/example.message.vue +1 -1
  5. package/dist/runtime/components/development/example.popover.vue +3 -3
  6. package/dist/runtime/components/development/example.table.vue +1 -1
  7. package/dist/runtime/public/scss/_buttons.scss +159 -0
  8. package/dist/runtime/public/scss/_colors.scss +188 -0
  9. package/dist/runtime/public/scss/_containers.scss +7 -0
  10. package/dist/runtime/public/scss/_fonts.scss +85 -0
  11. package/dist/runtime/public/scss/_icons.scss +124 -0
  12. package/dist/runtime/public/scss/_inputs.scss +62 -0
  13. package/dist/runtime/public/scss/_layers.scss +9 -0
  14. package/dist/runtime/public/scss/_logo.scss +53 -0
  15. package/dist/runtime/public/scss/_selectbox.scss +4 -0
  16. package/dist/runtime/public/scss/_variables.scss +16 -0
  17. package/dist/runtime/public/scss/element-plus/affix.css +78 -78
  18. package/dist/runtime/public/scss/element-plus/affix.scss +7 -0
  19. package/dist/runtime/public/scss/element-plus/alert.css +78 -78
  20. package/dist/runtime/public/scss/element-plus/alert.scss +168 -0
  21. package/dist/runtime/public/scss/element-plus/anchor-link.css +78 -78
  22. package/dist/runtime/public/scss/element-plus/anchor-link.scss +41 -0
  23. package/dist/runtime/public/scss/element-plus/anchor.css +78 -78
  24. package/dist/runtime/public/scss/element-plus/anchor.scss +93 -0
  25. package/dist/runtime/public/scss/element-plus/aside.css +78 -78
  26. package/dist/runtime/public/scss/element-plus/aside.scss +8 -0
  27. package/dist/runtime/public/scss/element-plus/autocomplete.css +78 -78
  28. package/dist/runtime/public/scss/element-plus/autocomplete.scss +85 -0
  29. package/dist/runtime/public/scss/element-plus/avatar.css +82 -78
  30. package/dist/runtime/public/scss/element-plus/avatar.scss +56 -0
  31. package/dist/runtime/public/scss/element-plus/backtop.css +78 -78
  32. package/dist/runtime/public/scss/element-plus/backtop.scss +29 -0
  33. package/dist/runtime/public/scss/element-plus/badge.css +78 -78
  34. package/dist/runtime/public/scss/element-plus/badge.scss +54 -0
  35. package/dist/runtime/public/scss/element-plus/base.css +78 -78
  36. package/dist/runtime/public/scss/element-plus/base.scss +3 -0
  37. package/dist/runtime/public/scss/element-plus/breadcrumb-item.scss +0 -0
  38. package/dist/runtime/public/scss/element-plus/breadcrumb.css +78 -78
  39. package/dist/runtime/public/scss/element-plus/breadcrumb.scss +75 -0
  40. package/dist/runtime/public/scss/element-plus/button-group.css +78 -78
  41. package/dist/runtime/public/scss/element-plus/button-group.scss +111 -0
  42. package/dist/runtime/public/scss/element-plus/button.css +78 -83
  43. package/dist/runtime/public/scss/element-plus/button.scss +352 -0
  44. package/dist/runtime/public/scss/element-plus/calendar.css +78 -78
  45. package/dist/runtime/public/scss/element-plus/calendar.scss +80 -0
  46. package/dist/runtime/public/scss/element-plus/card.css +78 -78
  47. package/dist/runtime/public/scss/element-plus/card.scss +54 -0
  48. package/dist/runtime/public/scss/element-plus/carousel-item.css +78 -78
  49. package/dist/runtime/public/scss/element-plus/carousel-item.scss +58 -0
  50. package/dist/runtime/public/scss/element-plus/carousel.css +78 -78
  51. package/dist/runtime/public/scss/element-plus/carousel.scss +183 -0
  52. package/dist/runtime/public/scss/element-plus/cascader-panel.css +78 -78
  53. package/dist/runtime/public/scss/element-plus/cascader-panel.scss +138 -0
  54. package/dist/runtime/public/scss/element-plus/cascader.css +78 -78
  55. package/dist/runtime/public/scss/element-plus/cascader.scss +218 -0
  56. package/dist/runtime/public/scss/element-plus/check-tag.css +78 -78
  57. package/dist/runtime/public/scss/element-plus/check-tag.scss +38 -0
  58. package/dist/runtime/public/scss/element-plus/checkbox-button.css +78 -83
  59. package/dist/runtime/public/scss/element-plus/checkbox-button.scss +141 -0
  60. package/dist/runtime/public/scss/element-plus/checkbox-group.css +78 -78
  61. package/dist/runtime/public/scss/element-plus/checkbox-group.scss +8 -0
  62. package/dist/runtime/public/scss/element-plus/checkbox.css +78 -78
  63. package/dist/runtime/public/scss/element-plus/checkbox.scss +294 -0
  64. package/dist/runtime/public/scss/element-plus/col.css +78 -78
  65. package/dist/runtime/public/scss/element-plus/col.scss +48 -0
  66. package/dist/runtime/public/scss/element-plus/collapse-item.scss +0 -0
  67. package/dist/runtime/public/scss/element-plus/collapse-transition.scss +0 -0
  68. package/dist/runtime/public/scss/element-plus/collapse.css +78 -78
  69. package/dist/runtime/public/scss/element-plus/collapse.scss +70 -0
  70. package/dist/runtime/public/scss/element-plus/color/index.scss +17 -0
  71. package/dist/runtime/public/scss/element-plus/color-picker.css +78 -78
  72. package/dist/runtime/public/scss/element-plus/color-picker.scss +365 -0
  73. package/dist/runtime/public/scss/element-plus/common/popup.css +78 -78
  74. package/dist/runtime/public/scss/element-plus/common/popup.scss +47 -0
  75. package/dist/runtime/public/scss/element-plus/common/transition.css +78 -78
  76. package/dist/runtime/public/scss/element-plus/common/transition.scss +124 -0
  77. package/dist/runtime/public/scss/element-plus/common/var.css +78 -78
  78. package/dist/runtime/public/scss/element-plus/common/var.scss +1646 -0
  79. package/dist/runtime/public/scss/element-plus/config-provider.scss +0 -0
  80. package/dist/runtime/public/scss/element-plus/container.css +78 -78
  81. package/dist/runtime/public/scss/element-plus/container.scss +14 -0
  82. package/dist/runtime/public/scss/element-plus/dark/css-vars.css +78 -78
  83. package/dist/runtime/public/scss/element-plus/dark/css-vars.scss +39 -0
  84. package/dist/runtime/public/scss/element-plus/dark/var.css +78 -78
  85. package/dist/runtime/public/scss/element-plus/dark/var.scss +221 -0
  86. package/dist/runtime/public/scss/element-plus/date-picker/date-picker.css +78 -78
  87. package/dist/runtime/public/scss/element-plus/date-picker/date-picker.scss +109 -0
  88. package/dist/runtime/public/scss/element-plus/date-picker/date-range-picker.css +78 -78
  89. package/dist/runtime/public/scss/element-plus/date-picker/date-range-picker.scss +117 -0
  90. package/dist/runtime/public/scss/element-plus/date-picker/date-table.css +78 -78
  91. package/dist/runtime/public/scss/element-plus/date-picker/date-table.scss +158 -0
  92. package/dist/runtime/public/scss/element-plus/date-picker/month-table.css +78 -78
  93. package/dist/runtime/public/scss/element-plus/date-picker/month-table.scss +112 -0
  94. package/dist/runtime/public/scss/element-plus/date-picker/picker-panel.css +78 -78
  95. package/dist/runtime/public/scss/element-plus/date-picker/picker-panel.scss +168 -0
  96. package/dist/runtime/public/scss/element-plus/date-picker/picker.css +78 -78
  97. package/dist/runtime/public/scss/element-plus/date-picker/picker.scss +192 -0
  98. package/dist/runtime/public/scss/element-plus/date-picker/time-picker.css +78 -78
  99. package/dist/runtime/public/scss/element-plus/date-picker/time-picker.scss +98 -0
  100. package/dist/runtime/public/scss/element-plus/date-picker/time-range-picker.css +78 -78
  101. package/dist/runtime/public/scss/element-plus/date-picker/time-range-picker.scss +40 -0
  102. package/dist/runtime/public/scss/element-plus/date-picker/time-spinner.css +78 -78
  103. package/dist/runtime/public/scss/element-plus/date-picker/time-spinner.scss +110 -0
  104. package/dist/runtime/public/scss/element-plus/date-picker/year-table.css +78 -78
  105. package/dist/runtime/public/scss/element-plus/date-picker/year-table.scss +108 -0
  106. package/dist/runtime/public/scss/element-plus/date-picker.css +78 -78
  107. package/dist/runtime/public/scss/element-plus/date-picker.scss +9 -0
  108. package/dist/runtime/public/scss/element-plus/descriptions-item.css +78 -78
  109. package/dist/runtime/public/scss/element-plus/descriptions-item.scss +69 -0
  110. package/dist/runtime/public/scss/element-plus/descriptions.css +78 -78
  111. package/dist/runtime/public/scss/element-plus/descriptions.scss +166 -0
  112. package/dist/runtime/public/scss/element-plus/dialog.css +81 -81
  113. package/dist/runtime/public/scss/element-plus/dialog.scss +190 -0
  114. package/dist/runtime/public/scss/element-plus/display.css +78 -78
  115. package/dist/runtime/public/scss/element-plus/display.scss +12 -0
  116. package/dist/runtime/public/scss/element-plus/divider.css +78 -78
  117. package/dist/runtime/public/scss/element-plus/divider.scss +48 -0
  118. package/dist/runtime/public/scss/element-plus/drawer.css +78 -78
  119. package/dist/runtime/public/scss/element-plus/drawer.scss +155 -0
  120. package/dist/runtime/public/scss/element-plus/dropdown-item.scss +0 -0
  121. package/dist/runtime/public/scss/element-plus/dropdown-menu.scss +0 -0
  122. package/dist/runtime/public/scss/element-plus/dropdown.css +78 -78
  123. package/dist/runtime/public/scss/element-plus/dropdown.scss +212 -0
  124. package/dist/runtime/public/scss/element-plus/empty.css +78 -78
  125. package/dist/runtime/public/scss/element-plus/empty.scss +49 -0
  126. package/dist/runtime/public/scss/element-plus/footer.css +78 -78
  127. package/dist/runtime/public/scss/element-plus/footer.scss +12 -0
  128. package/dist/runtime/public/scss/element-plus/form-item.scss +0 -0
  129. package/dist/runtime/public/scss/element-plus/form.css +78 -78
  130. package/dist/runtime/public/scss/element-plus/form.scss +296 -0
  131. package/dist/runtime/public/scss/element-plus/header.css +78 -78
  132. package/dist/runtime/public/scss/element-plus/header.scss +12 -0
  133. package/dist/runtime/public/scss/element-plus/icon.css +78 -78
  134. package/dist/runtime/public/scss/element-plus/icon.scss +45 -0
  135. package/dist/runtime/public/scss/element-plus/image-viewer.css +78 -78
  136. package/dist/runtime/public/scss/element-plus/image-viewer.scss +139 -0
  137. package/dist/runtime/public/scss/element-plus/image.css +78 -78
  138. package/dist/runtime/public/scss/element-plus/image.scss +49 -0
  139. package/dist/runtime/public/scss/element-plus/index.css +185 -164
  140. package/dist/runtime/public/scss/element-plus/index.scss +110 -0
  141. package/dist/runtime/public/scss/element-plus/infinite-scroll.scss +0 -0
  142. package/dist/runtime/public/scss/element-plus/input-number.css +78 -78
  143. package/dist/runtime/public/scss/element-plus/input-number.scss +184 -0
  144. package/dist/runtime/public/scss/element-plus/input.css +78 -78
  145. package/dist/runtime/public/scss/element-plus/input.scss +530 -0
  146. package/dist/runtime/public/scss/element-plus/link.css +106 -120
  147. package/dist/runtime/public/scss/element-plus/link.scss +89 -0
  148. package/dist/runtime/public/scss/element-plus/loading.css +78 -78
  149. package/dist/runtime/public/scss/element-plus/loading.scss +102 -0
  150. package/dist/runtime/public/scss/element-plus/main.css +78 -78
  151. package/dist/runtime/public/scss/element-plus/main.scss +14 -0
  152. package/dist/runtime/public/scss/element-plus/mention.css +78 -78
  153. package/dist/runtime/public/scss/element-plus/mention.scss +84 -0
  154. package/dist/runtime/public/scss/element-plus/menu-item-group.scss +0 -0
  155. package/dist/runtime/public/scss/element-plus/menu-item.scss +0 -0
  156. package/dist/runtime/public/scss/element-plus/menu.css +78 -78
  157. package/dist/runtime/public/scss/element-plus/menu.scss +332 -0
  158. package/dist/runtime/public/scss/element-plus/message-box.css +105 -86
  159. package/dist/runtime/public/scss/element-plus/message-box.scss +229 -0
  160. package/dist/runtime/public/scss/element-plus/message.css +81 -81
  161. package/dist/runtime/public/scss/element-plus/message.scss +159 -0
  162. package/dist/runtime/public/scss/element-plus/mixins/_button.scss +181 -0
  163. package/dist/runtime/public/scss/element-plus/mixins/_col.scss +33 -0
  164. package/dist/runtime/public/scss/element-plus/mixins/_var.scss +58 -0
  165. package/dist/runtime/public/scss/element-plus/mixins/config.scss +5 -0
  166. package/dist/runtime/public/scss/element-plus/mixins/function.scss +84 -0
  167. package/dist/runtime/public/scss/element-plus/mixins/mixins.css +78 -78
  168. package/dist/runtime/public/scss/element-plus/mixins/mixins.scss +227 -0
  169. package/dist/runtime/public/scss/element-plus/mixins/utils.scss +39 -0
  170. package/dist/runtime/public/scss/element-plus/notification.css +80 -80
  171. package/dist/runtime/public/scss/element-plus/notification.scss +104 -0
  172. package/dist/runtime/public/scss/element-plus/option-group.css +78 -78
  173. package/dist/runtime/public/scss/element-plus/option-group.scss +38 -0
  174. package/dist/runtime/public/scss/element-plus/option.css +78 -78
  175. package/dist/runtime/public/scss/element-plus/option.scss +75 -0
  176. package/dist/runtime/public/scss/element-plus/overlay.css +79 -79
  177. package/dist/runtime/public/scss/element-plus/overlay.scss +20 -0
  178. package/dist/runtime/public/scss/element-plus/page-header.css +78 -78
  179. package/dist/runtime/public/scss/element-plus/page-header.scss +60 -0
  180. package/dist/runtime/public/scss/element-plus/pagination.css +78 -78
  181. package/dist/runtime/public/scss/element-plus/pagination.scss +249 -0
  182. package/dist/runtime/public/scss/element-plus/popconfirm.css +78 -78
  183. package/dist/runtime/public/scss/element-plus/popconfirm.scss +16 -0
  184. package/dist/runtime/public/scss/element-plus/popover.css +99 -79
  185. package/dist/runtime/public/scss/element-plus/popover.scss +75 -0
  186. package/dist/runtime/public/scss/element-plus/popper.css +78 -78
  187. package/dist/runtime/public/scss/element-plus/popper.scss +107 -0
  188. package/dist/runtime/public/scss/element-plus/progress.css +78 -78
  189. package/dist/runtime/public/scss/element-plus/progress.scss +179 -0
  190. package/dist/runtime/public/scss/element-plus/radio-button.css +78 -79
  191. package/dist/runtime/public/scss/element-plus/radio-button.scss +138 -0
  192. package/dist/runtime/public/scss/element-plus/radio-group.css +78 -78
  193. package/dist/runtime/public/scss/element-plus/radio-group.scss +9 -0
  194. package/dist/runtime/public/scss/element-plus/radio.css +78 -78
  195. package/dist/runtime/public/scss/element-plus/radio.scss +240 -0
  196. package/dist/runtime/public/scss/element-plus/rate.css +78 -78
  197. package/dist/runtime/public/scss/element-plus/rate.scss +108 -0
  198. package/dist/runtime/public/scss/element-plus/reset.css +78 -78
  199. package/dist/runtime/public/scss/element-plus/reset.scss +97 -0
  200. package/dist/runtime/public/scss/element-plus/result.css +78 -78
  201. package/dist/runtime/public/scss/element-plus/result.scss +57 -0
  202. package/dist/runtime/public/scss/element-plus/row.css +78 -78
  203. package/dist/runtime/public/scss/element-plus/row.scss +35 -0
  204. package/dist/runtime/public/scss/element-plus/scrollbar.css +78 -78
  205. package/dist/runtime/public/scss/element-plus/scrollbar.scss +85 -0
  206. package/dist/runtime/public/scss/element-plus/segmented.css +78 -78
  207. package/dist/runtime/public/scss/element-plus/segmented.scss +160 -0
  208. package/dist/runtime/public/scss/element-plus/select-dropdown-v2.css +78 -78
  209. package/dist/runtime/public/scss/element-plus/select-dropdown-v2.scss +1 -0
  210. package/dist/runtime/public/scss/element-plus/select-dropdown.css +78 -78
  211. package/dist/runtime/public/scss/element-plus/select-dropdown.scss +57 -0
  212. package/dist/runtime/public/scss/element-plus/select-v2.css +79 -79
  213. package/dist/runtime/public/scss/element-plus/select-v2.scss +4 -0
  214. package/dist/runtime/public/scss/element-plus/select.css +79 -79
  215. package/dist/runtime/public/scss/element-plus/select.scss +277 -0
  216. package/dist/runtime/public/scss/element-plus/skeleton-item.css +78 -78
  217. package/dist/runtime/public/scss/element-plus/skeleton-item.scss +83 -0
  218. package/dist/runtime/public/scss/element-plus/skeleton.css +78 -78
  219. package/dist/runtime/public/scss/element-plus/skeleton.scss +39 -0
  220. package/dist/runtime/public/scss/element-plus/slider.css +78 -78
  221. package/dist/runtime/public/scss/element-plus/slider.scss +212 -0
  222. package/dist/runtime/public/scss/element-plus/space.css +78 -78
  223. package/dist/runtime/public/scss/element-plus/space.scss +20 -0
  224. package/dist/runtime/public/scss/element-plus/spinner.css +78 -78
  225. package/dist/runtime/public/scss/element-plus/spinner.scss +43 -0
  226. package/dist/runtime/public/scss/element-plus/statistic.css +78 -78
  227. package/dist/runtime/public/scss/element-plus/statistic.scss +35 -0
  228. package/dist/runtime/public/scss/element-plus/step.css +78 -78
  229. package/dist/runtime/public/scss/element-plus/step.scss +316 -0
  230. package/dist/runtime/public/scss/element-plus/steps.css +78 -78
  231. package/dist/runtime/public/scss/element-plus/steps.scss +21 -0
  232. package/dist/runtime/public/scss/element-plus/sub-menu.scss +0 -0
  233. package/dist/runtime/public/scss/element-plus/switch.css +78 -78
  234. package/dist/runtime/public/scss/element-plus/switch.scss +309 -0
  235. package/dist/runtime/public/scss/element-plus/tab-pane.scss +0 -0
  236. package/dist/runtime/public/scss/element-plus/table-column.css +78 -78
  237. package/dist/runtime/public/scss/element-plus/table-column.scss +98 -0
  238. package/dist/runtime/public/scss/element-plus/table-v2.css +78 -78
  239. package/dist/runtime/public/scss/element-plus/table-v2.scss +234 -0
  240. package/dist/runtime/public/scss/element-plus/table.css +84 -81
  241. package/dist/runtime/public/scss/element-plus/table.scss +732 -0
  242. package/dist/runtime/public/scss/element-plus/tabs.css +78 -78
  243. package/dist/runtime/public/scss/element-plus/tabs.scss +653 -0
  244. package/dist/runtime/public/scss/element-plus/tag.css +87 -87
  245. package/dist/runtime/public/scss/element-plus/tag.scss +162 -0
  246. package/dist/runtime/public/scss/element-plus/text.css +78 -78
  247. package/dist/runtime/public/scss/element-plus/text.scss +58 -0
  248. package/dist/runtime/public/scss/element-plus/time-picker.css +78 -78
  249. package/dist/runtime/public/scss/element-plus/time-picker.scss +5 -0
  250. package/dist/runtime/public/scss/element-plus/time-select.css +78 -78
  251. package/dist/runtime/public/scss/element-plus/time-select.scss +37 -0
  252. package/dist/runtime/public/scss/element-plus/timeline-item.css +78 -78
  253. package/dist/runtime/public/scss/element-plus/timeline-item.scss +84 -0
  254. package/dist/runtime/public/scss/element-plus/timeline.css +78 -78
  255. package/dist/runtime/public/scss/element-plus/timeline.scss +46 -0
  256. package/dist/runtime/public/scss/element-plus/tooltip-v2.css +78 -78
  257. package/dist/runtime/public/scss/element-plus/tooltip-v2.scss +86 -0
  258. package/dist/runtime/public/scss/element-plus/tooltip.scss +0 -0
  259. package/dist/runtime/public/scss/element-plus/tour.css +80 -80
  260. package/dist/runtime/public/scss/element-plus/tour.scss +170 -0
  261. package/dist/runtime/public/scss/element-plus/transfer.css +78 -78
  262. package/dist/runtime/public/scss/element-plus/transfer.scss +204 -0
  263. package/dist/runtime/public/scss/element-plus/tree-select.css +78 -78
  264. package/dist/runtime/public/scss/element-plus/tree-select.scss +38 -0
  265. package/dist/runtime/public/scss/element-plus/tree.css +78 -78
  266. package/dist/runtime/public/scss/element-plus/tree.scss +132 -0
  267. package/dist/runtime/public/scss/element-plus/upload.css +78 -78
  268. package/dist/runtime/public/scss/element-plus/upload.scss +652 -0
  269. package/dist/runtime/public/scss/element-plus/var.css +78 -78
  270. package/dist/runtime/public/scss/element-plus/var.scss +84 -0
  271. package/dist/runtime/public/scss/element-plus/virtual-list.css +78 -78
  272. package/dist/runtime/public/scss/element-plus/virtual-list.scss +40 -0
  273. package/dist/runtime/public/scss/theme.css +78 -78
  274. package/dist/runtime/public/scss/theme.scss +72 -0
  275. package/package.json +9 -2
@@ -0,0 +1,1646 @@
1
+ /* Element Chalk Variables */
2
+ @use 'sass:math';
3
+ @use 'sass:map';
4
+
5
+ @use '../mixins/function.scss' as *;
6
+ @use '../../_colors' as *;
7
+
8
+ // Special comment for theme configurator
9
+ // type|skipAutoTranslation|Category|Order
10
+ // skipAutoTranslation 1
11
+
12
+ /**
13
+ Bununla selectorun içerisine variable ekleyebiliyorsun
14
+ .selector{
15
+ // --el-button-text-color: var(--el-color-primary); -> bu eklenir
16
+ @include css-var-from-global(('button-text-color'), ('color-primary'));
17
+
18
+ // bununla property'ye değer atayabilirsin (hiyerarşik alıyor)
19
+ color: getCssVar('colors-neutral-light-2');
20
+
21
+ // bununla da property alınabililyor
22
+ font-size: map.get($select, 'font-size');
23
+ }
24
+ **/
25
+
26
+ // types
27
+ $types: primary, secondary, neutral, success, warning, danger, error, info;
28
+ $semantic: success, info, warning, error, danger;
29
+ $sizes: large, medium, small, mini;
30
+ $variants: 1, 2, 4, 3, 5, 6, 7, 8, 9;
31
+ // Color
32
+ $colors: () !default;
33
+ $colors: map.deep-merge(
34
+ (
35
+ 'white': #ffffff,
36
+ 'black': #000000,
37
+ 'primary': (
38
+ 'base': #5737d6,
39
+ ),
40
+ 'secondary': (
41
+ 'base': #980089,
42
+ ),
43
+ 'neutral': (
44
+ 'base': #a8a6b1,
45
+ ),
46
+ 'success': (
47
+ 'base': #69b64f,
48
+ ),
49
+ 'warning': (
50
+ 'base': #f9a307,
51
+ ),
52
+ 'danger': (
53
+ 'base': #eb4848,
54
+ ),
55
+ 'error': (
56
+ 'base': #f56c6c,
57
+ ),
58
+ 'info': (
59
+ 'base': #21a1d6,
60
+ ),
61
+ ),
62
+ $colors
63
+ );
64
+
65
+ // $colors: map.deep-merge($theme, $colors);
66
+
67
+ $color-white: map.get($colors, 'white') !default;
68
+ $color-black: map.get($colors, 'black') !default;
69
+ $color-primary: map.get($colors, 'primary', 'base') !default;
70
+ $color-success: map.get($colors, 'success', 'base') !default;
71
+ $color-warning: map.get($colors, 'warning', 'base') !default;
72
+ $color-danger: map.get($colors, 'danger', 'base') !default;
73
+ $color-error: map.get($colors, 'error', 'base') !default;
74
+ $color-info: map.get($colors, 'info', 'base') !default;
75
+ $color-secondary: map.get($colors, 'seconday', 'base') !default;
76
+ $color-neutral: map.get($colors, 'neutral', 'base') !default;
77
+
78
+ // https://sass-lang.com/documentation/values/maps#immutability
79
+ // mix colors with white/black to generate light/dark level
80
+ @mixin set-color-mix-level($type, $number, $mode: 'light', $mix-color: $color-white) {
81
+ $colors: map.deep-merge(
82
+ (
83
+ $type: (
84
+ '#{$mode}-#{$number}': #{map.get($theme, $type, #{$number})},
85
+ // '#{$mode}-#{$number}': mix($mix-color, map.get($colors, $type, 'base'), math.percentage(math.div($number, 10))),
86
+ ),
87
+ ),
88
+ $colors
89
+ ) !global;
90
+ }
91
+
92
+ // $colors.primary.light-i
93
+ // --el-color-primary-light-i
94
+ // 10% 53a8ff
95
+ // 20% 66b1ff
96
+ // 30% 79bbff
97
+ // 40% 8cc5ff
98
+ // 50% a0cfff
99
+ // 60% b3d8ff
100
+ // 70% c6e2ff
101
+ // 80% d9ecff
102
+ // 90% ecf5ff
103
+ @each $type in $types {
104
+ @for $i from 1 through 9 {
105
+ @include set-color-mix-level($type, $i, 'light', $color-white);
106
+ }
107
+ }
108
+
109
+ // --el-color-primary-dark-2
110
+ @each $type in $types {
111
+ @include set-color-mix-level($type, 2, 'dark', $color-black);
112
+ }
113
+
114
+ $text-color: () !default;
115
+ $text-color: map.merge(
116
+ (
117
+ //@TODO: bu primary ve regular ikisi de aynı anda gereksiz gibi, en sonda bunlardan birini tercih edip refactor edeceğim
118
+ 'primary': getCssVar('color', 'neutral', 'light-9'),
119
+ 'regular': getCssVar('color', 'neutral', 'light-9'),
120
+ 'secondary': getCssVar('color', 'neutral', 'light-7'),
121
+ // 'secondary': #909399,
122
+ 'placeholder': getCssVar('color', 'neutral', 'light-4'),
123
+ 'disabled': getCssVar('color', 'neutral', 'light-4'),
124
+ // 'disabled': #c0c4cc,
125
+ ),
126
+ $text-color
127
+ );
128
+
129
+ $border-color: () !default;
130
+ $border-color: map.merge(
131
+ (
132
+ '': getCssVar('color', 'neutral', 'light-4'),
133
+ 'light': #e4e7ed,
134
+ 'lighter': #ebeef5,
135
+ 'extra-light': #f2f6fc,
136
+ 'dark': #d4d7de,
137
+ 'darker': #cdd0d6,
138
+ ),
139
+ $border-color
140
+ );
141
+
142
+ $fill-color: () !default;
143
+ $fill-color: map.merge(
144
+ (
145
+ '': #f0f2f5,
146
+ 'light': getCssVar('color-neutral-light-2'),
147
+ 'lighter': #fafafa,
148
+ 'extra-light': #fafcff,
149
+ 'dark': #ebedf0,
150
+ 'darker': #e6e8eb,
151
+ 'blank': #ffffff,
152
+ ),
153
+ $fill-color
154
+ );
155
+
156
+ // Background
157
+ $bg-color: () !default;
158
+ $bg-color: map.merge(
159
+ (
160
+ '': #ffffff,
161
+ 'page': #f2f3f5,
162
+ 'overlay': #ffffff,
163
+ ),
164
+ $bg-color
165
+ );
166
+
167
+ // Border
168
+ $border-width: 1px !default;
169
+ $border-style: solid !default;
170
+ $border-color-hover: getCssVar('text-color', 'disabled') !default;
171
+
172
+ $border-radius: () !default;
173
+ $border-radius: map.merge(
174
+ (
175
+ 'base': 4px,
176
+ 'small': 2px,
177
+ 'round': 20px,
178
+ 'circle': 100%,
179
+ ),
180
+ $border-radius
181
+ );
182
+
183
+ // Box-shadow
184
+ $box-shadow: () !default;
185
+ $box-shadow: map.merge(
186
+ (
187
+ '': (
188
+ 0px 12px 32px 4px rgba(0, 0, 0, 0.04),
189
+ 0px 8px 20px rgba(0, 0, 0, 0.08),
190
+ ),
191
+ 'light': (
192
+ 0px 1px 2px 0px #1a0b5e1a,
193
+ ),
194
+ 'lighter': (
195
+ 0px 0px 6px rgba(0, 0, 0, 0.12),
196
+ ),
197
+ 'dark': (
198
+ 0px 16px 48px 16px rgba(0, 0, 0, 0.08),
199
+ 0px 12px 32px rgba(0, 0, 0, 0.12),
200
+ 0px 8px 16px -8px rgba(0, 0, 0, 0.16),
201
+ ),
202
+ ),
203
+ $box-shadow
204
+ );
205
+
206
+ // Typography
207
+ $font-family: () !default;
208
+ $font-family: map.merge(
209
+ (
210
+ // default family
211
+ '': "'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', Arial, sans-serif"
212
+ ),
213
+ $font-family
214
+ );
215
+
216
+ $font-size: () !default;
217
+ $font-size: map.merge(
218
+ (
219
+ 'huge': 20px,
220
+ 'large': 18px,
221
+ 'medium': 16px,
222
+ 'base': 14px,
223
+ 'small': 12px,
224
+ 'mini': 12px,
225
+ 'tiny': 12px,
226
+ ),
227
+ $font-size
228
+ );
229
+
230
+ // zIndex
231
+ $z-index: () !default;
232
+ $z-index: map.merge(
233
+ (
234
+ 'normal': 1,
235
+ 'top': 1000,
236
+ 'popper': 2000,
237
+ ),
238
+ $z-index
239
+ );
240
+
241
+ // Disable default
242
+ $disabled: () !default;
243
+ $disabled: map.merge(
244
+ (
245
+ 'bg-color': getCssVar('color', 'neutral', 'light-2'),
246
+ 'text-color': getCssVar('color', 'neutral', 'light-4'),
247
+ 'border-color': getCssVar('color', 'neutral', 'light-4'),
248
+ ),
249
+ $disabled
250
+ );
251
+
252
+ $common-component-size: () !default;
253
+ $common-component-size: map.merge(
254
+ (
255
+ 'default': 40px,
256
+ 'large': 40px,
257
+ 'medium': 36px,
258
+ 'small': 30px,
259
+ 'mini': 28px,
260
+ ),
261
+ $common-component-size
262
+ );
263
+
264
+ // overlay
265
+ $overlay-color: () !default;
266
+ $overlay-color: map.merge(
267
+ (
268
+ '': rgba(0, 0, 0, 0.8),
269
+ 'light': rgba(0, 0, 0, 0.7),
270
+ 'lighter': map.get($colors, 'success', 'base'),
271
+ ),
272
+ $overlay-color
273
+ );
274
+
275
+ // mask
276
+ $mask-color: () !default;
277
+ $mask-color: map.merge(
278
+ (
279
+ '': rgba(255, 255, 255, 0.9),
280
+ 'extra-light': rgba(255, 255, 255, 0.3),
281
+ ),
282
+ $mask-color
283
+ );
284
+
285
+ // Components
286
+ // ---
287
+ // Checkbox
288
+ // css3 var in packages/theme-chalk/src/checkbox.scss
289
+ $checkbox: () !default;
290
+ $checkbox: map.merge(
291
+ (
292
+ 'font-size': 14px,
293
+ 'font-weight': 400,
294
+ 'text-color': getCssVar('color-neutral-light-7'),
295
+ 'input-height': 16px,
296
+ 'input-width': 16px,
297
+ 'border-radius': 3px,
298
+ 'bg-color': getCssVar('fill-color', 'blank'),
299
+ 'input-border': 1.5px solid getCssVar('color-neutral-light-4'),
300
+ 'disabled-border-color': getCssVar('color-neutral-light-4'),
301
+ 'disabled-input-fill': getCssVar('fill-color', 'light'),
302
+ 'disabled-icon-color': getCssVar('color-neutral-light-4'),
303
+ 'disabled-checked-input-fill': getCssVar('color-white'),
304
+ 'disabled-checked-input-border-color': getCssVar('border-color'),
305
+ 'disabled-checked-icon-color': getCssVar('text-color-placeholder'),
306
+ 'checked-text-color': getCssVar('color-neutral-light-7'),
307
+ 'checked-input-border-color': getCssVar('color-success-light-5'),
308
+ 'checked-bg-color': getCssVar('color-white'),
309
+ 'checked-icon-color': getCssVar('color-success-light-5'),
310
+ 'input-border-color-hover': getCssVar('color-neutral-light-4'),
311
+ ),
312
+ $checkbox
313
+ );
314
+
315
+ $checkbox-button: () !default;
316
+ $checkbox-button: map.merge(
317
+ (
318
+ 'border-color': getCssVar('color-primary'),
319
+ 'bg-color': getCssVar('color-white'),
320
+ 'text-color': getCssVar('color-primary'),
321
+ 'checked-bg-color': getCssVar('color-primary'),
322
+ 'checked-text-color': getCssVar('color-white'),
323
+ 'checked-border-color': getCssVar('color-primary'),
324
+ 'disabled-border-color': getCssVar('color-primary-light-3'),
325
+ 'disabled-bg-color': getCssVar('color-white'),
326
+ 'disabled-text-color': getCssVar('color-primary-light-3'),
327
+ 'checked-disabled-border-color': getCssVar('color-primary-light-3'),
328
+ 'checked-disabled-bg-color': getCssVar('color-primary-light-1'),
329
+ 'checked-disabled-text-color': getCssVar('color-primary-light-3'),
330
+ ),
331
+ $checkbox-button
332
+ );
333
+
334
+ $checkbox-bordered-padding-left: () !default;
335
+ $checkbox-bordered-padding-left: map.merge(
336
+ (
337
+ 'default': 12px,
338
+ 'large': 12px,
339
+ 'medium': 10px,
340
+ 'small': 8px,
341
+ 'mini': 8px,
342
+ ),
343
+ $checkbox-bordered-padding-left
344
+ );
345
+
346
+ $checkbox-bordered-padding-right: () !default;
347
+ $checkbox-bordered-padding-right: map.merge(
348
+ (
349
+ 'default': 20px,
350
+ 'large': 20px,
351
+ 'medium': 16px,
352
+ 'small': 12px,
353
+ 'mini': 12px,
354
+ ),
355
+ $checkbox-bordered-padding-right
356
+ );
357
+
358
+ // Radio
359
+ /// fontSize||Font|1
360
+ $radio: () !default;
361
+ $radio: map.merge(
362
+ (
363
+ 'font-size': getCssVar('font-size-base'),
364
+ 'text-color': getCssVar('color-neutral-light-7'),
365
+ 'font-weight': 400,
366
+ 'input-height': 14px,
367
+ 'input-width': 14px,
368
+ 'input-border-radius': getCssVar('border-radius-circle'),
369
+ 'input-bg-color': getCssVar('fill-color', 'blank'),
370
+ 'input-border': 1.5px solid getCssVar('color-neutral-light-4'),
371
+ 'input-border-color': getCssVar('color-neutral-light-4'),
372
+ 'input-border-color-hover': getCssVar('color-neutral-light-4'),
373
+ ),
374
+ $radio
375
+ );
376
+
377
+ $radio-height: () !default;
378
+ $radio-height: map.merge($common-component-size, $radio-height);
379
+
380
+ $radio-button: () !default;
381
+ $radio-button: map.merge(
382
+ (
383
+ 'checked-bg-color': getCssVar('color-primary'),
384
+ 'checked-text-color': getCssVar('color-white'),
385
+ 'checked-border-color': getCssVar('color-primary'),
386
+ 'disabled-checked-fill': getCssVar('color-primary-light-1'),
387
+ ),
388
+ $radio-button
389
+ );
390
+
391
+ $radio-disabled: () !default;
392
+ $radio-disabled: map.merge(
393
+ (
394
+ 'input-border-color': getCssVar('color-neutral-light-4'),
395
+ 'input-fill': getCssVar('color-neutral-light-4'),
396
+ 'icon-color': getCssVar('color-neutral-light-4'),
397
+ 'checked-input-border-color': getCssVar('color-neutral-light-4'),
398
+ 'checked-input-fill': getCssVar('color-white'),
399
+ 'checked-icon-color': getCssVar('color-neutral-light-4'),
400
+ ),
401
+ $radio-disabled
402
+ );
403
+
404
+ $radio-checked: () !default;
405
+ $radio-checked: map.merge(
406
+ (
407
+ 'text-color': getCssVar('color-neutral-light-7'),
408
+ 'input-border-color': getCssVar('color-success'),
409
+ 'icon-color': getCssVar('color-success'),
410
+ ),
411
+ $radio-checked
412
+ );
413
+
414
+ $radio-bordered-input-height: () !default;
415
+ $radio-bordered-input-height: map.merge(
416
+ (
417
+ 'default': 16px,
418
+ 'large': 16px,
419
+ 'medium': 14px,
420
+ 'small': 12px,
421
+ 'mini': 12px,
422
+ ),
423
+ $radio-bordered-input-height
424
+ );
425
+
426
+ $radio-bordered-input-width: () !default;
427
+ $radio-bordered-input-width: map.merge($radio-bordered-input-height, $radio-bordered-input-width);
428
+
429
+ // Select
430
+ $select: () !default;
431
+ $select: map.merge(
432
+ (
433
+ 'border-color-hover': getCssVar('border-color-hover'),
434
+ 'disabled-color': getCssVar('disabled-text-color'),
435
+ 'disabled-border': getCssVar('disabled-border-color'),
436
+ 'font-size': getCssVar('font-size-small'),
437
+ 'close-hover-color': getCssVar('text-color-secondary'),
438
+ 'input-color': getCssVar('color-neautral-light-2'),
439
+ 'multiple-input-color': getCssVar('text-color-regular'),
440
+ 'input-focus-border-color': getCssVar('color-primary'),
441
+ 'input-font-size': 14px,
442
+ 'width': 100%,
443
+ 'min-width': 72px,
444
+ ),
445
+ $select
446
+ );
447
+
448
+ $select-option: () !default;
449
+ $select-option: map.merge(
450
+ (
451
+ 'text-color': getCssVar('text-color-secondary'),
452
+ 'disabled-color': getCssVar('text-color-disabled'),
453
+ 'height': 32px,
454
+ 'hover-background': getCssVar('color', 'white'),
455
+ 'selected-text-color': getCssVar('color-primary'),
456
+ 'padding': 16px,
457
+ ),
458
+ $select-option
459
+ );
460
+
461
+ $select-group: () !default;
462
+ $select-group: map.merge(
463
+ (
464
+ 'text-color': getCssVar('color-neutral-light-4'),
465
+ 'height': 32px,
466
+ 'font-size': 10px,
467
+ ),
468
+ $select-group
469
+ );
470
+
471
+ $select-dropdown: () !default;
472
+ $select-dropdown: map.merge(
473
+ (
474
+ 'bg-color': getCssVar('bg-color', 'overlay'),
475
+ 'shadow': getCssVar('box-shadow-light'),
476
+ 'empty-color': getCssVar('text-color-secondary'),
477
+ 'max-height': 274px,
478
+ 'padding': 6px 0,
479
+ 'empty-padding': 10px 0,
480
+ 'header-padding': 10px,
481
+ 'footer-padding': 10px,
482
+ 'border': 1px solid getCssVar('border-color-light'),
483
+ ),
484
+ $select-dropdown
485
+ );
486
+
487
+ $select-wrapper-padding: () !default;
488
+ $select-wrapper-padding: map.merge(
489
+ (
490
+ 'large': 10px 12px,
491
+ 'default': 10px 12px,
492
+ 'medium': 8px 12px,
493
+ 'small': 6px 12px,
494
+ 'mini': 5px 12px,
495
+ ),
496
+ $select-wrapper-padding
497
+ );
498
+
499
+ $select-near-margin-left: () !default;
500
+ $select-near-margin-left: map.merge(
501
+ (
502
+ 'default': 0,
503
+ 'large': 0,
504
+ 'medium': 0 -3px,
505
+ 'small': 0 -6px,
506
+ 'mini': 0 -7px,
507
+ ),
508
+ $select-near-margin-left
509
+ );
510
+
511
+ $select-item-gap: () !default;
512
+ $select-item-gap: map.merge(
513
+ (
514
+ 'default': 8px,
515
+ 'large': 8px,
516
+ 'medium': 8px,
517
+ 'small': 4px,
518
+ 'mini': 4px,
519
+ ),
520
+ $select-item-gap
521
+ );
522
+
523
+ // the same height of el-tag
524
+ $select-item-height: () !default;
525
+ $select-item-height: map.merge(
526
+ (
527
+ 'large': 20px,
528
+ 'default': 20px,
529
+ 'small': 20px,
530
+ ),
531
+ $select-item-height
532
+ );
533
+
534
+ // Alert
535
+ // css3 var in packages/theme-chalk/src/alert.scss
536
+ $alert: () !default;
537
+ $alert: map.merge(
538
+ (
539
+ 'padding': 8px 16px,
540
+ 'border-radius-base': 4px,
541
+ 'border-color': getCssVar('color', 'info-light-3'),
542
+ 'title-font-size': 14px,
543
+ 'title-with-description-font-size': 14px,
544
+ 'description-font-size': 14px,
545
+ 'close-font-size': 14px,
546
+ 'close-customed-font-size': 14px,
547
+ 'icon-size': 18px,
548
+ 'icon-large-size': 32px,
549
+ ),
550
+ $alert
551
+ );
552
+
553
+ // MessageBox
554
+ // css3 var in packages/theme-chalk/src/message-box.scss
555
+ $messagebox: () !default;
556
+ $messagebox: map.merge(
557
+ (
558
+ 'title-color': getCssVar('text-color-primary'),
559
+ 'width': 420px,
560
+ 'border-radius': 4px,
561
+ 'box-shadow': getCssVar('box-shadow'),
562
+ 'font-size': getCssVar('font-size-large'),
563
+ 'content-font-size': getCssVar('font-size-base'),
564
+ 'content-color': getCssVar('text-color-regular'),
565
+ 'error-font-size': 12px,
566
+ 'padding-primary': 24px,
567
+ 'font-line-height': getCssVar('font-line-height-primary'),
568
+ ),
569
+ $messagebox
570
+ );
571
+
572
+ // Message
573
+ // css3 var in packages/theme-chalk/src/message.scss
574
+ $message: () !default;
575
+ $message: map.merge(
576
+ (
577
+ 'bg-color': getCssVar('color', 'info', 'light-1'),
578
+ 'border-color': getCssVar('color', 'info-light-3'),
579
+ 'padding': 8px 11px 8px 16px,
580
+ 'font-size': 12px,
581
+ 'close-size': 24px,
582
+ 'close-icon-color': getCssVar('color', 'neutral-primary-5'),
583
+ 'close-hover-color': getCssVar('color', 'neutral-primary-4'),
584
+ 'text-color': getCssVar('color', 'info-light-5'),
585
+ ),
586
+ $message
587
+ );
588
+
589
+ // Notification
590
+ // css3 var in packages/theme-chalk/src/notification.scss
591
+ $notification: () !default;
592
+ $notification: map.merge(
593
+ (
594
+ 'width': 330px,
595
+ 'padding': 12px 26px 12px 16px,
596
+ 'radius': 4px,
597
+ 'shadow': getCssVar('box-shadow-light'),
598
+ 'border-color': getCssVar('color-neutral-light-3'),
599
+ 'icon-size': 24px,
600
+ 'close-font-size': var(#{getCssVarName('message-close-size')}, map.get($message, 'close-size')),
601
+ 'group-margin-left': 13px,
602
+ 'group-margin-right': 8px,
603
+ 'content-font-size': getCssVar('font-size-base'),
604
+ 'content-color': getCssVar('color-neutral-light-7'),
605
+ 'title-font-size': 14px,
606
+ 'title-color': getCssVar('color-neutral-light-9'),
607
+ 'close-color': getCssVar('text-color-secondary'),
608
+ 'close-hover-color': getCssVar('text-color-regular'),
609
+ ),
610
+ $notification
611
+ );
612
+
613
+ // Input
614
+ // css3 var in packages/theme-chalk/src/input.scss
615
+ $input: () !default;
616
+ $input: map.merge(
617
+ (
618
+ 'text-color': getCssVar('text-color-regular'),
619
+ 'border': getCssVar('border'),
620
+ 'hover-border': getCssVar('border-color-hover'),
621
+ 'focus-border': getCssVar('color-primary'),
622
+ 'transparent-border': 0 0 0 1px transparent inset,
623
+ 'border-color': getCssVar('border-color'),
624
+ 'border-radius': getCssVar('border-radius-base'),
625
+ 'bg-color': getCssVar('fill-color', 'blank'),
626
+ 'icon-color': getCssVar('color', 'neutral', 'light-9'),
627
+ 'placeholder-color': getCssVar('text-color-placeholder'),
628
+ 'hover-border-color': getCssVar('color', 'primary', 'light-5'),
629
+ 'clear-hover-color': getCssVar('color', 'primary', 'light-5'),
630
+ 'focus-border-color': getCssVar('color', 'primary', 'light-5'),
631
+ 'width': 100%,
632
+ 'box-shadow': 0 3px 0 0 rgba(213, 205, 245, 0.4),
633
+ ),
634
+ $input
635
+ );
636
+
637
+ $input-disabled: () !default;
638
+ $input-disabled: map.merge(
639
+ (
640
+ 'fill': getCssVar('disabled-bg-color'),
641
+ 'border': getCssVar('disabled-border-color'),
642
+ 'text-color': getCssVar('disabled-text-color'),
643
+ 'placeholder-color': getCssVar('text-color-placeholder'),
644
+ ),
645
+ $input-disabled
646
+ );
647
+
648
+ $input-font-size: () !default;
649
+ $input-font-size: map.merge(
650
+ (
651
+ 'large': 14px,
652
+ 'default': 14px,
653
+ 'medium': 14px,
654
+ 'small': 12px,
655
+ 'mini': 12px,
656
+ ),
657
+ $input-font-size
658
+ );
659
+
660
+ $input-height: () !default;
661
+ $input-height: map.merge($common-component-size, $input-height);
662
+
663
+ $input-line-height: () !default;
664
+ $input-line-height: map.merge($common-component-size, $input-line-height);
665
+
666
+ $input-number-width: () !default;
667
+ $input-number-width: map.merge(
668
+ (
669
+ 'large': 180px,
670
+ 'default': 150px,
671
+ 'small': 120px,
672
+ ),
673
+ $input-number-width
674
+ );
675
+
676
+ $input-padding-horizontal: () !default;
677
+ $input-padding-horizontal: map.merge(
678
+ (
679
+ 'default': 16px,
680
+ 'large': 16px,
681
+ 'medium': 16px,
682
+ 'small': 16px,
683
+ 'mini': 16px,
684
+ ),
685
+ $input-padding-horizontal
686
+ );
687
+
688
+ // Cascader
689
+ // css3 var in packages/theme-chalk/src/cascader.scss
690
+ $cascader: () !default;
691
+ $cascader: map.merge(
692
+ (
693
+ 'menu-text-color': getCssVar('text-color-regular'),
694
+ 'menu-selected-text-color': getCssVar('color-primary'),
695
+ 'menu-fill': getCssVar('bg-color', 'overlay'),
696
+ 'menu-font-size': getCssVar('font-size-base'),
697
+ 'menu-radius': getCssVar('border-radius-base'),
698
+ 'menu-border': solid 1px getCssVar('border-color-light'),
699
+ 'menu-shadow': getCssVar('box-shadow-light'),
700
+ 'node-background-hover': getCssVar('fill-color', 'light'),
701
+ 'node-color-disabled': getCssVar('text-color-placeholder'),
702
+ 'color-empty': getCssVar('text-color-placeholder'),
703
+ 'tag-background': getCssVar('fill-color'),
704
+ ),
705
+ $cascader
706
+ );
707
+ //statistic
708
+ // css3 var in packages/theme-chalk/src/statistic.scss
709
+ $statistic: () !default;
710
+ $statistic: map.merge(
711
+ (
712
+ 'title-font-weight': 400,
713
+ 'title-font-size': getCssVar('font-size', 'tiny'),
714
+ 'title-color': getCssVar('text-color', 'regular'),
715
+ 'content-font-weight': 400,
716
+ 'content-font-size': getCssVar('font-size', 'huge'),
717
+ 'content-color': getCssVar('text-color', 'primary'),
718
+ ),
719
+ $statistic
720
+ );
721
+ // Button
722
+ // css3 var in packages/theme-chalk/src/button.scss
723
+ $button: () !default;
724
+ $button: map.merge(
725
+ (
726
+ 'font-weight': getCssVar('font-weight-primary'),
727
+ 'border-color': getCssVar('color', 'primary', 'light-5'),
728
+ 'bg-color': getCssVar('color', 'primary', 'light-5'),
729
+ 'text-color': getCssVar('color', 'white'),
730
+ 'disabled-text-color': getCssVar('color-primary', 'light-1'),
731
+ 'disabled-bg-color': getCssVar('color-primary', 'light-2'),
732
+ 'disabled-border-color': getCssVar('color-primary', 'light-2'),
733
+ 'divide-border-color': getCssVar('color-primary', 'light-4'),
734
+ 'hover-text-color': getCssVar('color', 'white'),
735
+ 'hover-bg-color': getCssVar('color-primary', 'light-4'),
736
+ 'hover-border-color': getCssVar('color-primary-light-4'),
737
+ 'active-text-color': getCssVar('button-hover-text-color'),
738
+ 'active-border-color': getCssVar('color-primary', 'light-6'),
739
+ 'active-bg-color': getCssVar('color-primary', 'light-6'),
740
+ 'outline-color': getCssVar('color-primary', 'light-6'),
741
+ 'hover-link-text-color': getCssVar('color-primary'),
742
+ 'active-color': getCssVar('text-color', 'primary'),
743
+ ),
744
+ $button
745
+ );
746
+
747
+ $button-border-width: $border-width !default;
748
+
749
+ // need mix, so do not use css var
750
+ $button-hover-tint-percent: 20%;
751
+ $button-active-shade-percent: 10%;
752
+
753
+ $button-border-color: () !default;
754
+ $button-bg-color: () !default;
755
+ $button-text-color: () !default;
756
+
757
+ @each $type in $types {
758
+ $button-border-color: map.merge(
759
+ (
760
+ $type: map.get($colors, $type, 'base'),
761
+ ),
762
+ $button-border-color
763
+ ) !global;
764
+
765
+ $button-bg-color: map.merge(
766
+ (
767
+ $type: map.get($colors, $type, 'base'),
768
+ ),
769
+ $button-bg-color
770
+ ) !global;
771
+ }
772
+
773
+ $button-font-size: () !default;
774
+ $button-font-size: map.merge(
775
+ (
776
+ 'large': 14px,
777
+ 'default': 14px,
778
+ 'medium': 14px,
779
+ 'small': 12px,
780
+ 'mini': 12px,
781
+ ),
782
+ $button-font-size
783
+ );
784
+
785
+ $button-border-radius: () !default;
786
+ $button-border-radius: map.merge(
787
+ (
788
+ // 'default': getCssVar('border-radius', 'base'),
789
+ // 'small': calc(#{getCssVar('border-radius', 'base')} - 1px),
790
+ 'default': getCssVar('border-radius', 'base'),
791
+ 'large': getCssVar('border-radius', 'base'),
792
+ 'medium': 4px,
793
+ 'small': 4px,
794
+ 'mini': 4px
795
+ ),
796
+ $button-border-radius
797
+ );
798
+
799
+ $button-padding-vertical: () !default;
800
+ $button-padding-vertical: map.merge(
801
+ (
802
+ 'default': 13px,
803
+ 'large': 13px,
804
+ 'medium': 9px,
805
+ 'small': 6px,
806
+ 'mini': 6px,
807
+ ),
808
+ $button-padding-vertical
809
+ );
810
+
811
+ $button-padding-horizontal: () !default;
812
+ $button-padding-horizontal: map.merge(
813
+ (
814
+ 'default': 16px,
815
+ 'large': 16px,
816
+ 'medium': 16px,
817
+ 'small': 16px,
818
+ 'mini': 16px,
819
+ ),
820
+ $button-padding-horizontal
821
+ );
822
+
823
+ // Switch
824
+ // css3 var in packages/theme-chalk/src/switch.scss
825
+ $switch: () !default;
826
+ $switch: map.merge(
827
+ (
828
+ 'on-color': getCssVar('color-success'),
829
+ 'on-box-shadow': 0 0 0 4px getCssVar('color-success-light-2'),
830
+ 'off-box-shadow': 0 0 0 4px getCssVar('color-neutral-light-3'),
831
+ 'off-color': getCssVar('color-neutral-light-7'),
832
+ 'on-disabled-color': getCssVar('color-neutral-light-3'),
833
+ 'off-disabled-color': getCssVar('color-success-light-3'),
834
+ ),
835
+ $switch
836
+ );
837
+
838
+ // Dialog
839
+ // css3 var in packages/theme-chalk/src/dialog.scss
840
+ $dialog: () !default;
841
+ $dialog: map.merge(
842
+ (
843
+ 'width': 630px,
844
+ 'margin-top': 15vh,
845
+ 'bg-color': getCssVar('bg-color'),
846
+ 'box-shadow': getCssVar('box-shadow'),
847
+ 'title-font-size': 18px,
848
+ 'title-line-height': 22px,
849
+ 'content-font-size': 14px,
850
+ 'content-line-height': 22px,
851
+ 'padding-primary': 24px,
852
+ 'border-radius': 4px,
853
+ ),
854
+ $dialog
855
+ );
856
+
857
+ // Tour
858
+ // css3 var in packages/theme-chalk/src/tour.scss
859
+ $tour: () !default;
860
+ $tour: map.merge(
861
+ (
862
+ 'width': 520px,
863
+ 'padding-primary': 12px,
864
+ 'font-line-height': getCssVar('font-line-height-primary'),
865
+ 'title-font-size': 16px,
866
+ 'title-text-color': getCssVar('text-color-primary'),
867
+ 'title-font-weight': 400,
868
+ 'close-color': getCssVar('color-info'),
869
+ 'font-size': 14px,
870
+ 'color': getCssVar('text-color-primary'),
871
+ 'bg-color': getCssVar('bg-color'),
872
+ 'border-radius': 4px,
873
+ ),
874
+ $tour
875
+ );
876
+
877
+ // Anchor
878
+ // css3 var in packages/theme-chalk/src/anchor.scss
879
+ $anchor: () !default;
880
+ $anchor: map.merge(
881
+ (
882
+ 'bg-color': getCssVar('bg-color'),
883
+ 'padding-indent': 14px,
884
+ 'line-height': 22px,
885
+ 'font-size': 12px,
886
+ 'color': getCssVar('text-color-secondary'),
887
+ 'active-color': getCssVar('color-primary'),
888
+ 'marker-bg-color': getCssVar('color-primary'),
889
+ ),
890
+ $anchor
891
+ );
892
+
893
+ // Segmented
894
+ // css3 var in packages/theme-chalk/src/segmented.scss
895
+ $segmented: () !default;
896
+ $segmented: map.merge(
897
+ (
898
+ 'color': getCssVar('text-color', 'regular'),
899
+ 'bg-color': getCssVar('fill-color', 'light'),
900
+ 'padding': 2px,
901
+ 'item-selected-color': getCssVar('color-white'),
902
+ 'item-selected-bg-color': getCssVar('color-primary'),
903
+ 'item-selected-disabled-bg-color': getCssVar('color-primary', 'light-5'),
904
+ 'item-hover-color': getCssVar('text-color', 'primary'),
905
+ 'item-hover-bg-color': getCssVar('fill-color', 'dark'),
906
+ 'item-active-bg-color': getCssVar('fill-color', 'darker'),
907
+ 'item-disabled-color': getCssVar('text-color', 'placeholder'),
908
+ ),
909
+ $segmented
910
+ );
911
+
912
+ // Mention
913
+ // css3 var in packages/theme-chalk/src/mention.scss
914
+ $mention: () !default;
915
+ $mention: map.merge(
916
+ (
917
+ 'font-size': getCssVar('font-size-base'),
918
+ 'bg-color': getCssVar('bg-color', 'overlay'),
919
+ 'shadow': getCssVar('box-shadow-light'),
920
+ 'border': 1px solid getCssVar('border-color-light'),
921
+ 'option-color': getCssVar('text-color-regular'),
922
+ 'option-height': 34px,
923
+ 'option-min-width': 100px,
924
+ 'option-hover-background': getCssVar('fill-color', 'light'),
925
+ 'option-selected-color': getCssVar('color-primary'),
926
+ 'option-disabled-color': getCssVar('text-color-placeholder'),
927
+ 'option-loading-color': getCssVar('text-color-secondary'),
928
+ 'option-loading-padding': 10px 0,
929
+ 'max-height': 174px,
930
+ 'padding': 6px 0,
931
+ 'header-padding': 10px,
932
+ 'footer-padding': 10px,
933
+ ),
934
+ $mention
935
+ );
936
+
937
+ // Table
938
+ // css3 var in packages/theme-chalk/src/table.scss
939
+ $table: () !default;
940
+ $table: map.merge(
941
+ (
942
+ 'border-color': getCssVar('color-neutral-light-3'),
943
+ 'border': 1px solid getCssVar('table-border-color'),
944
+ 'text-color': getCssVar('color-neutral-light-7'),
945
+ 'header-text-color': getCssVar('text-color-secondary'),
946
+ 'row-hover-bg-color': getCssVar('color-white'),
947
+ 'current-row-bg-color': getCssVar('color-primary-light-9'),
948
+ 'header-bg-color': getCssVar('bg-color'),
949
+ 'fixed-box-shadow': getCssVar('box-shadow', 'light'),
950
+ 'bg-color': getCssVar('fill-color', 'blank'),
951
+ 'tr-bg-color': getCssVar('bg-color'),
952
+ 'expanded-cell-bg-color': getCssVar('fill-color', 'blank'),
953
+ 'fixed-left-column': inset 10px 0 10px -10px rgb(0 0 0 / 15%),
954
+ 'fixed-right-column': inset -10px 0 10px -10px rgb(0 0 0 / 15%),
955
+ 'index': getCssVar('index-normal'),
956
+ 'font-weight-body': 300,
957
+ 'font-weight-head': 400,
958
+ ),
959
+ $table
960
+ );
961
+
962
+ $table-font-size: () !default;
963
+ $table-font-size: map.merge(
964
+ (
965
+ 'large': getCssVar('font-size', 'base'),
966
+ 'default': 14px,
967
+ 'small': 12px,
968
+ ),
969
+ $table-font-size
970
+ );
971
+
972
+ $table-padding: () !default;
973
+ $table-padding: map.merge(
974
+ (
975
+ 'large': 12px 0,
976
+ 'default': 11px 0,
977
+ 'small': 4px 0,
978
+ ),
979
+ $table-padding
980
+ );
981
+
982
+ $table-cell-padding: () !default;
983
+ $table-cell-padding: map.merge(
984
+ (
985
+ 'large': 0 16px,
986
+ 'default': 0 12px,
987
+ 'small': 0 8px,
988
+ ),
989
+ $table-cell-padding
990
+ );
991
+
992
+ // Pagination
993
+ // css3 var in packages/theme-chalk/src/pagination.scss
994
+ $pagination: () !default;
995
+ $pagination: map.merge(
996
+ (
997
+ 'font-size': 14px,
998
+ 'bg-color': getCssVar('fill-color', 'blank'),
999
+ 'text-color': getCssVar('color-neutral-light-4'),
1000
+ 'border-radius': 2px,
1001
+ 'button-color': getCssVar('color-neutral-light-4'),
1002
+ 'button-width': 32px,
1003
+ 'button-height': 30px,
1004
+ 'button-disabled-color': getCssVar('text-color-placeholder'),
1005
+ 'button-disabled-bg-color': getCssVar('fill-color', 'blank'),
1006
+ 'button-bg-color': getCssVar('fill-color'),
1007
+ 'hover-color': getCssVar('color-primary'),
1008
+ 'font-size-small': 12px,
1009
+ 'button-width-small': 24px,
1010
+ 'button-height-small': 30px,
1011
+ 'button-width-large': 40px,
1012
+ 'button-height-large': 30px,
1013
+ 'item-gap': 16px,
1014
+ 'width': 100%,
1015
+ ),
1016
+ $pagination
1017
+ );
1018
+
1019
+ // Popup
1020
+ // css3 var in packages/theme-chalk/src/popup.scss
1021
+ $popup: () !default;
1022
+ $popup: map.merge(
1023
+ (
1024
+ 'modal-bg-color': getCssVar('color-black'),
1025
+ 'modal-opacity': 0.5,
1026
+ ),
1027
+ $popup
1028
+ );
1029
+
1030
+ // Popover
1031
+ // css3 var in packages/theme-chalk/src/popover.scss
1032
+ $popover: () !default;
1033
+ $popover: map.merge(
1034
+ (
1035
+ 'bg-color': getCssVar('bg-color', 'overlay'),
1036
+ 'font-size': getCssVar('font-size-base'),
1037
+ 'border-color': getCssVar('border-color-lighter'),
1038
+ 'padding': 12px,
1039
+ 'padding-large': 18px 20px,
1040
+ 'title-font-size': 14px,
1041
+ 'title-text-color': getCssVar('text-color-regular'),
1042
+ 'border-radius': 6px,
1043
+ 'text-color': getCssVar('text-color-secondary'),
1044
+ ),
1045
+ $popover
1046
+ );
1047
+
1048
+ // popper
1049
+ // Pay attention to the difference between 'popper' and 'popover'
1050
+ $popper: () !default;
1051
+ $popper: map.merge(
1052
+ (
1053
+ 'border-radius': var(#{getCssVarName('popover-border-radius')}, 4px),
1054
+ ),
1055
+ $popper
1056
+ );
1057
+
1058
+ // skeleton
1059
+ $skeleton: () !default;
1060
+ $skeleton: map.merge(
1061
+ (
1062
+ 'color': getCssVar('fill-color'),
1063
+ 'to-color': getCssVar('fill-color', 'darker'),
1064
+ ),
1065
+ $skeleton
1066
+ );
1067
+
1068
+ // Tag
1069
+ // css3 var in packages/theme-chalk/src/tag.scss
1070
+ $tag: () !default;
1071
+ $tag: map.merge(
1072
+ (
1073
+ 'font-size': 10px,
1074
+ 'border-radius': 2px,
1075
+ 'border-radius-rounded': 9999px,
1076
+ ),
1077
+ $tag
1078
+ );
1079
+
1080
+ $tag-height: () !default;
1081
+ $tag-height: map.merge(
1082
+ (
1083
+ 'default': 18px,
1084
+ 'large': 32px,
1085
+ 'medium': 28px,
1086
+ 'small': 24px,
1087
+ 'mini': 18px,
1088
+ ),
1089
+ $tag-height
1090
+ );
1091
+
1092
+ $tag-padding: () !default;
1093
+ $tag-padding: map.merge(
1094
+ (
1095
+ 'default': 8px,
1096
+ 'large': 8px,
1097
+ 'medium': 8px,
1098
+ 'small': 8px,
1099
+ 'mini': 8px,
1100
+ ),
1101
+ $tag-padding
1102
+ );
1103
+
1104
+ $tag-icon-size: () !default;
1105
+ $tag-icon-size: map.merge(
1106
+ (
1107
+ 'default': 12px,
1108
+ 'large': 16px,
1109
+ 'medium': 14px,
1110
+ 'small': 12px,
1111
+ 'mini': 8px,
1112
+ ),
1113
+ $tag-icon-size
1114
+ );
1115
+
1116
+ // Text
1117
+ // css3 var in packages/theme-chalk/src/text.scss
1118
+ $text: () !default;
1119
+ $text: map.merge(
1120
+ (
1121
+ 'font-size': getCssVar('font-size', 'base'),
1122
+ 'color': getCssVar('text-color', 'regular'),
1123
+ ),
1124
+ $text
1125
+ );
1126
+
1127
+ $text-font-size: () !default;
1128
+ $text-font-size: map.merge(
1129
+ (
1130
+ 'default': getCssVar('font-size', 'large'),
1131
+ 'large': getCssVar('font-size', 'large'),
1132
+ 'medium': getCssVar('font-size', 'medium'),
1133
+ 'small': getCssVar('font-size', 'small'),
1134
+ 'mini': getCssVar('font-size', 'mini'),
1135
+ ),
1136
+ $text-font-size
1137
+ );
1138
+
1139
+ // Tree
1140
+ // css3 var in packages/theme-chalk/src/tree.scss
1141
+ $tree: () !default;
1142
+ $tree: map.merge(
1143
+ (
1144
+ 'node-content-height': 26px,
1145
+ 'node-hover-bg-color': getCssVar('fill-color', 'light'),
1146
+ 'text-color': getCssVar('text-color-regular'),
1147
+ 'expand-icon-color': getCssVar('text-color-placeholder'),
1148
+ ),
1149
+ $tree
1150
+ );
1151
+
1152
+ // Dropdown
1153
+ $dropdown: () !default;
1154
+ $dropdown: map.merge(
1155
+ (
1156
+ 'menu-box-shadow': getCssVar('box-shadow-light'),
1157
+ 'menuItem-hover-fill': getCssVar('color-white'),
1158
+ 'menuItem-hover-color': getCssVar('color-primary'),
1159
+ 'menu-index': 10,
1160
+ ),
1161
+ $dropdown
1162
+ );
1163
+
1164
+ // drawer
1165
+ $drawer: () !default;
1166
+ $drawer: map.merge(
1167
+ (
1168
+ 'bg-color': var(#{getCssVarName('dialog', 'bg-color')}, #{getCssVar('bg-color')}),
1169
+ 'padding-primary': var(#{getCssVarName('dialog', 'padding-primary')}, 20px),
1170
+ ),
1171
+ $drawer
1172
+ );
1173
+
1174
+ // Badge
1175
+ // css3 var in packages/theme-chalk/src/badge.scss
1176
+ $badge: () !default;
1177
+ $badge: map.merge(
1178
+ (
1179
+ 'bg-color': getCssVar('color-danger'),
1180
+ 'radius': 10px,
1181
+ 'font-size': 8px,
1182
+ 'padding': 6px,
1183
+ 'size': 16px,
1184
+ ),
1185
+ $badge
1186
+ );
1187
+
1188
+ // Card
1189
+ $card: () !default;
1190
+ $card: map.merge(
1191
+ (
1192
+ 'border-color': getCssVar('border-color', 'light'),
1193
+ 'border-radius': 6px,
1194
+ 'padding': 24px,
1195
+ 'bg-color': getCssVar('fill-color', 'blank'),
1196
+ ),
1197
+ $card
1198
+ );
1199
+
1200
+ // Slider
1201
+ // css3 var in packages/theme-chalk/src/slider.scss
1202
+ $slider: () !default;
1203
+ $slider: map.merge(
1204
+ (
1205
+ 'main-bg-color': getCssVar('color-primary'),
1206
+ 'runway-bg-color': getCssVar('border-color-light'),
1207
+ 'stop-bg-color': getCssVar('color-white'),
1208
+ 'disabled-color': getCssVar('text-color-placeholder'),
1209
+ 'border-radius': 3px,
1210
+ 'height': 6px,
1211
+ 'button-size': 20px,
1212
+ 'button-wrapper-size': 36px,
1213
+ 'button-wrapper-offset': -15px,
1214
+ ),
1215
+ $slider
1216
+ );
1217
+
1218
+ // Menu
1219
+ // css3 var in packages/theme-chalk/src/menu.scss
1220
+ $menu: () !default;
1221
+ $menu: map.merge(
1222
+ (
1223
+ 'active-color': getCssVar('color-white'),
1224
+ 'active-bg-color': getCssVar('color-primary-light-5'),
1225
+ 'text-color': getCssVar('color-neutral-light-7'),
1226
+ 'hover-text-color': getCssVar('color-primary'),
1227
+ 'bg-color': getCssVar('color-white'),
1228
+ 'hover-bg-color': getCssVar('color-white'),
1229
+ 'item-height': 40px,
1230
+ 'sub-item-height': calc(#{getCssVar('menu-item-height')} - 0px),
1231
+ 'horizontal-height': 60px,
1232
+ 'horizontal-sub-item-height': 36px,
1233
+ 'item-font-size': getCssVar('font-size-base'),
1234
+ 'item-hover-fill': getCssVar('color-primary-light-9'),
1235
+ 'border-color': getCssVar('border-color'),
1236
+ 'base-level-padding': 8px,
1237
+ 'level-padding': 20px,
1238
+ 'icon-width': 14px,
1239
+ 'border-radius': 4px,
1240
+ 'items-gap': 6px,
1241
+ ),
1242
+ $menu
1243
+ );
1244
+
1245
+ // Rate
1246
+ $rate: () !default;
1247
+ $rate: map.merge(
1248
+ (
1249
+ 'height': 20px,
1250
+ 'font-size': getCssVar('font-size-base'),
1251
+ 'icon-size': 18px,
1252
+ 'icon-margin': 6px,
1253
+ // seems not be used, to be removed
1254
+ // 'icon-color': getCssVar('text-color-placeholder),
1255
+ 'void-color': getCssVar('border-color', 'darker'),
1256
+ 'fill-color': #f7ba2a,
1257
+ 'disabled-void-color': getCssVar('fill-color'),
1258
+ 'text-color': getCssVar('text-color', 'primary'),
1259
+ ),
1260
+ $rate
1261
+ );
1262
+
1263
+ // DatePicker
1264
+ // css3 var packages/theme-chalk/src/date-picker/var.scss
1265
+ $datepicker: () !default;
1266
+ $datepicker: map.merge(
1267
+ (
1268
+ 'text-color': getCssVar('text-color-regular'),
1269
+ 'off-text-color': getCssVar('text-color-placeholder'),
1270
+ 'header-text-color': getCssVar('color-neutral-light-4'),
1271
+ 'icon-color': getCssVar('color-neutral-light-4'),
1272
+ 'border-color': getCssVar('disabled-border-color'),
1273
+ 'inner-border-color': getCssVar('border-color-light'),
1274
+ 'inrange-bg-color': getCssVar('color-primary-light-1'),
1275
+ 'inrange-hover-bg-color': getCssVar('color-primary-light-1'),
1276
+ 'active-color': getCssVar('color-primary'),
1277
+ 'hover-text-color': getCssVar('color-primary'),
1278
+ ),
1279
+ $datepicker
1280
+ );
1281
+
1282
+ $date-editor: () !default;
1283
+ $date-editor: map.merge(
1284
+ (
1285
+ 'width': 220px,
1286
+ 'monthrange-width': 300px,
1287
+ 'daterange-width': 350px,
1288
+ 'datetimerange-width': 400px,
1289
+ ),
1290
+ $date-editor
1291
+ );
1292
+
1293
+ // Loading
1294
+ // css3 var in packages/theme-chalk/src/loading.scss
1295
+ $loading: () !default;
1296
+ $loading: map.merge(
1297
+ (
1298
+ 'spinner-size': 42px,
1299
+ 'fullscreen-spinner-size': 50px,
1300
+ ),
1301
+ $loading
1302
+ );
1303
+
1304
+ // Scrollbar
1305
+ // css3 var in packages/theme-chalk/src/scrollbar.scss
1306
+ $scrollbar: () !default;
1307
+ $scrollbar: map.merge(
1308
+ (
1309
+ 'opacity': 0.3,
1310
+ 'bg-color': getCssVar('text-color-secondary'),
1311
+ 'hover-opacity': 0.5,
1312
+ 'hover-bg-color': getCssVar('text-color-secondary'),
1313
+ ),
1314
+ $scrollbar
1315
+ );
1316
+
1317
+ // Carousel
1318
+ // css3 var in packages/theme-chalk/src/carousel.scss
1319
+ $carousel: () !default;
1320
+ $carousel: map.merge(
1321
+ (
1322
+ 'arrow-font-size': 12px,
1323
+ 'arrow-size': 36px,
1324
+ 'arrow-background': rgba(31, 45, 61, 0.11),
1325
+ 'arrow-hover-background': rgba(31, 45, 61, 0.23),
1326
+ 'indicator-width': 30px,
1327
+ 'indicator-height': 2px,
1328
+ 'indicator-padding-horizontal': 4px,
1329
+ 'indicator-padding-vertical': 12px,
1330
+ 'indicator-out-color': getCssVar('border-color-hover'),
1331
+ ),
1332
+ $carousel
1333
+ );
1334
+
1335
+ // Collapse
1336
+ // css3 var in packages/theme-chalk/src/collapse.scss
1337
+ $collapse: () !default;
1338
+ $collapse: map.merge(
1339
+ (
1340
+ 'border-color': getCssVar('border-color-lighter'),
1341
+ 'header-height': 48px,
1342
+ 'header-bg-color': getCssVar('fill-color', 'blank'),
1343
+ 'header-text-color': getCssVar('text-color-primary'),
1344
+ 'header-font-size': 13px,
1345
+ 'content-bg-color': getCssVar('fill-color', 'blank'),
1346
+ 'content-font-size': 13px,
1347
+ 'content-text-color': getCssVar('text-color-primary'),
1348
+ ),
1349
+ $collapse
1350
+ );
1351
+
1352
+ // Transfer
1353
+ // css3 var in packages/theme-chalk/src/transfer.scss
1354
+ $transfer: () !default;
1355
+ $transfer: map.merge(
1356
+ (
1357
+ 'border-color': getCssVar('border-color-lighter'),
1358
+ 'border-radius': getCssVar('border-radius-base'),
1359
+ 'panel-width': 200px,
1360
+ 'panel-header-height': 40px,
1361
+ 'panel-header-bg-color': getCssVar('fill-color', 'light'),
1362
+ 'panel-footer-height': 40px,
1363
+ 'panel-body-height': 278px,
1364
+ 'item-height': 30px,
1365
+ 'filter-height': 32px,
1366
+ ),
1367
+ $transfer
1368
+ );
1369
+
1370
+ // Timeline
1371
+ // css3 var in packages/theme-chalk/src/timeline-item.scss
1372
+ $timeline: () !default;
1373
+ $timeline: map.merge(
1374
+ (
1375
+ 'node-size-normal': 12px,
1376
+ 'node-size-large': 14px,
1377
+ 'node-color': getCssVar('border-color-light'),
1378
+ ),
1379
+ $timeline
1380
+ );
1381
+
1382
+ // Tabs
1383
+ // css3 var in packages/theme-chalk/src/tabs.scss
1384
+ $tabs: () !default;
1385
+ $tabs: map.merge(
1386
+ (
1387
+ 'header-height': 40px,
1388
+ ),
1389
+ $tabs
1390
+ );
1391
+
1392
+ // Backtop
1393
+ // css3 var in packages/theme-chalk/src/backtop.scss
1394
+ $backtop: () !default;
1395
+ $backtop: map.merge(
1396
+ (
1397
+ 'bg-color': getCssVar('bg-color', 'overlay'),
1398
+ 'text-color': getCssVar('color-primary'),
1399
+ 'hover-bg-color': getCssVar('border-color-extra-light'),
1400
+ ),
1401
+ $backtop
1402
+ );
1403
+
1404
+ // Link
1405
+ // css3 var in packages/theme-chalk/src/link.scss
1406
+ $link: () !default;
1407
+ $link: map.merge(
1408
+ (
1409
+ 'font-size': getCssVar('font-size-base'),
1410
+ 'font-weight': getCssVar('font-weight-primary'),
1411
+ 'text-color': getCssVar('color-primary-light-5'),
1412
+ 'hover-text-color': getCssVar('color-primary-light-4'),
1413
+ 'disabled-text-color': getCssVar('color-primary-light-2'),
1414
+ 'active-text-color': getCssVar('color-primary-light-6'),
1415
+ ),
1416
+ $link
1417
+ );
1418
+
1419
+ $link-text-color: () !default;
1420
+
1421
+ @each $type in $types {
1422
+ $link-text-color: map.merge(
1423
+ $link-text-color,
1424
+ (
1425
+ $type: map.get($colors, $type, 'base'),
1426
+ )
1427
+ ) !global;
1428
+ }
1429
+
1430
+ // Calendar
1431
+ // css3 var in packages/theme-chalk/src/calendar.scss
1432
+ $calendar: () !default;
1433
+ $calendar: map.merge(
1434
+ (
1435
+ 'border': var(#{getCssVarName('table-border')}, 1px solid #{getCssVar('border-color-lighter')}),
1436
+ 'header-border-bottom': getCssVar('calendar-border'),
1437
+ 'selected-bg-color': getCssVar('color', 'primary', 'light-9'),
1438
+ 'cell-width': 85px,
1439
+ ),
1440
+ $calendar
1441
+ );
1442
+
1443
+ // Form
1444
+ // css3 var in packages/theme-chalk/src/form.scss
1445
+ $form: () !default;
1446
+ $form: map.merge(
1447
+ (
1448
+ 'label-font-size': 12px,
1449
+ 'label-font-weight': 500,
1450
+ 'inline-content-width': 220px,
1451
+ ),
1452
+ $form
1453
+ );
1454
+
1455
+ // Avatar
1456
+ // css3 var in packages/theme-chalk/src/avatar.scss
1457
+ $avatar: () !default;
1458
+ $avatar: map.merge(
1459
+ (
1460
+ 'text-color': getCssVar('color-neutral-light-4'),
1461
+ 'bg-color': getCssVar('color', 'white'),
1462
+ 'text-size': 16px,
1463
+ 'line-height': 18px,
1464
+ 'icon-size': 16px,
1465
+ 'border-color': getCssVar('color-neutral-light-3'),
1466
+ 'border-color-hover': getCssVar('color-neutral-light-4'),
1467
+ 'border-radius': getCssVar('border-radius-base'),
1468
+ ),
1469
+ $avatar
1470
+ );
1471
+
1472
+ $avatar-size: () !default;
1473
+ $avatar-size: map.merge(
1474
+ (
1475
+ 'default': 32px,
1476
+ 'large': 56px,
1477
+ 'medium': 44px,
1478
+ 'small': 32px,
1479
+ 'mini': 16px,
1480
+ ),
1481
+ $avatar-size
1482
+ );
1483
+
1484
+ $avatar-font-size: () !default;
1485
+ $avatar-font-size: map.merge(
1486
+ (
1487
+ 'default': 16px,
1488
+ 'large': 16px,
1489
+ 'medium': 16px,
1490
+ 'small': 14px,
1491
+ 'mini': 8px,
1492
+ ),
1493
+ $avatar-font-size
1494
+ );
1495
+
1496
+ // Empty
1497
+ // css3 var in packages/theme-chalk/src/empty.scss
1498
+ $empty: () !default;
1499
+ $empty: map.merge(
1500
+ (
1501
+ 'padding': 40px 0,
1502
+ 'image-width': 160px,
1503
+ 'description-margin-top': 20px,
1504
+ 'bottom-margin-top': 20px,
1505
+ 'fill-color-0': getCssVar('color-white'),
1506
+ 'fill-color-1': #fcfcfd,
1507
+ 'fill-color-2': #f8f9fb,
1508
+ 'fill-color-3': #f7f8fc,
1509
+ 'fill-color-4': #eeeff3,
1510
+ 'fill-color-5': #edeef2,
1511
+ 'fill-color-6': #e9ebef,
1512
+ 'fill-color-7': #e5e7e9,
1513
+ 'fill-color-8': #e0e3e9,
1514
+ 'fill-color-9': #d5d7de,
1515
+ ),
1516
+ $empty
1517
+ );
1518
+
1519
+ // Descriptions
1520
+ // css3 var in packages/theme-chalk/src/descriptions.scss
1521
+ $descriptions: () !default;
1522
+ $descriptions: map.merge(
1523
+ (
1524
+ 'table-border': none,
1525
+ // 1px solid getCssVar('border-color-lighter'),
1526
+ 'item-bordered-label-background': getCssVar('fill-color', 'light'),
1527
+ ),
1528
+ $descriptions
1529
+ );
1530
+
1531
+ // Result
1532
+ // css3 var in packages/theme-chalk/src/result.scss
1533
+ $result: () !default;
1534
+ $result: map.merge(
1535
+ (
1536
+ 'padding': 40px 30px,
1537
+ 'icon-font-size': 64px,
1538
+ 'title-font-size': 20px,
1539
+ 'title-margin-top': 20px,
1540
+ 'subtitle-margin-top': 10px,
1541
+ 'extra-margin-top': 30px,
1542
+ ),
1543
+ $result
1544
+ );
1545
+
1546
+ // Upload
1547
+ // css3 var in packages/theme-chalk/src/upload.scss
1548
+ $upload: () !default;
1549
+ $upload: map.merge(
1550
+ (
1551
+ 'dragger-padding-horizontal': 40px,
1552
+ 'dragger-padding-vertical': 10px,
1553
+ ),
1554
+ $upload
1555
+ );
1556
+
1557
+ // transition
1558
+ $transition: () !default;
1559
+ $transition: map.merge(
1560
+ (
1561
+ 'all': all getCssVar('transition-duration') getCssVar('transition-function-ease-in-out-bezier'),
1562
+ 'fade': opacity getCssVar('transition-duration') getCssVar('transition-function-fast-bezier'),
1563
+ 'md-fade': (
1564
+ transform getCssVar('transition-duration') getCssVar('transition-function-fast-bezier'),
1565
+ opacity getCssVar('transition-duration') getCssVar('transition-function-fast-bezier'),
1566
+ ),
1567
+ 'fade-linear': opacity getCssVar('transition-duration-fast') linear,
1568
+ 'border': border-color getCssVar('transition-duration-fast') getCssVar('transition-function-ease-in-out-bezier'),
1569
+ 'box-shadow': box-shadow getCssVar('transition-duration-fast') getCssVar('transition-function-ease-in-out-bezier'),
1570
+ 'color': color getCssVar('transition-duration-fast') getCssVar('transition-function-ease-in-out-bezier'),
1571
+ ),
1572
+ $transition
1573
+ );
1574
+
1575
+ $transition-duration: () !default;
1576
+ $transition-duration: map.merge(
1577
+ (
1578
+ '': 0.3s,
1579
+ 'fast': 0.2s,
1580
+ ),
1581
+ $transition-duration
1582
+ );
1583
+
1584
+ $transition-function: () !default;
1585
+ $transition-function: map.merge(
1586
+ (
1587
+ 'ease-in-out-bezier': cubic-bezier(0.645, 0.045, 0.355, 1),
1588
+ 'fast-bezier': cubic-bezier(0.23, 1, 0.32, 1),
1589
+ ),
1590
+ $transition-function
1591
+ );
1592
+
1593
+ // header
1594
+ $header: () !default;
1595
+ $header: map.merge(
1596
+ (
1597
+ 'padding': 0 20px,
1598
+ 'height': 60px,
1599
+ ),
1600
+ $header
1601
+ );
1602
+ // main
1603
+ $main: () !default;
1604
+ $main: map.merge(
1605
+ (
1606
+ 'padding': 20px,
1607
+ ),
1608
+ $main
1609
+ );
1610
+ // footer
1611
+ $footer: () !default;
1612
+ $footer: map.merge(
1613
+ (
1614
+ 'padding': 0 20px,
1615
+ 'height': 60px,
1616
+ ),
1617
+ $footer
1618
+ );
1619
+
1620
+ // Break-point
1621
+ $sm: 768px !default;
1622
+ $md: 992px !default;
1623
+ $lg: 1200px !default;
1624
+ $xl: 1920px !default;
1625
+
1626
+ $breakpoints: (
1627
+ 'xs': '(max-width: #{$sm - 1})',
1628
+ 'sm': '(min-width: #{$sm})',
1629
+ 'md': '(min-width: #{$md})',
1630
+ 'lg': '(min-width: #{$lg})',
1631
+ 'xl': '(min-width: #{$xl})',
1632
+ ) !default;
1633
+
1634
+ $breakpoints-spec: (
1635
+ 'xs-only': '(max-width: #{$sm - 1})',
1636
+ 'sm-and-up': '(min-width: #{$sm})',
1637
+ 'sm-only': '(min-width: #{$sm}) and (max-width: #{$md - 1})',
1638
+ 'sm-and-down': '(max-width: #{$md - 1})',
1639
+ 'md-and-up': '(min-width: #{$md})',
1640
+ 'md-only': '(min-width: #{$md}) and (max-width: #{$lg - 1})',
1641
+ 'md-and-down': '(max-width: #{$lg - 1})',
1642
+ 'lg-and-up': '(min-width: #{$lg})',
1643
+ 'lg-only': '(min-width: #{$lg}) and (max-width: #{$xl - 1})',
1644
+ 'lg-and-down': '(max-width: #{$xl - 1})',
1645
+ 'xl-only': '(min-width: #{$xl})',
1646
+ ) !default;