@sdata/web-vue 4.7.1 → 5.0.0

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 (219) hide show
  1. package/dist/sd.css +4004 -3955
  2. package/dist/sd.min.css +13 -13
  3. package/es/_components/input-label/style/index.css +47 -47
  4. package/es/_components/select-view/style/index.css +256 -256
  5. package/es/alert/style/index.css +48 -48
  6. package/es/alert/style/token.scss +257 -0
  7. package/es/anchor/style/index.css +18 -18
  8. package/es/anchor/style/token.scss +74 -0
  9. package/es/auto-complete/style/index.css +18 -18
  10. package/es/auto-complete/style/token.scss +94 -0
  11. package/es/avatar/style/index.css +31 -31
  12. package/es/avatar/style/token.scss +118 -0
  13. package/es/back-top/style/index.css +11 -11
  14. package/es/back-top/style/token.scss +60 -0
  15. package/es/badge/style/index.css +35 -35
  16. package/es/badge/style/token.scss +148 -0
  17. package/es/basic-crud-table/style/index.css +4 -4
  18. package/es/basic-crud-table/style/token.scss +20 -0
  19. package/es/bloom-menu/style/index.css +33 -34
  20. package/es/bloom-menu/style/index.scss +5 -5
  21. package/es/bloom-menu/style/token.scss +99 -0
  22. package/es/border-beam/style/token.scss +28 -0
  23. package/es/breadcrumb/style/index.css +17 -17
  24. package/es/breadcrumb/style/token.scss +97 -0
  25. package/es/button/style/index.css +379 -379
  26. package/es/button/style/index.scss +3 -3
  27. package/es/button/style/token.scss +1604 -0
  28. package/es/card/style/index.css +36 -36
  29. package/es/card/style/token.scss +162 -0
  30. package/es/carousel/style/index.css +41 -41
  31. package/es/carousel/style/token.scss +101 -0
  32. package/es/cascader/style/index.css +58 -58
  33. package/es/cascader/style/token.scss +89 -0
  34. package/es/checkbox/style/index.css +28 -28
  35. package/es/checkbox/style/token.scss +134 -0
  36. package/es/collapse/style/index.css +24 -24
  37. package/es/collapse/style/token.scss +136 -0
  38. package/es/color-picker/style/index.css +50 -50
  39. package/es/color-picker/style/token.scss +200 -0
  40. package/es/comment/style/index.css +15 -15
  41. package/es/comment/style/token.scss +83 -0
  42. package/es/config-provider/algorithms.d.ts +11 -0
  43. package/es/config-provider/algorithms.js +53 -0
  44. package/es/config-provider/global-theme.js +7 -4
  45. package/es/config-provider/theme-config.d.ts +11 -0
  46. package/es/config-provider/theme-config.js +114 -0
  47. package/es/config-provider/theme-provider.vue_vue_type_script_setup_true_lang.js +46 -11
  48. package/es/config-provider/theme.d.ts +4 -1
  49. package/es/config-provider/theme.js +6 -5
  50. package/es/config-provider/token-key.d.ts +1 -0
  51. package/es/config-provider/token-key.js +6 -0
  52. package/es/copy/style/index.css +1 -1
  53. package/es/copy/style/token.scss +9 -0
  54. package/es/cropper/style/index.css +7 -7
  55. package/es/cropper/style/token.scss +24 -0
  56. package/es/date-picker/style/index.css +73 -73
  57. package/es/date-picker/style/token.scss +229 -0
  58. package/es/descriptions/style/index.css +45 -45
  59. package/es/descriptions/style/token.scss +191 -0
  60. package/es/divider/style/index.css +11 -11
  61. package/es/divider/style/token.scss +60 -0
  62. package/es/drawer/style/index.css +13 -13
  63. package/es/drawer/style/token.scss +68 -0
  64. package/es/dropdown/style/index.css +24 -23
  65. package/es/dropdown/style/index.scss +4 -2
  66. package/es/dropdown/style/token.scss +123 -0
  67. package/es/ellipsis/ellipsis.vue_vue_type_script_setup_true_lang.js +3 -3
  68. package/es/ellipsis/interface.d.ts +1 -0
  69. package/es/ellipsis/style/index.css +2 -2
  70. package/es/ellipsis/style/token.scss +5 -0
  71. package/es/empty/style/index.css +7 -7
  72. package/es/empty/style/token.scss +35 -0
  73. package/es/file-previewer/style/index.css +44 -44
  74. package/es/file-previewer/style/token.scss +198 -0
  75. package/es/form/style/index.css +113 -113
  76. package/es/form/style/token.scss +340 -0
  77. package/es/image/style/index.css +83 -83
  78. package/es/image/style/token.scss +451 -0
  79. package/es/index.css +4004 -3955
  80. package/es/index.d.ts +3 -0
  81. package/es/index.js +4 -1
  82. package/es/input/style/index.css +104 -104
  83. package/es/input/style/input.scss +2 -8
  84. package/es/input/style/size.scss +4 -4
  85. package/es/input/style/token.scss +327 -0
  86. package/es/input-mask/style/index.css +1 -1
  87. package/es/input-mask/style/token.scss +8 -0
  88. package/es/input-number/style/index.css +19 -19
  89. package/es/input-number/style/token.scss +82 -0
  90. package/es/input-tag/style/index.css +209 -209
  91. package/es/input-tag/style/token.scss +226 -0
  92. package/es/json-form/style/index.css +2 -2
  93. package/es/json-form/style/token.scss +21 -0
  94. package/es/kv-list/style/index.css +13 -13
  95. package/es/kv-list/style/token.scss +29 -0
  96. package/es/layout/style/index.css +38 -38
  97. package/es/layout/style/token.scss +100 -0
  98. package/es/link/style/index.css +28 -28
  99. package/es/link/style/token.scss +117 -0
  100. package/es/list/style/index.css +27 -27
  101. package/es/list/style/token.scss +178 -0
  102. package/es/mention/style/token.scss +22 -0
  103. package/es/menu/style/index.css +153 -120
  104. package/es/menu/style/index.scss +12 -4
  105. package/es/menu/style/token.scss +390 -0
  106. package/es/message/style/index.css +33 -33
  107. package/es/message/style/token.scss +218 -0
  108. package/es/modal/style/index.css +21 -21
  109. package/es/modal/style/token.scss +115 -0
  110. package/es/model-selector/style/index.css +1 -1
  111. package/es/notification/style/index.css +44 -44
  112. package/es/notification/style/token.scss +241 -0
  113. package/es/number-flow/style/index.css +5 -5
  114. package/es/number-flow/style/token.scss +19 -0
  115. package/es/page-header/style/index.css +25 -25
  116. package/es/page-header/style/token.scss +139 -0
  117. package/es/pagination/style/index.css +85 -85
  118. package/es/pagination/style/token.scss +303 -0
  119. package/es/panel-group/style/index.css +7 -7
  120. package/es/panel-group/style/token.scss +28 -0
  121. package/es/popconfirm/style/index.css +18 -18
  122. package/es/popconfirm/style/token.scss +83 -0
  123. package/es/popover/style/index.css +12 -12
  124. package/es/popover/style/token.scss +58 -0
  125. package/es/progress/style/index.css +55 -55
  126. package/es/progress/style/token.scss +253 -0
  127. package/es/qr-code/style/index.css +18 -21
  128. package/es/qr-code/style/index.scss +4 -6
  129. package/es/qr-code/style/token.scss +59 -0
  130. package/es/radio/style/index.css +45 -44
  131. package/es/radio/style/index.scss +1 -0
  132. package/es/radio/style/token.scss +185 -0
  133. package/es/rate/style/index.css +8 -8
  134. package/es/rate/style/token.scss +19 -0
  135. package/es/regex-vis/style/index.css +51 -51
  136. package/es/regex-vis/style/token.scss +170 -0
  137. package/es/result/style/index.css +26 -26
  138. package/es/result/style/token.scss +139 -0
  139. package/es/rich-text-editor/style/index.css +31 -31
  140. package/es/rich-text-editor/style/token.scss +120 -0
  141. package/es/scrollbar/style/index.css +14 -14
  142. package/es/scrollbar/style/token.scss +33 -0
  143. package/es/secret/style/index.css +6 -6
  144. package/es/secret/style/token.scss +30 -0
  145. package/es/select/style/index.css +27 -27
  146. package/es/select/style/token.scss +151 -0
  147. package/es/selectable-card/style/index.css +53 -51
  148. package/es/selectable-card/style/index.scss +6 -2
  149. package/es/selectable-card/style/token.scss +60 -0
  150. package/es/sender/style/index.css +54 -54
  151. package/es/sender/style/token.scss +155 -0
  152. package/es/skeleton/style/index.css +12 -12
  153. package/es/skeleton/style/token.scss +60 -0
  154. package/es/slider/style/index.css +34 -34
  155. package/es/slider/style/token.scss +144 -0
  156. package/es/spin/style/index.css +11 -11
  157. package/es/spin/style/token.scss +60 -0
  158. package/es/split/style/index.css +2 -2
  159. package/es/split/style/token.scss +18 -0
  160. package/es/statistic/style/index.css +13 -13
  161. package/es/statistic/style/token.scss +73 -0
  162. package/es/steps/style/index.css +98 -98
  163. package/es/steps/style/token.scss +464 -0
  164. package/es/style/color/css-variables.scss +382 -381
  165. package/es/style/theme/css-variables.scss +329 -135
  166. package/es/style/theme/global.scss +5 -5
  167. package/es/style/theme/index.scss +1 -1
  168. package/es/style/theme/runtime.scss +29 -0
  169. package/es/switch/style/index.css +37 -37
  170. package/es/switch/style/token.scss +135 -0
  171. package/es/table/style/index.css +127 -127
  172. package/es/table/style/token.scss +425 -0
  173. package/es/tabs/style/index.css +196 -190
  174. package/es/tabs/style/index.scss +27 -17
  175. package/es/tabs/style/token.scss +534 -0
  176. package/es/tag/index.d.ts +13 -0
  177. package/es/tag/interface.d.ts +1 -0
  178. package/es/tag/style/index.css +159 -159
  179. package/es/tag/style/token.scss +513 -0
  180. package/es/tag/tag.vue.d.ts +13 -3
  181. package/es/tag/tag.vue_vue_type_script_setup_true_lang.js +35 -8
  182. package/es/tag-group/style/index.css +3 -3
  183. package/es/tag-group/style/token.scss +9 -0
  184. package/es/textarea/style/index.css +40 -40
  185. package/es/time-picker/style/index.css +12 -12
  186. package/es/time-picker/style/token.scss +50 -0
  187. package/es/timeline/style/index.css +22 -22
  188. package/es/timeline/style/token.scss +75 -0
  189. package/es/toolbar/style/index.css +6 -6
  190. package/es/toolbar/style/token.scss +45 -0
  191. package/es/tooltip/style/index.css +8 -8
  192. package/es/tooltip/style/token.scss +46 -0
  193. package/es/tour/style/index.css +28 -28
  194. package/es/tour/style/token.scss +65 -0
  195. package/es/transfer/style/index.css +46 -45
  196. package/es/transfer/style/index.scss +4 -1
  197. package/es/transfer/style/token.scss +199 -0
  198. package/es/tree/style/index.css +43 -36
  199. package/es/tree/style/index.scss +10 -0
  200. package/es/tree/style/token.scss +163 -0
  201. package/es/tree-select/style/index.css +9 -9
  202. package/es/tree-select/style/token.scss +21 -0
  203. package/es/trigger/style/index.css +7 -7
  204. package/es/trigger/style/token.scss +19 -0
  205. package/es/typography/style/index.css +40 -40
  206. package/es/typography/style/token.scss +220 -0
  207. package/es/upload/index.d.ts +3 -0
  208. package/es/upload/style/index.css +95 -95
  209. package/es/upload/style/token.scss +470 -0
  210. package/es/upload/upload.vue.d.ts +2 -0
  211. package/es/upload/upload.vue_vue_type_script_setup_true_lang.js +109 -16
  212. package/json/vetur-attributes.json +7 -0
  213. package/json/vetur-tags.json +4 -1
  214. package/json/web-types.json +18 -2
  215. package/package.json +7 -2
  216. package/es/style/color/palette-dark.d.ts +0 -4
  217. package/es/style/color/palette-dark.js +0 -10
  218. package/es/style/color/palette.d.ts +0 -4
  219. package/es/style/color/palette.js +0 -10
