@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.
- package/dist/sd.css +4004 -3955
- package/dist/sd.min.css +13 -13
- package/es/_components/input-label/style/index.css +47 -47
- package/es/_components/select-view/style/index.css +256 -256
- package/es/alert/style/index.css +48 -48
- package/es/alert/style/token.scss +257 -0
- package/es/anchor/style/index.css +18 -18
- package/es/anchor/style/token.scss +74 -0
- package/es/auto-complete/style/index.css +18 -18
- package/es/auto-complete/style/token.scss +94 -0
- package/es/avatar/style/index.css +31 -31
- package/es/avatar/style/token.scss +118 -0
- package/es/back-top/style/index.css +11 -11
- package/es/back-top/style/token.scss +60 -0
- package/es/badge/style/index.css +35 -35
- package/es/badge/style/token.scss +148 -0
- package/es/basic-crud-table/style/index.css +4 -4
- package/es/basic-crud-table/style/token.scss +20 -0
- package/es/bloom-menu/style/index.css +33 -34
- package/es/bloom-menu/style/index.scss +5 -5
- package/es/bloom-menu/style/token.scss +99 -0
- package/es/border-beam/style/token.scss +28 -0
- package/es/breadcrumb/style/index.css +17 -17
- package/es/breadcrumb/style/token.scss +97 -0
- package/es/button/style/index.css +379 -379
- package/es/button/style/index.scss +3 -3
- package/es/button/style/token.scss +1604 -0
- package/es/card/style/index.css +36 -36
- package/es/card/style/token.scss +162 -0
- package/es/carousel/style/index.css +41 -41
- package/es/carousel/style/token.scss +101 -0
- package/es/cascader/style/index.css +58 -58
- package/es/cascader/style/token.scss +89 -0
- package/es/checkbox/style/index.css +28 -28
- package/es/checkbox/style/token.scss +134 -0
- package/es/collapse/style/index.css +24 -24
- package/es/collapse/style/token.scss +136 -0
- package/es/color-picker/style/index.css +50 -50
- package/es/color-picker/style/token.scss +200 -0
- package/es/comment/style/index.css +15 -15
- package/es/comment/style/token.scss +83 -0
- package/es/config-provider/algorithms.d.ts +11 -0
- package/es/config-provider/algorithms.js +53 -0
- package/es/config-provider/global-theme.js +7 -4
- package/es/config-provider/theme-config.d.ts +11 -0
- package/es/config-provider/theme-config.js +114 -0
- package/es/config-provider/theme-provider.vue_vue_type_script_setup_true_lang.js +46 -11
- package/es/config-provider/theme.d.ts +4 -1
- package/es/config-provider/theme.js +6 -5
- package/es/config-provider/token-key.d.ts +1 -0
- package/es/config-provider/token-key.js +6 -0
- package/es/copy/style/index.css +1 -1
- package/es/copy/style/token.scss +9 -0
- package/es/cropper/style/index.css +7 -7
- package/es/cropper/style/token.scss +24 -0
- package/es/date-picker/style/index.css +73 -73
- package/es/date-picker/style/token.scss +229 -0
- package/es/descriptions/style/index.css +45 -45
- package/es/descriptions/style/token.scss +191 -0
- package/es/divider/style/index.css +11 -11
- package/es/divider/style/token.scss +60 -0
- package/es/drawer/style/index.css +13 -13
- package/es/drawer/style/token.scss +68 -0
- package/es/dropdown/style/index.css +24 -23
- package/es/dropdown/style/index.scss +4 -2
- package/es/dropdown/style/token.scss +123 -0
- package/es/ellipsis/ellipsis.vue_vue_type_script_setup_true_lang.js +3 -3
- package/es/ellipsis/interface.d.ts +1 -0
- package/es/ellipsis/style/index.css +2 -2
- package/es/ellipsis/style/token.scss +5 -0
- package/es/empty/style/index.css +7 -7
- package/es/empty/style/token.scss +35 -0
- package/es/file-previewer/style/index.css +44 -44
- package/es/file-previewer/style/token.scss +198 -0
- package/es/form/style/index.css +113 -113
- package/es/form/style/token.scss +340 -0
- package/es/image/style/index.css +83 -83
- package/es/image/style/token.scss +451 -0
- package/es/index.css +4004 -3955
- package/es/index.d.ts +3 -0
- package/es/index.js +4 -1
- package/es/input/style/index.css +104 -104
- package/es/input/style/input.scss +2 -8
- package/es/input/style/size.scss +4 -4
- package/es/input/style/token.scss +327 -0
- package/es/input-mask/style/index.css +1 -1
- package/es/input-mask/style/token.scss +8 -0
- package/es/input-number/style/index.css +19 -19
- package/es/input-number/style/token.scss +82 -0
- package/es/input-tag/style/index.css +209 -209
- package/es/input-tag/style/token.scss +226 -0
- package/es/json-form/style/index.css +2 -2
- package/es/json-form/style/token.scss +21 -0
- package/es/kv-list/style/index.css +13 -13
- package/es/kv-list/style/token.scss +29 -0
- package/es/layout/style/index.css +38 -38
- package/es/layout/style/token.scss +100 -0
- package/es/link/style/index.css +28 -28
- package/es/link/style/token.scss +117 -0
- package/es/list/style/index.css +27 -27
- package/es/list/style/token.scss +178 -0
- package/es/mention/style/token.scss +22 -0
- package/es/menu/style/index.css +153 -120
- package/es/menu/style/index.scss +12 -4
- package/es/menu/style/token.scss +390 -0
- package/es/message/style/index.css +33 -33
- package/es/message/style/token.scss +218 -0
- package/es/modal/style/index.css +21 -21
- package/es/modal/style/token.scss +115 -0
- package/es/model-selector/style/index.css +1 -1
- package/es/notification/style/index.css +44 -44
- package/es/notification/style/token.scss +241 -0
- package/es/number-flow/style/index.css +5 -5
- package/es/number-flow/style/token.scss +19 -0
- package/es/page-header/style/index.css +25 -25
- package/es/page-header/style/token.scss +139 -0
- package/es/pagination/style/index.css +85 -85
- package/es/pagination/style/token.scss +303 -0
- package/es/panel-group/style/index.css +7 -7
- package/es/panel-group/style/token.scss +28 -0
- package/es/popconfirm/style/index.css +18 -18
- package/es/popconfirm/style/token.scss +83 -0
- package/es/popover/style/index.css +12 -12
- package/es/popover/style/token.scss +58 -0
- package/es/progress/style/index.css +55 -55
- package/es/progress/style/token.scss +253 -0
- package/es/qr-code/style/index.css +18 -21
- package/es/qr-code/style/index.scss +4 -6
- package/es/qr-code/style/token.scss +59 -0
- package/es/radio/style/index.css +45 -44
- package/es/radio/style/index.scss +1 -0
- package/es/radio/style/token.scss +185 -0
- package/es/rate/style/index.css +8 -8
- package/es/rate/style/token.scss +19 -0
- package/es/regex-vis/style/index.css +51 -51
- package/es/regex-vis/style/token.scss +170 -0
- package/es/result/style/index.css +26 -26
- package/es/result/style/token.scss +139 -0
- package/es/rich-text-editor/style/index.css +31 -31
- package/es/rich-text-editor/style/token.scss +120 -0
- package/es/scrollbar/style/index.css +14 -14
- package/es/scrollbar/style/token.scss +33 -0
- package/es/secret/style/index.css +6 -6
- package/es/secret/style/token.scss +30 -0
- package/es/select/style/index.css +27 -27
- package/es/select/style/token.scss +151 -0
- package/es/selectable-card/style/index.css +53 -51
- package/es/selectable-card/style/index.scss +6 -2
- package/es/selectable-card/style/token.scss +60 -0
- package/es/sender/style/index.css +54 -54
- package/es/sender/style/token.scss +155 -0
- package/es/skeleton/style/index.css +12 -12
- package/es/skeleton/style/token.scss +60 -0
- package/es/slider/style/index.css +34 -34
- package/es/slider/style/token.scss +144 -0
- package/es/spin/style/index.css +11 -11
- package/es/spin/style/token.scss +60 -0
- package/es/split/style/index.css +2 -2
- package/es/split/style/token.scss +18 -0
- package/es/statistic/style/index.css +13 -13
- package/es/statistic/style/token.scss +73 -0
- package/es/steps/style/index.css +98 -98
- package/es/steps/style/token.scss +464 -0
- package/es/style/color/css-variables.scss +382 -381
- package/es/style/theme/css-variables.scss +329 -135
- package/es/style/theme/global.scss +5 -5
- package/es/style/theme/index.scss +1 -1
- package/es/style/theme/runtime.scss +29 -0
- package/es/switch/style/index.css +37 -37
- package/es/switch/style/token.scss +135 -0
- package/es/table/style/index.css +127 -127
- package/es/table/style/token.scss +425 -0
- package/es/tabs/style/index.css +196 -190
- package/es/tabs/style/index.scss +27 -17
- package/es/tabs/style/token.scss +534 -0
- package/es/tag/index.d.ts +13 -0
- package/es/tag/interface.d.ts +1 -0
- package/es/tag/style/index.css +159 -159
- package/es/tag/style/token.scss +513 -0
- package/es/tag/tag.vue.d.ts +13 -3
- package/es/tag/tag.vue_vue_type_script_setup_true_lang.js +35 -8
- package/es/tag-group/style/index.css +3 -3
- package/es/tag-group/style/token.scss +9 -0
- package/es/textarea/style/index.css +40 -40
- package/es/time-picker/style/index.css +12 -12
- package/es/time-picker/style/token.scss +50 -0
- package/es/timeline/style/index.css +22 -22
- package/es/timeline/style/token.scss +75 -0
- package/es/toolbar/style/index.css +6 -6
- package/es/toolbar/style/token.scss +45 -0
- package/es/tooltip/style/index.css +8 -8
- package/es/tooltip/style/token.scss +46 -0
- package/es/tour/style/index.css +28 -28
- package/es/tour/style/token.scss +65 -0
- package/es/transfer/style/index.css +46 -45
- package/es/transfer/style/index.scss +4 -1
- package/es/transfer/style/token.scss +199 -0
- package/es/tree/style/index.css +43 -36
- package/es/tree/style/index.scss +10 -0
- package/es/tree/style/token.scss +163 -0
- package/es/tree-select/style/index.css +9 -9
- package/es/tree-select/style/token.scss +21 -0
- package/es/trigger/style/index.css +7 -7
- package/es/trigger/style/token.scss +19 -0
- package/es/typography/style/index.css +40 -40
- package/es/typography/style/token.scss +220 -0
- package/es/upload/index.d.ts +3 -0
- package/es/upload/style/index.css +95 -95
- package/es/upload/style/token.scss +470 -0
- package/es/upload/upload.vue.d.ts +2 -0
- package/es/upload/upload.vue_vue_type_script_setup_true_lang.js +109 -16
- package/json/vetur-attributes.json +7 -0
- package/json/vetur-tags.json +4 -1
- package/json/web-types.json +18 -2
- package/package.json +7 -2
- package/es/style/color/palette-dark.d.ts +0 -4
- package/es/style/color/palette-dark.js +0 -10
- package/es/style/color/palette.d.ts +0 -4
- 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:
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
var(string.unquote('#{theme.$sd-cssvars-prefix}-gray-
|
|
26
|
-
);
|
|
27
|
-
#{theme.$sd-cssvars-prefix}-color-neutral-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
var(string.unquote('#{theme.$sd-cssvars-prefix}-gray-
|
|
38
|
-
);
|
|
39
|
-
#{theme.$sd-cssvars-prefix}-color-neutral-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
#{theme.$sd-cssvars-prefix}-color-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
#{theme.$sd-cssvars-prefix}-color-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
#{theme.$sd-cssvars-prefix}-color-
|
|
56
|
-
#{theme.$sd-cssvars-prefix}-color-
|
|
57
|
-
#{theme.$sd-cssvars-prefix}-color-
|
|
58
|
-
#{theme.$sd-cssvars-prefix}-color-
|
|
59
|
-
#{theme.$sd-cssvars-prefix}-color-
|
|
60
|
-
#{theme.$sd-cssvars-prefix}-color-
|
|
61
|
-
#{theme.$sd-cssvars-prefix}-color-
|
|
62
|
-
#{theme.$sd-cssvars-prefix}-color-
|
|
63
|
-
#{theme.$sd-cssvars-prefix}-color-
|
|
64
|
-
#{theme.$sd-cssvars-prefix}-color-
|
|
65
|
-
#{theme.$sd-cssvars-prefix}-color-
|
|
66
|
-
#{theme.$sd-cssvars-prefix}-color-
|
|
67
|
-
#{theme.$sd-cssvars-prefix}-color-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
#{theme.$sd-cssvars-prefix}-color-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
#{theme.$sd-cssvars-prefix}-color-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
#{theme.$sd-cssvars-prefix}-color-
|
|
80
|
-
|
|
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:
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
#{theme.$sd-cssvars-prefix}-border-radius-
|
|
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:
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
#{theme.$sd-cssvars-prefix}-color-
|
|
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
|
-
|
|
99
|
-
#{theme.$sd-cssvars-prefix}-color-
|
|
100
|
-
#{theme.$sd-cssvars-prefix}-color-
|
|
101
|
-
#{theme.$sd-cssvars-prefix}-color-
|
|
102
|
-
#{theme.$sd-cssvars-prefix}-color-bg-
|
|
103
|
-
#{theme.$sd-cssvars-prefix}-color-bg-
|
|
104
|
-
#{theme.$sd-cssvars-prefix}-color-bg-
|
|
105
|
-
#{theme.$sd-cssvars-prefix}-color-bg-
|
|
106
|
-
#{theme.$sd-cssvars-prefix}-color-bg-
|
|
107
|
-
#{theme.$sd-cssvars-prefix}-color-
|
|
108
|
-
#{theme.$sd-cssvars-prefix}-color-text-
|
|
109
|
-
#{theme.$sd-cssvars-prefix}-color-text-
|
|
110
|
-
#{theme.$sd-cssvars-prefix}-color-text-
|
|
111
|
-
#{theme.$sd-cssvars-prefix}-color-
|
|
112
|
-
#{theme.$sd-cssvars-prefix}-color-fill-
|
|
113
|
-
#{theme.$sd-cssvars-prefix}-color-fill-
|
|
114
|
-
#{theme.$sd-cssvars-prefix}-color-fill-
|
|
115
|
-
#{theme.$sd-cssvars-prefix}-color-
|
|
116
|
-
#{theme.$sd-cssvars-prefix}-color-primary-light-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
#{theme.$sd-cssvars-prefix}-color-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
#{theme.$sd-cssvars-prefix}-color-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
#{theme.$sd-cssvars-prefix}-color-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
#{theme.$sd-cssvars-prefix}-color-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
#{theme.$sd-cssvars-prefix}-color-
|
|
137
|
-
|
|
138
|
-
|
|
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:
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
#{theme.$sd-cssvars-prefix}-color-
|
|
145
|
-
|
|
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(
|
|
395
|
-
$dark-color-text-2: rgb(
|
|
396
|
-
$dark-color-text-3: rgb(
|
|
397
|
-
$dark-color-text-4: rgb(
|
|
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
|
+
}
|