@aifuxi/semi-theme-modern 2.0.0 → 2.0.3

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/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.0.3
4
+
5
+ No changes in this release.
6
+
7
+ ## 2.0.2
8
+
9
+ No changes in this release.
10
+
11
+ ## 2.0.1
12
+
13
+ ### Patch Changes
14
+
15
+ - [#26](https://github.com/aifuxi/semi-ui-vue/pull/26) [`81ef2bb`](https://github.com/aifuxi/semi-ui-vue/commit/81ef2bbc26f773690904637713a88a063b24e3f7) Thanks [@aifuxi](https://github.com/aifuxi)! - 现代主题仅保留四档圆角覆盖,移除 Button、Card 和浮层的额外阴影与内侧层次,其他样式沿用默认主题。
16
+
3
17
  ## 2.0.0
4
18
 
5
19
  No changes in this release.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @aifuxi/semi-theme-modern
2
2
 
3
- 本包是 Semi UI Vue 的可选现代主题样式,覆盖默认主题的圆角变量,并为 Button、Card 与浮层容器增加轻微的内侧层次。它不是 Semi Design 官方发布的主题。
3
+ 本包是 Semi UI Vue 的可选现代主题样式,仅覆盖默认主题的四档圆角变量。它不是 Semi Design 官方发布的主题。
4
4
 
5
5
  圆角比例如下:
6
6
 
@@ -13,9 +13,7 @@
13
13
 
14
14
  圆形和胶囊圆角沿用默认主题的 `50%` 与 `9999px`。
15
15
 
16
- Button 的 `solid`、`light` 状态增加内侧高光、细描边和轻微外投影;`solid` 按填充色使用单独且更清晰的层次。`borderless` 静止时保持透明且无阴影,在 hover 和 active 出现背景时使用与 `light` 相同的细边缘层次。`outline`、禁用按钮与 ButtonGroup 保持原有阴影。独立且 `bordered` 的 Card 只使用较淡的边缘效果,包括 `shadows="always"` 与 `shadows="hover"` 的悬浮状态,不再叠加原有的大阴影;无边框卡片与 CardGroup 网格仍沿用组件原有样式。颜色随浅色、深色及局部主题切换,组件尺寸、背景色和焦点轮廓不变。
17
-
18
- Dropdown、Popover 与复用 Popover 容器的 Popconfirm 和选择面板增加极淡的内侧边缘,保留原有的浮层外投影。Tooltip 按自身明暗背景使用独立边缘效果,不增加外投影。普通 Modal 仅补更弱的内侧高光,保留实体边框与外投影;全屏 Modal 沿用原样。遮罩、箭头与浮层内部控件不增加容器阴影。
16
+ 阴影、描边、颜色、尺寸和交互状态等其他样式均沿用默认主题。
19
17
 
20
18
  先安装可选主题:
21
19
 
@@ -2,13 +2,13 @@
2
2
  "spdxVersion": "SPDX-2.3",
3
3
  "dataLicense": "CC0-1.0",
4
4
  "SPDXID": "SPDXRef-DOCUMENT",
5
- "name": "@aifuxi/semi-theme-modern-2.0.0",
6
- "documentNamespace": "https://github.com/aifuxi/semi-ui-vue/spdx/%40aifuxi%2Fsemi-theme-modern/2.0.0/cdfba6e520fc83ad871b30f51f36d8af3aaa5a21/1e1bd0b9227c7fca",
5
+ "name": "@aifuxi/semi-theme-modern-2.0.3",
6
+ "documentNamespace": "https://github.com/aifuxi/semi-ui-vue/spdx/%40aifuxi%2Fsemi-theme-modern/2.0.3/cdfba6e520fc83ad871b30f51f36d8af3aaa5a21/b998d1cc3219fb18",
7
7
  "documentDescribes": [
8
8
  "SPDXRef-Package-Workspace"
9
9
  ],
10
10
  "creationInfo": {
11
- "created": "2026-09-30T07:19:40.747Z",
11
+ "created": "2026-11-04T16:35:01.269Z",
12
12
  "creators": [
13
13
  "Tool: semi-ui-vue-workspace"
14
14
  ]
@@ -17,7 +17,7 @@
17
17
  {
18
18
  "SPDXID": "SPDXRef-Package-Workspace",
19
19
  "name": "@aifuxi/semi-theme-modern",
20
- "versionInfo": "2.0.0",
20
+ "versionInfo": "2.0.3",
21
21
  "supplier": "Person: aifuxi",
22
22
  "downloadLocation": "https://github.com/aifuxi/semi-ui-vue",
23
23
  "filesAnalyzed": false,
package/dist/index.css CHANGED
@@ -1,28 +1,8 @@
1
- /* Semi UI Vue 现代主题:在默认主题之后导入。 */
1
+ /* Semi UI Vue 现代主题:在默认主题之后导入,仅覆盖圆角变量。 */
2
2
  body,
3
3
  body[theme-mode=dark] .semi-always-light,
4
4
  :host,
5
- :host .semi-always-light {
6
- --semi-border-radius-extra-small: 4px;
7
- --semi-border-radius-small: 8px;
8
- --semi-border-radius-medium: 16px;
9
- --semi-border-radius-large: 24px;
10
- --semi-modern-button-surface-shadow:
11
- inset 0 1px 0 rgba(255, 255, 255, 0.18), inset 0 0 0 1px rgba(0, 0, 0, 0.035),
12
- 0 1px 2px rgba(0, 0, 0, 0.04);
13
- --semi-modern-button-solid-shadow:
14
- inset 0 1px 0 rgba(255, 255, 255, 0.38), inset 0 -1px 0 rgba(0, 0, 0, 0.12),
15
- inset 0 0 0 1px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.1);
16
- --semi-modern-card-edge-shadow:
17
- inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 0 0 1px rgba(0, 0, 0, 0.025),
18
- 0 1px 3px rgba(0, 0, 0, 0.035);
19
- --semi-modern-overlay-edge-shadow:
20
- inset 0 1px 0 rgba(255, 255, 255, 0.42), inset 0 0 0 1px rgba(0, 0, 0, 0.025);
21
- --semi-modern-modal-edge-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26);
22
- --semi-modern-tooltip-edge-shadow:
23
- inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
24
- }
25
-
5
+ :host .semi-always-light,
26
6
  body[theme-mode=dark],
27
7
  body .semi-always-dark,
28
8
  :host([theme-mode=dark]),
@@ -31,58 +11,4 @@ body .semi-always-dark,
31
11
  --semi-border-radius-small: 8px;
32
12
  --semi-border-radius-medium: 16px;
33
13
  --semi-border-radius-large: 24px;
34
- --semi-modern-button-surface-shadow:
35
- inset 0 1px 0 rgba(255, 255, 255, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.05),
36
- 0 1px 2px rgba(0, 0, 0, 0.16);
37
- --semi-modern-button-solid-shadow:
38
- inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.18),
39
- inset 0 0 0 1px rgba(0, 0, 0, 0.14), 0 2px 4px rgba(0, 0, 0, 0.22);
40
- --semi-modern-card-edge-shadow:
41
- inset 0 1px 0 rgba(255, 255, 255, 0.045), inset 0 0 0 1px rgba(255, 255, 255, 0.045),
42
- 0 1px 3px rgba(0, 0, 0, 0.16);
43
- /* 深色基线的 elevated 阴影已有内描边,这里只补顶部高光。 */
44
- --semi-modern-overlay-edge-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.075);
45
- --semi-modern-modal-edge-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
46
- --semi-modern-tooltip-edge-shadow:
47
- inset 0 1px 0 rgba(255, 255, 255, 0.28), inset 0 0 0 1px rgba(0, 0, 0, 0.06);
48
- }
49
-
50
- /* 填充按钮增加层次,solid 按自身填充色使用更清晰的内侧高光。 */
51
- .semi-button.semi-button-solid:not(.semi-button-disabled):not(.semi-button-group .semi-button) {
52
- box-shadow: var(--semi-modern-button-solid-shadow);
53
- }
54
-
55
- .semi-button.semi-button-light:not(.semi-button-disabled):not(.semi-button-group .semi-button) {
56
- box-shadow: var(--semi-modern-button-surface-shadow);
57
- }
58
-
59
- /* borderless 仅在交互时出现背景,此时沿用 light 的细边缘层次。 */
60
- .semi-button.semi-button-borderless:not(.semi-button-disabled):not(.semi-button-group .semi-button):is(:hover, :active) {
61
- box-shadow: var(--semi-modern-button-surface-shadow);
62
- }
63
-
64
- /* 独立卡片只保留细边缘层次,网格卡片仍沿用组件本身的分隔。 */
65
- .semi-card.semi-card-bordered:not(.semi-card-group-grid > .semi-card) {
66
- box-shadow: var(--semi-modern-card-edge-shadow);
67
- }
68
-
69
- .semi-card.semi-card-bordered.semi-card-shadows-always:not(.semi-card-group-grid > .semi-card),
70
- .semi-card.semi-card-bordered.semi-card-shadows-hover:not(.semi-card-group-grid > .semi-card):hover {
71
- box-shadow: var(--semi-modern-card-edge-shadow);
72
- }
73
-
74
- /* Popconfirm 与选择面板复用 Popover 表面,只在最外层添加一次边缘效果。 */
75
- .semi-dropdown-wrapper,
76
- .semi-popover-wrapper {
77
- box-shadow: var(--semi-modern-overlay-edge-shadow), var(--semi-shadow-elevated);
78
- }
79
-
80
- /* Tooltip 的灰色表面随明暗模式反转,单独配色且不新增外投影。 */
81
- .semi-tooltip-wrapper {
82
- box-shadow: var(--semi-modern-tooltip-edge-shadow);
83
- }
84
-
85
- /* Modal 已有实体边框;全屏内容不需要额外的内侧高光。 */
86
- .semi-modal-content:not(.semi-modal-content-fullScreen) {
87
- box-shadow: var(--semi-modern-modal-edge-shadow), var(--semi-shadow-elevated);
88
14
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aifuxi/semi-theme-modern",
3
- "version": "2.0.0",
3
+ "version": "2.0.3",
4
4
  "description": "面向 @aifuxi/semi-ui-vue 的可选现代主题圆角覆盖样式。",
5
5
  "license": "MIT",
6
6
  "author": "aifuxi",