@@ -2,145 +2,339 @@
2
2
  @use '@style/theme/index.scss' as theme;
3
3
 
4
4
  #{theme.$sd-theme-tag} {
5
- #{theme.$sd-cssvars-prefix}-color-white: theme.$color-white;
6
- #{theme.$sd-cssvars-prefix}-color-black: theme.$color-black;
7
- #{theme.$sd-cssvars-prefix}-color-border: theme.$color-border;
8
- #{theme.$sd-cssvars-prefix}-color-bg-popup: theme.$color-bg-popup;
9
- #{theme.$sd-cssvars-prefix}-color-bg-1: theme.$color-bg-1;
10
- #{theme.$sd-cssvars-prefix}-color-bg-2: theme.$color-bg-2;
11
- #{theme.$sd-cssvars-prefix}-color-bg-3: theme.$color-bg-3;
12
- #{theme.$sd-cssvars-prefix}-color-bg-4: theme.$color-bg-4;
13
- #{theme.$sd-cssvars-prefix}-color-bg-5: theme.$color-bg-5;
14
- #{theme.$sd-cssvars-prefix}-color-bg-white: theme.$color-bg-white;
15
- #{theme.$sd-cssvars-prefix}-color-neutral-1: rgb(
16
- var(string.unquote('#{theme.$sd-cssvars-prefix}-gray-1'))
17
- );
18
- #{theme.$sd-cssvars-prefix}-color-neutral-2: rgb(
19
- var(string.unquote('#{theme.$sd-cssvars-prefix}-gray-2'))
20
- );
21
- #{theme.$sd-cssvars-prefix}-color-neutral-3: rgb(
22
- var(string.unquote('#{theme.$sd-cssvars-prefix}-gray-3'))
23
- );
24
- #{theme.$sd-cssvars-prefix}-color-neutral-4: rgb(
25
- var(string.unquote('#{theme.$sd-cssvars-prefix}-gray-4'))
26
- );
27
- #{theme.$sd-cssvars-prefix}-color-neutral-5: rgb(
28
- var(string.unquote('#{theme.$sd-cssvars-prefix}-gray-5'))
29
- );
30
- #{theme.$sd-cssvars-prefix}-color-neutral-6: rgb(
31
- var(string.unquote('#{theme.$sd-cssvars-prefix}-gray-6'))
32
- );
33
- #{theme.$sd-cssvars-prefix}-color-neutral-7: rgb(
34
- var(string.unquote('#{theme.$sd-cssvars-prefix}-gray-7'))
35
- );
36
- #{theme.$sd-cssvars-prefix}-color-neutral-8: rgb(
37
- var(string.unquote('#{theme.$sd-cssvars-prefix}-gray-8'))
38
- );
39
- #{theme.$sd-cssvars-prefix}-color-neutral-9: rgb(
40
- var(string.unquote('#{theme.$sd-cssvars-prefix}-gray-9'))
41
- );
42
- #{theme.$sd-cssvars-prefix}-color-neutral-10: rgb(
43
- var(string.unquote('#{theme.$sd-cssvars-prefix}-gray-10'))
44
- );
45
- #{theme.$sd-cssvars-prefix}-color-text-1: theme.$color-text-1;
46
- #{theme.$sd-cssvars-prefix}-color-text-2: theme.$color-text-2;
47
- #{theme.$sd-cssvars-prefix}-color-text-3: theme.$color-text-3;
48
- #{theme.$sd-cssvars-prefix}-color-text-4: theme.$color-text-4;
49
- #{theme.$sd-cssvars-prefix}-color-border-1: theme.$color-border-1;
50
- #{theme.$sd-cssvars-prefix}-color-border-2: theme.$color-border-2;
51
- #{theme.$sd-cssvars-prefix}-color-border-3: theme.$color-border-3;
52
- #{theme.$sd-cssvars-prefix}-color-border-4: theme.$color-border-4;
53
- #{theme.$sd-cssvars-prefix}-color-fill-1: theme.$color-fill-1;
54
- #{theme.$sd-cssvars-prefix}-color-fill-2: theme.$color-fill-2;
55
- #{theme.$sd-cssvars-prefix}-color-fill-3: theme.$color-fill-3;
56
- #{theme.$sd-cssvars-prefix}-color-fill-4: theme.$color-fill-4;
57
- #{theme.$sd-cssvars-prefix}-color-primary-light-1: theme.$color-primary-light-1;
58
- #{theme.$sd-cssvars-prefix}-color-primary-light-2: theme.$color-primary-light-2;
59
- #{theme.$sd-cssvars-prefix}-color-primary-light-3: theme.$color-primary-light-3;
60
- #{theme.$sd-cssvars-prefix}-color-primary-light-4: theme.$color-primary-light-4;
61
- #{theme.$sd-cssvars-prefix}-color-link-light-1: theme.$color-link-light-1;
62
- #{theme.$sd-cssvars-prefix}-color-link-light-2: theme.$color-link-light-2;
63
- #{theme.$sd-cssvars-prefix}-color-link-light-3: theme.$color-link-light-3;
64
- #{theme.$sd-cssvars-prefix}-color-link-light-4: theme.$color-link-light-4;
65
- #{theme.$sd-cssvars-prefix}-color-secondary: theme.$color-secondary;
66
- #{theme.$sd-cssvars-prefix}-color-secondary-hover: theme.$color-secondary-hover;
67
- #{theme.$sd-cssvars-prefix}-color-secondary-active: theme.$color-secondary-active;
68
- #{theme.$sd-cssvars-prefix}-color-secondary-disabled: theme.$color-secondary-disabled;
69
- #{theme.$sd-cssvars-prefix}-color-danger-light-1: theme.$color-danger-light-1;
70
- #{theme.$sd-cssvars-prefix}-color-danger-light-2: theme.$color-danger-light-2;
71
- #{theme.$sd-cssvars-prefix}-color-danger-light-3: theme.$color-danger-light-3;
72
- #{theme.$sd-cssvars-prefix}-color-danger-light-4: theme.$color-danger-light-4;
73
- #{theme.$sd-cssvars-prefix}-color-success-light-1: theme.$color-success-light-1;
74
- #{theme.$sd-cssvars-prefix}-color-success-light-2: theme.$color-success-light-2;
75
- #{theme.$sd-cssvars-prefix}-color-success-light-3: theme.$color-success-light-3;
76
- #{theme.$sd-cssvars-prefix}-color-success-light-4: theme.$color-success-light-4;
77
- #{theme.$sd-cssvars-prefix}-color-warning-light-1: theme.$color-warning-light-1;
78
- #{theme.$sd-cssvars-prefix}-color-warning-light-2: theme.$color-warning-light-2;
79
- #{theme.$sd-cssvars-prefix}-color-warning-light-3: theme.$color-warning-light-3;
80
- #{theme.$sd-cssvars-prefix}-color-warning-light-4: theme.$color-warning-light-4;
5
+ #{theme.$sd-cssvars-prefix}-color-white: var(--color-white, #{theme.$color-white});
6
+ #{theme.$sd-cssvars-prefix}-color-black: var(--color-black, #{theme.$color-black});
7
+ #{theme.$sd-cssvars-prefix}-color-border: var(--color-border, #{theme.$color-border});
8
+ #{theme.$sd-cssvars-prefix}-color-bg-popup: var(--color-bg-popup, #{theme.$color-bg-popup});
9
+ #{theme.$sd-cssvars-prefix}-color-bg-1: var(--color-bg-1, #{theme.$color-bg-1});
10
+ #{theme.$sd-cssvars-prefix}-color-bg-2: var(--color-bg-2, #{theme.$color-bg-2});
11
+ #{theme.$sd-cssvars-prefix}-color-bg-3: var(--color-bg-3, #{theme.$color-bg-3});
12
+ #{theme.$sd-cssvars-prefix}-color-bg-4: var(--color-bg-4, #{theme.$color-bg-4});
13
+ #{theme.$sd-cssvars-prefix}-color-bg-5: var(--color-bg-5, #{theme.$color-bg-5});
14
+ #{theme.$sd-cssvars-prefix}-color-bg-white: var(--color-bg-white, #{theme.$color-bg-white});
15
+ #{theme.$sd-cssvars-prefix}-color-neutral-1: var(
16
+ --color-neutral-1,
17
+ #{rgb(var(string.unquote('#{theme.$sd-cssvars-prefix}-gray-1')))}
18
+ );
19
+ #{theme.$sd-cssvars-prefix}-color-neutral-2: var(
20
+ --color-neutral-2,
21
+ #{rgb(var(string.unquote('#{theme.$sd-cssvars-prefix}-gray-2')))}
22
+ );
23
+ #{theme.$sd-cssvars-prefix}-color-neutral-3: var(
24
+ --color-neutral-3,
25
+ #{rgb(var(string.unquote('#{theme.$sd-cssvars-prefix}-gray-3')))}
26
+ );
27
+ #{theme.$sd-cssvars-prefix}-color-neutral-4: var(
28
+ --color-neutral-4,
29
+ #{rgb(var(string.unquote('#{theme.$sd-cssvars-prefix}-gray-4')))}
30
+ );
31
+ #{theme.$sd-cssvars-prefix}-color-neutral-5: var(
32
+ --color-neutral-5,
33
+ #{rgb(var(string.unquote('#{theme.$sd-cssvars-prefix}-gray-5')))}
34
+ );
35
+ #{theme.$sd-cssvars-prefix}-color-neutral-6: var(
36
+ --color-neutral-6,
37
+ #{rgb(var(string.unquote('#{theme.$sd-cssvars-prefix}-gray-6')))}
38
+ );
39
+ #{theme.$sd-cssvars-prefix}-color-neutral-7: var(
40
+ --color-neutral-7,
41
+ #{rgb(var(string.unquote('#{theme.$sd-cssvars-prefix}-gray-7')))}
42
+ );
43
+ #{theme.$sd-cssvars-prefix}-color-neutral-8: var(
44
+ --color-neutral-8,
45
+ #{rgb(var(string.unquote('#{theme.$sd-cssvars-prefix}-gray-8')))}
46
+ );
47
+ #{theme.$sd-cssvars-prefix}-color-neutral-9: var(
48
+ --color-neutral-9,
49
+ #{rgb(var(string.unquote('#{theme.$sd-cssvars-prefix}-gray-9')))}
50
+ );
51
+ #{theme.$sd-cssvars-prefix}-color-neutral-10: var(
52
+ --color-neutral-10,
53
+ #{rgb(var(string.unquote('#{theme.$sd-cssvars-prefix}-gray-10')))}
54
+ );
55
+ #{theme.$sd-cssvars-prefix}-color-text-1: var(--color-text-1, #{theme.$color-text-1});
56
+ #{theme.$sd-cssvars-prefix}-color-text-2: var(--color-text-2, #{theme.$color-text-2});
57
+ #{theme.$sd-cssvars-prefix}-color-text-3: var(--color-text-3, #{theme.$color-text-3});
58
+ #{theme.$sd-cssvars-prefix}-color-text-4: var(--color-text-4, #{theme.$color-text-4});
59
+ #{theme.$sd-cssvars-prefix}-color-border-1: var(--color-border-1, #{theme.$color-border-1});
60
+ #{theme.$sd-cssvars-prefix}-color-border-2: var(--color-border-2, #{theme.$color-border-2});
61
+ #{theme.$sd-cssvars-prefix}-color-border-3: var(--color-border-3, #{theme.$color-border-3});
62
+ #{theme.$sd-cssvars-prefix}-color-border-4: var(--color-border-4, #{theme.$color-border-4});
63
+ #{theme.$sd-cssvars-prefix}-color-fill-1: var(--color-fill-1, #{theme.$color-fill-1});
64
+ #{theme.$sd-cssvars-prefix}-color-fill-2: var(--color-fill-2, #{theme.$color-fill-2});
65
+ #{theme.$sd-cssvars-prefix}-color-fill-3: var(--color-fill-3, #{theme.$color-fill-3});
66
+ #{theme.$sd-cssvars-prefix}-color-fill-4: var(--color-fill-4, #{theme.$color-fill-4});
67
+ #{theme.$sd-cssvars-prefix}-color-primary-light-1: var(
68
+ --color-primary-light-1,
69
+ #{theme.$color-primary-light-1}
70
+ );
71
+ #{theme.$sd-cssvars-prefix}-color-primary-light-2: var(
72
+ --color-primary-light-2,
73
+ #{theme.$color-primary-light-2}
74
+ );
75
+ #{theme.$sd-cssvars-prefix}-color-primary-light-3: var(
76
+ --color-primary-light-3,
77
+ #{theme.$color-primary-light-3}
78
+ );
79
+ #{theme.$sd-cssvars-prefix}-color-primary-light-4: var(
80
+ --color-primary-light-4,
81
+ #{theme.$color-primary-light-4}
82
+ );
83
+ #{theme.$sd-cssvars-prefix}-color-link-light-1: var(
84
+ --color-link-light-1,
85
+ #{theme.$color-link-light-1}
86
+ );
87
+ #{theme.$sd-cssvars-prefix}-color-link-light-2: var(
88
+ --color-link-light-2,
89
+ #{theme.$color-link-light-2}
90
+ );
91
+ #{theme.$sd-cssvars-prefix}-color-link-light-3: var(
92
+ --color-link-light-3,
93
+ #{theme.$color-link-light-3}
94
+ );
95
+ #{theme.$sd-cssvars-prefix}-color-link-light-4: var(
96
+ --color-link-light-4,
97
+ #{theme.$color-link-light-4}
98
+ );
99
+ #{theme.$sd-cssvars-prefix}-color-secondary: var(--color-secondary, #{theme.$color-secondary});
100
+ #{theme.$sd-cssvars-prefix}-color-secondary-hover: var(
101
+ --color-secondary-hover,
102
+ #{theme.$color-secondary-hover}
103
+ );
104
+ #{theme.$sd-cssvars-prefix}-color-secondary-active: var(
105
+ --color-secondary-active,
106
+ #{theme.$color-secondary-active}
107
+ );
108
+ #{theme.$sd-cssvars-prefix}-color-secondary-disabled: var(
109
+ --color-secondary-disabled,
110
+ #{theme.$color-secondary-disabled}
111
+ );
112
+ #{theme.$sd-cssvars-prefix}-color-danger-light-1: var(
113
+ --color-danger-light-1,
114
+ #{theme.$color-danger-light-1}
115
+ );
116
+ #{theme.$sd-cssvars-prefix}-color-danger-light-2: var(
117
+ --color-danger-light-2,
118
+ #{theme.$color-danger-light-2}
119
+ );
120
+ #{theme.$sd-cssvars-prefix}-color-danger-light-3: var(
121
+ --color-danger-light-3,
122
+ #{theme.$color-danger-light-3}
123
+ );
124
+ #{theme.$sd-cssvars-prefix}-color-danger-light-4: var(
125
+ --color-danger-light-4,
126
+ #{theme.$color-danger-light-4}
127
+ );
128
+ #{theme.$sd-cssvars-prefix}-color-success-light-1: var(
129
+ --color-success-light-1,
130
+ #{theme.$color-success-light-1}
131
+ );
132
+ #{theme.$sd-cssvars-prefix}-color-success-light-2: var(
133
+ --color-success-light-2,
134
+ #{theme.$color-success-light-2}
135
+ );
136
+ #{theme.$sd-cssvars-prefix}-color-success-light-3: var(
137
+ --color-success-light-3,
138
+ #{theme.$color-success-light-3}
139
+ );
140
+ #{theme.$sd-cssvars-prefix}-color-success-light-4: var(
141
+ --color-success-light-4,
142
+ #{theme.$color-success-light-4}
143
+ );
144
+ #{theme.$sd-cssvars-prefix}-color-warning-light-1: var(
145
+ --color-warning-light-1,
146
+ #{theme.$color-warning-light-1}
147
+ );
148
+ #{theme.$sd-cssvars-prefix}-color-warning-light-2: var(
149
+ --color-warning-light-2,
150
+ #{theme.$color-warning-light-2}
151
+ );
152
+ #{theme.$sd-cssvars-prefix}-color-warning-light-3: var(
153
+ --color-warning-light-3,
154
+ #{theme.$color-warning-light-3}
155
+ );
156
+ #{theme.$sd-cssvars-prefix}-color-warning-light-4: var(
157
+ --color-warning-light-4,
158
+ #{theme.$color-warning-light-4}
159
+ );
81
160
 
82
161
  // radius
83
- #{theme.$sd-cssvars-prefix}-border-radius-none: theme.$border-radius-none;
84
- #{theme.$sd-cssvars-prefix}-border-radius-small: theme.$border-radius-small;
85
- #{theme.$sd-cssvars-prefix}-border-radius-medium: theme.$border-radius-medium;
86
- #{theme.$sd-cssvars-prefix}-border-radius-large: theme.$border-radius-large;
87
- #{theme.$sd-cssvars-prefix}-border-radius-circle: theme.$border-radius-circle;
162
+ #{theme.$sd-cssvars-prefix}-border-radius-none: var(
163
+ --border-radius-none,
164
+ #{theme.$border-radius-none}
165
+ );
166
+ #{theme.$sd-cssvars-prefix}-border-radius-small: var(
167
+ --border-radius-small,
168
+ #{theme.$border-radius-small}
169
+ );
170
+ #{theme.$sd-cssvars-prefix}-border-radius-medium: var(
171
+ --border-radius-medium,
172
+ #{theme.$border-radius-medium}
173
+ );
174
+ #{theme.$sd-cssvars-prefix}-border-radius-large: var(
175
+ --border-radius-large,
176
+ #{theme.$border-radius-large}
177
+ );
178
+ #{theme.$sd-cssvars-prefix}-border-radius-circle: var(
179
+ --border-radius-circle,
180
+ #{theme.$border-radius-circle}
181
+ );
88
182
  // component
89
- #{theme.$sd-cssvars-prefix}-color-tooltip-bg: theme.$color-tooltip-bg;
90
- #{theme.$sd-cssvars-prefix}-color-spin-layer-bg: theme.$color-spin-layer-bg;
91
- #{theme.$sd-cssvars-prefix}-color-menu-dark-bg: theme.$color-menu-dark-bg;
92
- #{theme.$sd-cssvars-prefix}-color-menu-light-bg: theme.$color-menu-light-bg;
93
- #{theme.$sd-cssvars-prefix}-color-menu-dark-hover: theme.$color-menu-dark-hover;
94
- #{theme.$sd-cssvars-prefix}-color-mask-bg: theme.$mask-color-bg;
183
+ #{theme.$sd-cssvars-prefix}-color-tooltip-bg: var(--color-tooltip-bg, #{theme.$color-tooltip-bg});
184
+ #{theme.$sd-cssvars-prefix}-color-spin-layer-bg: var(
185
+ --color-spin-layer-bg,
186
+ #{theme.$color-spin-layer-bg}
187
+ );
188
+ #{theme.$sd-cssvars-prefix}-color-menu-dark-bg: var(
189
+ --color-menu-dark-bg,
190
+ #{theme.$color-menu-dark-bg}
191
+ );
192
+ #{theme.$sd-cssvars-prefix}-color-menu-light-bg: var(
193
+ --color-menu-light-bg,
194
+ #{theme.$color-menu-light-bg}
195
+ );
196
+ #{theme.$sd-cssvars-prefix}-color-menu-dark-hover: var(
197
+ --color-menu-dark-hover,
198
+ #{theme.$color-menu-dark-hover}
199
+ );
200
+ #{theme.$sd-cssvars-prefix}-color-mask-bg: var(--color-mask-bg, #{theme.$mask-color-bg});
95
201
  }
96
202
 
97
- #{theme.$sd-theme-tag}[sd-theme='dark'] {
98
- #{theme.$sd-cssvars-prefix}-color-white: theme.$dark-color-white;
99
- #{theme.$sd-cssvars-prefix}-color-black: theme.$dark-color-black;
100
- #{theme.$sd-cssvars-prefix}-color-border: theme.$dark-color-border;
101
- #{theme.$sd-cssvars-prefix}-color-bg-1: theme.$dark-color-bg-1;
102
- #{theme.$sd-cssvars-prefix}-color-bg-2: theme.$dark-color-bg-2;
103
- #{theme.$sd-cssvars-prefix}-color-bg-3: theme.$dark-color-bg-3;
104
- #{theme.$sd-cssvars-prefix}-color-bg-4: theme.$dark-color-bg-4;
105
- #{theme.$sd-cssvars-prefix}-color-bg-5: theme.$dark-color-bg-5;
106
- #{theme.$sd-cssvars-prefix}-color-bg-white: theme.$dark-color-bg-white;
107
- #{theme.$sd-cssvars-prefix}-color-text-1: theme.$dark-color-text-1;
108
- #{theme.$sd-cssvars-prefix}-color-text-2: theme.$dark-color-text-2;
109
- #{theme.$sd-cssvars-prefix}-color-text-3: theme.$dark-color-text-3;
110
- #{theme.$sd-cssvars-prefix}-color-text-4: theme.$dark-color-text-4;
111
- #{theme.$sd-cssvars-prefix}-color-fill-1: theme.$dark-color-fill-1;
112
- #{theme.$sd-cssvars-prefix}-color-fill-2: theme.$dark-color-fill-2;
113
- #{theme.$sd-cssvars-prefix}-color-fill-3: theme.$dark-color-fill-3;
114
- #{theme.$sd-cssvars-prefix}-color-fill-4: theme.$dark-color-fill-4;
115
- #{theme.$sd-cssvars-prefix}-color-primary-light-1: theme.$dark-color-primary-light-1;
116
- #{theme.$sd-cssvars-prefix}-color-primary-light-2: theme.$dark-color-primary-light-2;
117
- #{theme.$sd-cssvars-prefix}-color-primary-light-3: theme.$dark-color-primary-light-3;
118
- #{theme.$sd-cssvars-prefix}-color-primary-light-4: theme.$dark-color-primary-light-4;
119
- #{theme.$sd-cssvars-prefix}-color-secondary: theme.$dark-color-secondary;
120
- #{theme.$sd-cssvars-prefix}-color-secondary-hover: theme.$dark-color-secondary-hover;
121
- #{theme.$sd-cssvars-prefix}-color-secondary-active: theme.$dark-color-secondary-active;
122
- #{theme.$sd-cssvars-prefix}-color-secondary-disabled: theme.$dark-color-secondary-disabled;
123
- #{theme.$sd-cssvars-prefix}-color-danger-light-1: theme.$dark-color-danger-light-1;
124
- #{theme.$sd-cssvars-prefix}-color-danger-light-2: theme.$dark-color-danger-light-2;
125
- #{theme.$sd-cssvars-prefix}-color-danger-light-3: theme.$dark-color-danger-light-3;
126
- #{theme.$sd-cssvars-prefix}-color-danger-light-4: theme.$dark-color-danger-light-4;
127
- #{theme.$sd-cssvars-prefix}-color-success-light-1: theme.$dark-color-success-light-1;
128
- #{theme.$sd-cssvars-prefix}-color-success-light-2: theme.$dark-color-success-light-2;
129
- #{theme.$sd-cssvars-prefix}-color-success-light-3: theme.$dark-color-success-light-3;
130
- #{theme.$sd-cssvars-prefix}-color-success-light-4: theme.$dark-color-success-light-4;
131
- #{theme.$sd-cssvars-prefix}-color-warning-light-1: theme.$dark-color-warning-light-1;
132
- #{theme.$sd-cssvars-prefix}-color-warning-light-2: theme.$dark-color-warning-light-2;
133
- #{theme.$sd-cssvars-prefix}-color-warning-light-3: theme.$dark-color-warning-light-3;
134
- #{theme.$sd-cssvars-prefix}-color-warning-light-4: theme.$dark-color-warning-light-4;
135
- #{theme.$sd-cssvars-prefix}-color-link-light-1: theme.$dark-color-link-light-1;
136
- #{theme.$sd-cssvars-prefix}-color-link-light-2: theme.$dark-color-link-light-2;
137
- #{theme.$sd-cssvars-prefix}-color-link-light-3: theme.$dark-color-link-light-3;
138
- #{theme.$sd-cssvars-prefix}-color-link-light-4: theme.$dark-color-link-light-4;
203
+ #{theme.$sd-theme-tag}[sd-theme='dark'],
204
+ #{theme.$sd-theme-tag}[data-sd-theme='dark'] {
205
+ #{theme.$sd-cssvars-prefix}-color-white: var(--color-white, #{theme.$dark-color-white});
206
+ #{theme.$sd-cssvars-prefix}-color-black: var(--color-black, #{theme.$dark-color-black});
207
+ #{theme.$sd-cssvars-prefix}-color-border: var(--color-border, #{theme.$dark-color-border});
208
+ #{theme.$sd-cssvars-prefix}-color-bg-1: var(--color-bg-1, #{theme.$dark-color-bg-1});
209
+ #{theme.$sd-cssvars-prefix}-color-bg-2: var(--color-bg-2, #{theme.$dark-color-bg-2});
210
+ #{theme.$sd-cssvars-prefix}-color-bg-3: var(--color-bg-3, #{theme.$dark-color-bg-3});
211
+ #{theme.$sd-cssvars-prefix}-color-bg-4: var(--color-bg-4, #{theme.$dark-color-bg-4});
212
+ #{theme.$sd-cssvars-prefix}-color-bg-5: var(--color-bg-5, #{theme.$dark-color-bg-5});
213
+ #{theme.$sd-cssvars-prefix}-color-bg-white: var(--color-bg-white, #{theme.$dark-color-bg-white});
214
+ #{theme.$sd-cssvars-prefix}-color-text-1: var(--color-text-1, #{theme.$dark-color-text-1});
215
+ #{theme.$sd-cssvars-prefix}-color-text-2: var(--color-text-2, #{theme.$dark-color-text-2});
216
+ #{theme.$sd-cssvars-prefix}-color-text-3: var(--color-text-3, #{theme.$dark-color-text-3});
217
+ #{theme.$sd-cssvars-prefix}-color-text-4: var(--color-text-4, #{theme.$dark-color-text-4});
218
+ #{theme.$sd-cssvars-prefix}-color-fill-1: var(--color-fill-1, #{theme.$dark-color-fill-1});
219
+ #{theme.$sd-cssvars-prefix}-color-fill-2: var(--color-fill-2, #{theme.$dark-color-fill-2});
220
+ #{theme.$sd-cssvars-prefix}-color-fill-3: var(--color-fill-3, #{theme.$dark-color-fill-3});
221
+ #{theme.$sd-cssvars-prefix}-color-fill-4: var(--color-fill-4, #{theme.$dark-color-fill-4});
222
+ #{theme.$sd-cssvars-prefix}-color-primary-light-1: var(
223
+ --color-primary-light-1,
224
+ #{theme.$dark-color-primary-light-1}
225
+ );
226
+ #{theme.$sd-cssvars-prefix}-color-primary-light-2: var(
227
+ --color-primary-light-2,
228
+ #{theme.$dark-color-primary-light-2}
229
+ );
230
+ #{theme.$sd-cssvars-prefix}-color-primary-light-3: var(
231
+ --color-primary-light-3,
232
+ #{theme.$dark-color-primary-light-3}
233
+ );
234
+ #{theme.$sd-cssvars-prefix}-color-primary-light-4: var(
235
+ --color-primary-light-4,
236
+ #{theme.$dark-color-primary-light-4}
237
+ );
238
+ #{theme.$sd-cssvars-prefix}-color-secondary: var(
239
+ --color-secondary,
240
+ #{theme.$dark-color-secondary}
241
+ );
242
+ #{theme.$sd-cssvars-prefix}-color-secondary-hover: var(
243
+ --color-secondary-hover,
244
+ #{theme.$dark-color-secondary-hover}
245
+ );
246
+ #{theme.$sd-cssvars-prefix}-color-secondary-active: var(
247
+ --color-secondary-active,
248
+ #{theme.$dark-color-secondary-active}
249
+ );
250
+ #{theme.$sd-cssvars-prefix}-color-secondary-disabled: var(
251
+ --color-secondary-disabled,
252
+ #{theme.$dark-color-secondary-disabled}
253
+ );
254
+ #{theme.$sd-cssvars-prefix}-color-danger-light-1: var(
255
+ --color-danger-light-1,
256
+ #{theme.$dark-color-danger-light-1}
257
+ );
258
+ #{theme.$sd-cssvars-prefix}-color-danger-light-2: var(
259
+ --color-danger-light-2,
260
+ #{theme.$dark-color-danger-light-2}
261
+ );
262
+ #{theme.$sd-cssvars-prefix}-color-danger-light-3: var(
263
+ --color-danger-light-3,
264
+ #{theme.$dark-color-danger-light-3}
265
+ );
266
+ #{theme.$sd-cssvars-prefix}-color-danger-light-4: var(
267
+ --color-danger-light-4,
268
+ #{theme.$dark-color-danger-light-4}
269
+ );
270
+ #{theme.$sd-cssvars-prefix}-color-success-light-1: var(
271
+ --color-success-light-1,
272
+ #{theme.$dark-color-success-light-1}
273
+ );
274
+ #{theme.$sd-cssvars-prefix}-color-success-light-2: var(
275
+ --color-success-light-2,
276
+ #{theme.$dark-color-success-light-2}
277
+ );
278
+ #{theme.$sd-cssvars-prefix}-color-success-light-3: var(
279
+ --color-success-light-3,
280
+ #{theme.$dark-color-success-light-3}
281
+ );
282
+ #{theme.$sd-cssvars-prefix}-color-success-light-4: var(
283
+ --color-success-light-4,
284
+ #{theme.$dark-color-success-light-4}
285
+ );
286
+ #{theme.$sd-cssvars-prefix}-color-warning-light-1: var(
287
+ --color-warning-light-1,
288
+ #{theme.$dark-color-warning-light-1}
289
+ );
290
+ #{theme.$sd-cssvars-prefix}-color-warning-light-2: var(
291
+ --color-warning-light-2,
292
+ #{theme.$dark-color-warning-light-2}
293
+ );
294
+ #{theme.$sd-cssvars-prefix}-color-warning-light-3: var(
295
+ --color-warning-light-3,
296
+ #{theme.$dark-color-warning-light-3}
297
+ );
298
+ #{theme.$sd-cssvars-prefix}-color-warning-light-4: var(
299
+ --color-warning-light-4,
300
+ #{theme.$dark-color-warning-light-4}
301
+ );
302
+ #{theme.$sd-cssvars-prefix}-color-link-light-1: var(
303
+ --color-link-light-1,
304
+ #{theme.$dark-color-link-light-1}
305
+ );
306
+ #{theme.$sd-cssvars-prefix}-color-link-light-2: var(
307
+ --color-link-light-2,
308
+ #{theme.$dark-color-link-light-2}
309
+ );
310
+ #{theme.$sd-cssvars-prefix}-color-link-light-3: var(
311
+ --color-link-light-3,
312
+ #{theme.$dark-color-link-light-3}
313
+ );
314
+ #{theme.$sd-cssvars-prefix}-color-link-light-4: var(
315
+ --color-link-light-4,
316
+ #{theme.$dark-color-link-light-4}
317
+ );
139
318
  // component
140
- #{theme.$sd-cssvars-prefix}-color-tooltip-bg: theme.$dark-color-tooltip-bg;
141
- #{theme.$sd-cssvars-prefix}-color-spin-layer-bg: theme.$dark-color-spin-layer-bg;
142
- #{theme.$sd-cssvars-prefix}-color-menu-dark-bg: theme.$color-menu-dark-bg;
143
- #{theme.$sd-cssvars-prefix}-color-menu-light-bg: theme.$color-menu-dark-bg;
144
- #{theme.$sd-cssvars-prefix}-color-menu-dark-hover: theme.$dark-color-menu-dark-hover;
145
- #{theme.$sd-cssvars-prefix}-color-mask-bg: theme.$dark-mask-color-bg;
319
+ #{theme.$sd-cssvars-prefix}-color-tooltip-bg: var(
320
+ --color-tooltip-bg,
321
+ #{theme.$dark-color-tooltip-bg}
322
+ );
323
+ #{theme.$sd-cssvars-prefix}-color-spin-layer-bg: var(
324
+ --color-spin-layer-bg,
325
+ #{theme.$dark-color-spin-layer-bg}
326
+ );
327
+ #{theme.$sd-cssvars-prefix}-color-menu-dark-bg: var(
328
+ --color-menu-dark-bg,
329
+ #{theme.$color-menu-dark-bg}
330
+ );
331
+ #{theme.$sd-cssvars-prefix}-color-menu-light-bg: var(
332
+ --color-menu-light-bg,
333
+ #{theme.$color-menu-dark-bg}
334
+ );
335
+ #{theme.$sd-cssvars-prefix}-color-menu-dark-hover: var(
336
+ --color-menu-dark-hover,
337
+ #{theme.$dark-color-menu-dark-hover}
338
+ );
339
+ #{theme.$sd-cssvars-prefix}-color-mask-bg: var(--color-mask-bg, #{theme.$dark-mask-color-bg});
146
340
  }
@@ -1,7 +1,7 @@
1
1
  @use 'sass:string';
2
2
  @use '@style/color/colors.scss' as *;
3
3
 
4
- $sd-theme-tag: ':where(body, [sd-theme])'; // css 变量定义的选择器
4
+ $sd-theme-tag: ':where(body, [sd-theme], [data-sd-theme])'; // css 变量定义的选择器
5
5
 
6
6
  $sd-vars-prefix: 'sd'; // css 变量的前缀
7
7
 
@@ -391,10 +391,10 @@ $dark-color-bg-3: #2a2a2b; // Secondary container background
391
391
  $dark-color-bg-4: #313132; // Three-level container background
392
392
  $dark-color-bg-5: #373739; // Drop-down box, Tooltips background
393
393
  $dark-color-bg-white: #f6f6f6; // In bright color mode radio, switch white background
394
- $dark-color-text-1: rgb(255 255 255 / 90%);
395
- $dark-color-text-2: rgb(255 255 255 / 70%);
396
- $dark-color-text-3: rgb(255 255 255 / 50%);
397
- $dark-color-text-4: rgb(255 255 255 / 30%);
394
+ $dark-color-text-1: rgb(var(string.unquote('#{$sd-cssvars-prefix}-gray-10')));
395
+ $dark-color-text-2: rgb(var(string.unquote('#{$sd-cssvars-prefix}-gray-8')));
396
+ $dark-color-text-3: rgb(var(string.unquote('#{$sd-cssvars-prefix}-gray-6')));
397
+ $dark-color-text-4: rgb(var(string.unquote('#{$sd-cssvars-prefix}-gray-4')));
398
398
  $dark-color-fill-1: rgb(255 255 255 / 4%);
399
399
  $dark-color-fill-2: rgb(255 255 255 / 8%);
400
400
  $dark-color-fill-3: rgb(255 255 255 / 12%);
@@ -10,7 +10,7 @@
10
10
  colors.$sd-vars-prefix: string.unquote('sd');
11
11
  colors.$sd-cssvars-prefix: string.unquote('--sd');
12
12
 
13
- $sd-theme-tag: ':where(body, [sd-theme])';
13
+ $sd-theme-tag: ':where(body, [sd-theme], [data-sd-theme])';
14
14
  $sd-vars-prefix: string.unquote('sd');
15
15
  $sd-cssvars-prefix: string.unquote('--sd');
16
16
 
@@ -0,0 +1,29 @@
1
+ @use 'sass:string';
2
+
3
+ // 组件覆盖 → 简写兼容别名 → 全局值 → Sass 默认值。
4
+ @function token($component, $name, $fallback, $global: null) {
5
+ $prefix-length: string.length($component) + 1;
6
+
7
+ @if string.slice($name, 1, $prefix-length) != '#{$component}-' {
8
+ $prefix-length: string.index($name, '-');
9
+ }
10
+
11
+ $alias: $name;
12
+
13
+ @if $prefix-length {
14
+ $alias: string.slice($name, $prefix-length + 1);
15
+ }
16
+
17
+ @if $global {
18
+ @if string.index($global, 'color-') == 1 {
19
+ $fallback: var(--sd-#{$global}, #{$fallback});
20
+ }
21
+
22
+ $fallback: var(--#{$global}, #{$fallback});
23
+ }
24
+
25
+ @return var(
26
+ --component-#{$component}-#{$name},
27
+ var(--component-#{$component}-#{$alias}, #{$fallback})
28
+ );
29
+ }