@aifuxi/semi-theme-default 2.0.3 → 2.1.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 (77) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/README.md +128 -1
  3. package/dist/SBOM.spdx.json +4 -4
  4. package/dist/ai-chat-dialogue.css +20 -20
  5. package/dist/ai-chat-input.css +31 -31
  6. package/dist/anchor.css +9 -9
  7. package/dist/audio-player.css +4 -4
  8. package/dist/auto-complete.css +5 -5
  9. package/dist/avatar.css +41 -41
  10. package/dist/badge.css +4 -4
  11. package/dist/base.css +29 -2
  12. package/dist/breadcrumb.css +11 -11
  13. package/dist/button.css +9 -9
  14. package/dist/calendar.css +34 -34
  15. package/dist/card.css +14 -14
  16. package/dist/cascader.css +23 -23
  17. package/dist/chat.css +12 -12
  18. package/dist/checkbox.css +14 -14
  19. package/dist/code-highlight.css +1 -1
  20. package/dist/collapse.css +7 -7
  21. package/dist/color-picker.css +1 -1
  22. package/dist/colors/baseline.mjs +675 -0
  23. package/dist/colors/index.d.mts +29 -0
  24. package/dist/colors/index.mjs +10 -0
  25. package/dist/colors/palette.d.mts +44 -0
  26. package/dist/colors/palette.mjs +273 -0
  27. package/dist/colors/theme.mjs +102 -0
  28. package/dist/date-picker.css +32 -32
  29. package/dist/descriptions.css +26 -26
  30. package/dist/divider.css +1 -1
  31. package/dist/dropdown.css +7 -7
  32. package/dist/empty.css +1 -1
  33. package/dist/feedback.css +5 -5
  34. package/dist/float-button.css +3 -3
  35. package/dist/form.css +15 -15
  36. package/dist/highlight.css +1 -1
  37. package/dist/hot-keys.css +6 -6
  38. package/dist/image.css +6 -6
  39. package/dist/index.css +825 -794
  40. package/dist/input.css +26 -26
  41. package/dist/json-viewer.css +2 -2
  42. package/dist/list.css +3 -3
  43. package/dist/markdown-render.css +1 -1
  44. package/dist/modal.css +5 -5
  45. package/dist/navigation.css +16 -16
  46. package/dist/notification.css +14 -14
  47. package/dist/pagination.css +17 -17
  48. package/dist/popconfirm.css +4 -4
  49. package/dist/popover.css +3 -3
  50. package/dist/progress.css +2 -2
  51. package/dist/radio.css +21 -21
  52. package/dist/rating.css +2 -2
  53. package/dist/scroll-list.css +8 -8
  54. package/dist/select.css +23 -23
  55. package/dist/shared/foundation-input-textarea.css +7 -7
  56. package/dist/side-sheet.css +8 -8
  57. package/dist/sidebar.css +49 -49
  58. package/dist/slider.css +5 -5
  59. package/dist/steps.css +41 -41
  60. package/dist/style-dependencies.json +17 -1
  61. package/dist/switch.css +2 -2
  62. package/dist/table.css +9 -9
  63. package/dist/tabs.css +15 -15
  64. package/dist/tag-input.css +14 -14
  65. package/dist/tag.css +7 -7
  66. package/dist/time-picker.css +3 -3
  67. package/dist/timeline.css +6 -6
  68. package/dist/toast.css +4 -4
  69. package/dist/tooltip.css +4 -4
  70. package/dist/transfer.css +16 -16
  71. package/dist/tree-select.css +19 -19
  72. package/dist/tree.css +4 -4
  73. package/dist/typography.css +40 -36
  74. package/dist/upload.css +29 -29
  75. package/dist/user-guide.css +12 -12
  76. package/dist/video-player.css +12 -12
  77. package/package.json +6 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # @aifuxi/semi-theme-default
2
2
 
3
+ ## 2.1.1
4
+
5
+ No changes in this release.
6
+
7
+ ## 2.1.0
8
+
9
+ ### Minor Changes
10
+
11
+ - [#32](https://github.com/aifuxi/semi-ui-vue/pull/32) [`da74d73`](https://github.com/aifuxi/semi-ui-vue/commit/da74d73f689c02f9eaf4126b0c5178771ed44b2a) Thanks [@aifuxi](https://github.com/aifuxi)! - 增加独立的颜色生成器公开入口,提供与固定 Semi DSM 算法结果一致的单色阶和全色盘生成、双模式语义主题及普通 CSS 输出。支持局部主题、强制深浅模式和弹层颜色继承,消费者无需 Sass 或专用构建插件;默认主题继续保持固定 Semi v2.102.0 基线。
12
+
13
+ - [#32](https://github.com/aifuxi/semi-ui-vue/pull/32) [`c5575dd`](https://github.com/aifuxi/semi-ui-vue/commit/c5575ddd2866ee556099478c06a5c49245afe310) Thanks [@aifuxi](https://github.com/aifuxi)! - 提供字体、字号、字重及行高的公开 CSS 主题变量,默认排版保持 Semi v2.102.0 基线。支持局部主题、默认弹层的排版继承,以及主题和字体变化后的 Typography 省略重算;用户定制主题无需 Sass 或专用构建插件。
14
+
15
+ ### Patch Changes
16
+
17
+ - [#32](https://github.com/aifuxi/semi-ui-vue/pull/32) [`5d5daed`](https://github.com/aifuxi/semi-ui-vue/commit/5d5daed74283bd66661e337701b6a2667661989e) Thanks [@aifuxi](https://github.com/aifuxi)! - 修复普通 Typography 字重覆盖 Upload 文件名强调的级联回归。
18
+
19
+ 通过固定 Semi 基线的实际深浅模式与尺寸、状态对照,修复日期选择器面板、Select 加载指示、Cascader 初始展开、Tree 加载与虚拟布局、Table 选择禁用、虚拟列宽及分组标题、AI 输入菜单宽度与模板图标、AI 对话删除菜单、Sidebar 链接状态、Chat 默认 Markdown 排版及样式依赖、JSON 搜索焦点与音视频音量轨道尺寸差异。
20
+
3
21
  ## 2.0.3
4
22
 
5
23
  No changes in this release.
package/README.md CHANGED
@@ -25,10 +25,137 @@ import '@aifuxi/semi-theme-default/icon.css';
25
25
 
26
26
  其他组件的共享依赖路径和顺序见 `@aifuxi/semi-theme-default/style-dependencies.json`。多个组件共用的 CSS 只需导入一次;组件各自的 `.css` 只包含该组件的样式。不要将 `index.css` 与模块化样式同时导入。
27
27
 
28
- 本包只发布编译后的 CSS,不要求消费者初始化上游 submodule 或安装 Sass。
28
+ 本包的样式以编译后的 CSS 发布,不要求消费者初始化上游 submodule 或安装 Sass。独立颜色工具通过 `./colors` 子路径提供,不会在导入默认 CSS 时执行。
29
29
 
30
30
  预览版使用 `next` 渠道,后续稳定版使用 `latest`;六个公开包同步升版。发布记录随包提供,见 [CHANGELOG](CHANGELOG.md)。
31
31
 
32
+ ## CSS 排版主题
33
+
34
+ R-000072 为字体、字号、字重和行高提供公开 CSS 自定义属性。业务在默认主题之后导入普通 CSS 即可,无需编写 SCSS、安装 Sass 或配置专用 Vite/Webpack 插件。默认值继续使用固定 Semi `v2.102.0`,颜色生成器不属于本能力。
35
+
36
+ ```css
37
+ /* 主题可以用于整个 body,也可以用于局部容器。 */
38
+ [data-semi-theme='editor'] {
39
+ --semi-font-family-regular: 'Microsoft YaHei', sans-serif;
40
+ --semi-font-size-regular: 16px;
41
+ --semi-line-height-regular: 24px;
42
+ --semi-font-weight-strong: 700;
43
+ }
44
+
45
+ /* 可选的组件覆盖只作用于按钮文字,不改变图标或控件高度。 */
46
+ [data-semi-theme='editor'] .compact-action {
47
+ --semi-button-font-size: 13px;
48
+ }
49
+ ```
50
+
51
+ ```vue
52
+ <template>
53
+ <!-- 标记是弹层与排版测量共同识别的局部主题边界。 -->
54
+ <section data-semi-theme="editor">
55
+ <Text>使用编辑区排版</Text>
56
+ <Button class="compact-action">紧凑操作</Button>
57
+ </section>
58
+ </template>
59
+ ```
60
+
61
+ ### 公开默认值
62
+
63
+ | 字号变量 | 默认字号 | 对应行高变量 | 默认行高 |
64
+ | --------------------------- | -------- | ----------------------------- | -------- |
65
+ | `--semi-font-size-small` | `12px` | `--semi-line-height-small` | `16px` |
66
+ | `--semi-font-size-regular` | `14px` | `--semi-line-height-regular` | `20px` |
67
+ | `--semi-font-size-header-6` | `16px` | `--semi-line-height-header-6` | `22px` |
68
+ | `--semi-font-size-header-5` | `18px` | `--semi-line-height-header-5` | `24px` |
69
+ | `--semi-font-size-header-4` | `20px` | `--semi-line-height-header-4` | `28px` |
70
+ | `--semi-font-size-header-3` | `24px` | `--semi-line-height-header-3` | `32px` |
71
+ | `--semi-font-size-header-2` | `28px` | `--semi-line-height-header-2` | `40px` |
72
+ | `--semi-font-size-header-1` | `32px` | `--semi-line-height-header-1` | `44px` |
73
+
74
+ 字号和行高独立配置。宽松段落使用 `--semi-line-height-paragraph-extended`,默认为 `24px`;业务可用标准 `calc()` 建立自己的比例关系。
75
+
76
+ | 变量 | 默认值或回退行为 |
77
+ | -------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- |
78
+ | `--semi-font-family-regular` | `"Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif` |
79
+ | `--semi-font-family-monospace` | 默认不声明,各代码组件保留原有等宽字体栈;显式设置时统一覆盖 |
80
+ | `--semi-font-weight-regular` | `400`,用于基线原本明确指定常规字重的位置 |
81
+ | `--semi-font-weight-strong` | `600`,用于基线默认强调语义 |
82
+ | `--semi-typography-font-weight` | 默认不声明,普通 Text 保留父级继承;small、标题等仍有自己的语义 |
83
+ | `--semi-typography-title-font-weight` | 回退到 `--semi-font-weight-strong` |
84
+ | `--semi-typography-link-font-weight` | 回退到 `--semi-font-weight-strong` |
85
+ | `--semi-typography-strong-font-weight` | 回退到 `--semi-font-weight-strong` |
86
+
87
+ 字体文件由业务加载,本包不下载字体。`Title weight="bold"` 的 `700`、其他命名字重和数值型 `weight` 继续保留原 API 的显式含义。
88
+
89
+ ### 消费与覆盖
90
+
91
+ - 共享字体与字号入口接入固定基线原有的排版引用链。Typography 的 normal/small、heading 和 spacing 选择对应语义;Button、Input、Select、Table、弹层等消费原有语义映射。
92
+ - 有组件独立语义的原变量提供对应 CSS 覆盖,例如 `--semi-button-font-size`、`--semi-button-font-weight`、`--semi-button-line-height`、`--semi-table-base-font-size`。原组件变量中的下划线转为短横线、camelCase 转为 kebab-case,例如 Button small 字号为 `--semi-button-small-font-size`。
93
+ - 组件覆盖优先于共享变量,Button 尺寸级覆盖又优先于通用 Button 覆盖。组件消费处建立 fallback,不在根节点预先计算组件别名,因此局部覆盖能正确继承。
94
+ - 直接的组件样式、数值型 `weight` 和命名字重保留现有优先级;同一元素上的变量声明仍遵循正常 CSS 级联,不需要 `!important`。数值型 `weight` 继续覆盖同一 Typography 的 `style.fontWeight`。
95
+ - 普通 Text 的可选字重使用零优先级选择器,避免覆盖同一节点上的组件语义样式。例如 Upload 文件名仍使用自身的 `600`,不因 Typography 样式后加载而退回父级字重。
96
+ - Input/Select 用于垂直对齐的行高继续由控件尺寸决定;正文行高不会改变控件高度、图标尺寸或点击区域。代码块等具有独立排版的区域也保留原默认行高。
97
+ - Modal 的实际标题沿用原版 `Typography.Title heading=5`,默认 `18px/24px`,消费 header-5 排版变量;header 容器原有的 `14px` 并不是标题最终字号。
98
+
99
+ ### 作用域、弹层与动态更新
100
+
101
+ 默认排版变量仅在 `body` / `:host` 定义。局部容器以 `data-semi-theme` 标记;并列或嵌套主题可以只覆盖部分变量,其余继承外层。深浅模式及 `.semi-always-light` / `.semi-always-dark` 不重置排版设置。
102
+
103
+ 默认挂到 `body` 的声明式弹层沿用声明位置或触发源的局部排版主题,并跟随源主题更新。显式 `getPopupContainer` 优先,使用实际容器的主题。Toast、Notification 等独立命令式实例默认使用全局主题,通过已有容器配置可以选择局部主题。
104
+
105
+ Typography 的省略测量使用当前计算样式及真实强调字重。主题边界的 class、style、`theme-mode`、`data-semi-theme` 变化、样式表加载和字体加载完成后自动重算;固定宽度下的字体变化也会使测量失效。未开启省略的文本不订阅测量更新,用户已展开的文本不会因纯排版变化自动收起。
106
+
107
+ ## 品牌颜色生成器
108
+
109
+ 从 `@aifuxi/semi-theme-default/colors` 独立导入零依赖 ESM 和 TypeScript 类型。工具在 Node、浏览器和 SSR 中均可使用,不读取 DOM、不自动注入样式;消费者无需 Sass、上游 submodule 或专用构建插件。
110
+
111
+ ```js
112
+ import { writeFile } from 'node:fs/promises';
113
+ import { createColorTheme, colorThemeToCss } from '@aifuxi/semi-theme-default/colors';
114
+
115
+ // 由业务主动生成品牌主题;默认 index.css 不调用生成器。
116
+ const theme = createColorTheme({ brand: '#7c3aed' });
117
+ // 模式选择器由应用明确提供;此处沿用 Semi 的全局 theme-mode 属性。
118
+ const css = colorThemeToCss(theme, {
119
+ selectors: { light: 'body', dark: 'body[theme-mode="dark"]' },
120
+ });
121
+ // 作为普通 CSS 保存,在默认主题之后加载即可;无需接入构建插件。
122
+ await writeFile('brand.css', css);
123
+ ```
124
+
125
+ ### API 与数据契约
126
+
127
+ | API | 输入与默认值 | 输出 |
128
+ | --------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------- |
129
+ | `generateColorScale(color, options?)` | 不透明 `#RGB` / `#RRGGBB`;`options.mode` 默认 `light`,可选 `dark` | 只读十级 HEX 序列,下标为 `0…9` |
130
+ | `generateColorPalette(brand, options?)` | 同上;品牌色须具有非零饱和度 | 17 组命名色阶 |
131
+ | `createColorTheme({ brand })` | 品牌色须具有非零饱和度 | `version: 1`、规范化 `brand`、双模式 `palette` 与 `variables` |
132
+ | `colorThemeToCss(theme, { selectors })` | 必须明确提供非空 `light`、`dark` CSS 选择器 | 稳定的普通 CSS 字符串 |
133
+
134
+ 颜色输出统一为小写六位 HEX。色盘包含 `red`、`pink`、`purple`、`violet`、`indigo`、`blue`、`light-blue`、`cyan`、`teal`、`green`、`light-green`、`lime`、`yellow`、`amber`、`orange`、`grey` 和独立 `brand`。每个模式包括 160 个传统基础色及 10 个品牌色。
135
+
136
+ `palette.light/dark` 保存 HEX 色阶;`variables.light/dark` 保存 CSS 变量名到字符串值的映射。基础色仍为 `--semi-blue-5: 0, 119, 250` 这类 RGB 通道串,品牌色增加 `--semi-brand-0…9`;语义色使用 `rgba(var(--semi-brand-5), 1)` 等现有格式。结果可直接 JSON 序列化;返回数据不与其他调用共享可变状态。
137
+
138
+ 格式错误或非法模式抛出 `TypeError`。单色阶支持灰、黑、白;整盘遇到无色相品牌色抛出 `RangeError`,避免参考算法的无色相轮盘退化。首期不接受 alpha、颜色名、`var()`、`currentColor`、手工锁色或可调算法参数。
139
+
140
+ ### 语义与固定默认值
141
+
142
+ - primary、link、focus-border 引用独立 `brand`;info 继续引用 `blue`,secondary 引用 `light-blue`,success/danger/warning 分别引用 green/red/orange,灰阶语义引用 grey。
143
+ - 状态级别、透明度及深浅模式差异取自固定 Semi `v2.102.0`。浅色 primary 默认/hover/active 引用品牌 `5/6/7`;深色浅版背景引用品牌第 5 级与基线透明度。
144
+ - AI 渐变、数据可视化专用色、背景及浮层阴影沿用固定基线的规则和值。颜色主题不输出排版、圆角或布局覆盖。
145
+ - 算法参考固定 DSM 发布脚本,独立实现 HSV、取整及色轮排序;它不等同于仓库保存的默认色盘。例如算法 `#0077fa` 的浅色第 5 级是 `0,119,250`,固定默认 `--semi-blue-5` 是 `0,100,250`。导入工具或创建主题均不会改写默认 CSS;只有业务加载生成结果才启用品牌主题。
146
+
147
+ ### 局部主题与强制模式
148
+
149
+ 局部颜色边界同时明确主题名称和模式,例如 `<section data-semi-theme="brand" theme-mode="light">`,序列化时分别提供 `[data-semi-theme="brand"][theme-mode="light"]`、`[data-semi-theme="brand"][theme-mode="dark"]`。模式由业务设置,不隐式跟随系统偏好;嵌套边界也明确模式。
150
+
151
+ 生成 CSS 在每个模式边界同时声明基础色盘和语义变量,防止只修改基础色而语义颜色仍使用祖先的计算结果。普通业务 CSS 在生成主题后覆盖;组件自身覆盖遵循正常级联,不需要 `!important`。
152
+
153
+ 输出包含私有 `--semi-theme-light-*` / `--semi-theme-dark-*` 双模式载体,用于 `.semi-always-light` / `.semi-always-dark` 消费最近主题的颜色。这些载体名称不是可定制的公开入口;业务修改完整主题时重新生成结果即可。
154
+
155
+ 默认 body 弹层桥接源位置的颜色、排版与模式,并跟随主题变化。显式 `getPopupContainer` 使用实际容器主题;关闭、取消边界或卸载后撤回桥接属性。Toast、Notification 等独立实例沿用已有容器配置。纯颜色变化不改变 Typography 的排版签名。
156
+
157
+ 算法与语义验收见 `scripts/color-palette.spec.mjs`、`scripts/color-theme.spec.mjs`,冻结参考数据及来源见[参考说明](../../scripts/fixtures/semi-color-reference.md)。浏览器验收使用真实 tarball 的 `tests/consumer/color-theme.spec.ts`,涵盖深浅模式、局部嵌套、强制模式、运行时更新与弹层容器。
158
+
32
159
  ## 许可与归属
33
160
 
34
161
  项目代码使用 MIT License。Semi Design 的原始 MIT 许可、第三方声明和 SPDX 2.3 SBOM 随包发布,详见 `dist/THIRD_PARTY_NOTICES.md`、`dist/THIRD_PARTY_LICENSES/` 与 `dist/SBOM.spdx.json`。
@@ -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-default-2.0.3",
6
- "documentNamespace": "https://github.com/aifuxi/semi-ui-vue/spdx/%40aifuxi%2Fsemi-theme-default/2.0.3/cdfba6e520fc83ad871b30f51f36d8af3aaa5a21/74e1db9ac00d5cb1",
5
+ "name": "@aifuxi/semi-theme-default-2.1.1",
6
+ "documentNamespace": "https://github.com/aifuxi/semi-ui-vue/spdx/%40aifuxi%2Fsemi-theme-default/2.1.1/cdfba6e520fc83ad871b30f51f36d8af3aaa5a21/961403c9bbe66e31",
7
7
  "documentDescribes": [
8
8
  "SPDXRef-Package-Workspace"
9
9
  ],
10
10
  "creationInfo": {
11
- "created": "2026-11-04T16:35:04.009Z",
11
+ "created": "2026-11-08T03:40:24.756Z",
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-default",
20
- "versionInfo": "2.0.3",
20
+ "versionInfo": "2.1.1",
21
21
  "supplier": "Person: aifuxi",
22
22
  "downloadLocation": "https://github.com/aifuxi/semi-ui-vue",
23
23
  "filesAnalyzed": false,
@@ -73,9 +73,9 @@
73
73
  align-items: center;
74
74
  }
75
75
  .semi-ai-chat-dialogue-title {
76
- line-height: 20px;
77
- font-size: 16px;
78
- font-weight: 400;
76
+ line-height: var(--semi-ai-chat-dialogue-title-line-height, 20px);
77
+ font-size: var(--semi-ai-chat-dialogue-title-font-size, var(--semi-font-size-header-6, 16px));
78
+ font-weight: var(--semi-ai-chat-dialogue-title-font-weight, var(--semi-font-weight-regular, 400));
79
79
  }
80
80
  .semi-ai-chat-dialogue-inner {
81
81
  width: 100%;
@@ -92,7 +92,7 @@
92
92
  }
93
93
  .semi-ai-chat-dialogue-content {
94
94
  max-width: 100%;
95
- font-size: 14px;
95
+ font-size: var(--semi-ai-chat-dialogue-content-font-size, var(--semi-font-size-regular, 14px));
96
96
  }
97
97
  .semi-ai-chat-dialogue-content pre {
98
98
  background-color: transparent;
@@ -165,7 +165,7 @@
165
165
  .semi-ai-chat-dialogue-content-loading-text {
166
166
  margin-left: 8px;
167
167
  color: var(--semi-color-text-3);
168
- font-size: 14px;
168
+ font-size: var(--semi-ai-chat-dialogue-loading-text-font-size, var(--semi-font-size-regular, 14px));
169
169
  }
170
170
  .semi-ai-chat-dialogue-content-icon-reference {
171
171
  display: none;
@@ -267,7 +267,7 @@
267
267
  flex-shrink: 1;
268
268
  }
269
269
  .semi-ai-chat-dialogue-content-file-title {
270
- font-size: 16px;
270
+ font-size: var(--semi-ai-chat-dialogue-file-title-font-size, var(--semi-font-size-header-6, 16px));
271
271
  color: var(--semi-color-text-0);
272
272
  max-width: 180px;
273
273
  white-space: nowrap;
@@ -275,7 +275,7 @@
275
275
  overflow: hidden;
276
276
  }
277
277
  .semi-ai-chat-dialogue-content-file-metadata {
278
- font-size: 14px;
278
+ font-size: var(--semi-ai-chat-dialogue-file-metadata-font-size, var(--semi-font-size-regular, 14px));
279
279
  color: var(--semi-color-text-2);
280
280
  }
281
281
  .semi-ai-chat-dialogue-content-file-type {
@@ -318,7 +318,7 @@
318
318
  color: var(--semi-color-danger);
319
319
  }
320
320
  .semi-ai-chat-dialogue-action-dropdown .semi-icon {
321
- font-size: 16px;
321
+ font-size: var(--semi-ai-chat-dialogue-dropdown-icon-font-size, var(--semi-font-size-header-6, 16px));
322
322
  }
323
323
  .semi-ai-chat-dialogue-reasoning {
324
324
  width: 100%;
@@ -347,8 +347,8 @@
347
347
  }
348
348
  .semi-ai-chat-dialogue-reasoning-header-title {
349
349
  flex: 1 1 auto;
350
- line-height: 22px;
351
- font-weight: 600;
350
+ line-height: var(--semi-ai-chat-dialogue-reasoning-header-title-line-height, 22px);
351
+ font-weight: var(--semi-ai-chat-dialogue-reasoning-header-title-font-weight, var(--semi-font-weight-strong, 600));
352
352
  }
353
353
  .semi-ai-chat-dialogue-reasoning-content {
354
354
  padding: 12px 16px;
@@ -358,12 +358,12 @@
358
358
  display: inline-flex;
359
359
  flex-direction: row;
360
360
  align-items: center;
361
- line-height: 20px;
361
+ line-height: var(--semi-ai-chat-dialogue-step-line-height, 20px);
362
362
  padding: 6px 12px;
363
363
  border: 1px solid var(--semi-color-border);
364
364
  border-radius: var(--semi-border-radius-medium);
365
365
  margin-top: 12px;
366
- font-size: 14px;
366
+ font-size: var(--semi-ai-chat-dialogue-step-font-size, var(--semi-font-size-regular, 14px));
367
367
  }
368
368
  .semi-ai-chat-dialogue-step .semi-ai-chat-dialogue-content-loading {
369
369
  margin-top: 0;
@@ -404,9 +404,9 @@
404
404
  margin-left: 20px;
405
405
  }
406
406
  .semi-ai-chat-dialogue-step-action {
407
- line-height: 20px;
407
+ line-height: var(--semi-ai-chat-dialogue-step-action-line-height, 20px);
408
408
  margin-top: 12px;
409
- font-size: 14px;
409
+ font-size: var(--semi-ai-chat-dialogue-step-action-font-size, var(--semi-font-size-regular, 14px));
410
410
  }
411
411
  .semi-ai-chat-dialogue-step-action-summary {
412
412
  margin-bottom: 4px;
@@ -445,7 +445,7 @@
445
445
  align-items: center;
446
446
  justify-content: center;
447
447
  column-gap: 8px;
448
- font-size: 14px;
448
+ font-size: var(--semi-ai-chat-dialogue-annotation-content-font-size, var(--semi-font-size-regular, 14px));
449
449
  color: var(--semi-color-text-2);
450
450
  cursor: pointer;
451
451
  }
@@ -469,8 +469,8 @@
469
469
  .semi-ai-chat-dialogue-references {
470
470
  display: flex;
471
471
  flex-wrap: wrap;
472
- font-size: 12px;
473
- line-height: 16px;
472
+ font-size: var(--semi-ai-chat-dialogue-references-font-size, 12px);
473
+ line-height: var(--semi-ai-chat-dialogue-references-line-height, var(--semi-font-size-header-6, 16px));
474
474
  color: var(--semi-color-text-2);
475
475
  margin-top: 8px;
476
476
  column-gap: 4px;
@@ -536,7 +536,7 @@
536
536
  border-radius: var(--semi-border-radius-large);
537
537
  overflow: hidden;
538
538
  border: 1px solid var(--semi-color-border);
539
- line-height: 32px;
539
+ line-height: var(--semi-ai-chat-dialogue-code-line-height, 32px);
540
540
  }
541
541
  .semi-ai-chat-dialogue-code .semi-codeHighlight pre {
542
542
  word-break: break-all;
@@ -549,7 +549,7 @@
549
549
  align-items: center;
550
550
  padding: 8px 16px;
551
551
  color: var(--semi-color-text-0);
552
- font-size: 14px;
552
+ font-size: var(--semi-ai-chat-dialogue-code-top-slot-font-size, var(--semi-font-size-regular, 14px));
553
553
  }
554
554
  .semi-ai-chat-dialogue-code-topSlot-copy {
555
555
  display: flex;
@@ -595,7 +595,7 @@
595
595
  background-color: var(--semi-color-fill-0);
596
596
  }
597
597
  .semi-ai-chat-dialogue-hint-content {
598
- font-size: 14px;
598
+ font-size: var(--semi-ai-chat-dialogue-hint-content-font-size, var(--semi-font-size-regular, 14px));
599
599
  color: var(--semi-color-text-0);
600
600
  }
601
601
 
@@ -34,9 +34,9 @@
34
34
  border-radius: 6px;
35
35
  padding: 8px 20px;
36
36
  color: var(--semi-color-text-0);
37
- font-size: 14px;
38
- line-height: 20px;
39
- font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
37
+ font-size: var(--semi-font-size-regular, 14px);
38
+ line-height: var(--semi-line-height-regular, 20px);
39
+ font-family: var(--semi-font-family-regular, "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif);
40
40
  }
41
41
  .semi-aiChatInput-suggestion-item-active {
42
42
  background-color: var(--semi-color-fill-0);
@@ -79,9 +79,9 @@
79
79
  display: flex;
80
80
  flex-wrap: wrap;
81
81
  margin-bottom: 8px;
82
- font-size: 12px;
83
- line-height: 16px;
84
- font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
82
+ font-size: var(--semi-font-size-small, 12px);
83
+ line-height: var(--semi-line-height-small, 16px);
84
+ font-family: var(--semi-font-family-regular, "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif);
85
85
  color: var(--semi-color-text-2);
86
86
  column-gap: 4px;
87
87
  row-gap: 4px;
@@ -220,7 +220,7 @@
220
220
  background: transparent;
221
221
  }
222
222
  .semi-aiChatInput-footer-configure-select.semi-select-focus, .semi-aiChatInput-footer-configure-select .semi-select-selection-text {
223
- font-weight: 600;
223
+ font-weight: var(--semi-ai-chat-input-footer-configure-select-font-weight, 600);
224
224
  color: var(--semi-color-text-1);
225
225
  }
226
226
  .semi-aiChatInput-footer-configure-select.semi-select:hover {
@@ -233,7 +233,7 @@
233
233
  .semi-aiChatInput-footer-configure-radio-button .semi-radio-addon-buttonRadio {
234
234
  height: 16px;
235
235
  padding: 4px;
236
- font-size: 14px;
236
+ font-size: var(--semi-ai-chat-input-footer-configure-radio-button-font-size, 14px);
237
237
  }
238
238
  .semi-aiChatInput-footer-configure-radio-button .semi-radio-addon-buttonRadio-checked {
239
239
  color: var(--semi-color-text-1);
@@ -241,9 +241,9 @@
241
241
  }
242
242
  .semi-aiChatInput-footer-configure-mcp-header {
243
243
  padding: 8px 16px 0px;
244
- font-size: 12px;
245
- line-height: 16px;
246
- font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
244
+ font-size: var(--semi-font-size-small, 12px);
245
+ line-height: var(--semi-line-height-small, 16px);
246
+ font-family: var(--semi-font-family-regular, "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif);
247
247
  height: 16px;
248
248
  align-items: center;
249
249
  display: flex;
@@ -257,9 +257,9 @@
257
257
  padding: 0px;
258
258
  border: 0px;
259
259
  height: fit-content;
260
- font-size: 12px;
261
- line-height: 16px;
262
- font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
260
+ font-size: var(--semi-font-size-small, 12px);
261
+ line-height: var(--semi-line-height-small, 16px);
262
+ font-family: var(--semi-font-family-regular, "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif);
263
263
  }
264
264
  .semi-aiChatInput-attachment {
265
265
  position: relative;
@@ -302,10 +302,10 @@
302
302
  white-space: nowrap;
303
303
  text-overflow: ellipsis;
304
304
  color: var(--semi-color-text-0);
305
- font-size: 12px;
306
- line-height: 16px;
307
- font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
308
- font-weight: 600;
305
+ font-size: var(--semi-font-size-small, 12px);
306
+ line-height: var(--semi-line-height-small, 16px);
307
+ font-family: var(--semi-font-family-regular, "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif);
308
+ font-weight: var(--semi-ai-chat-input-attachment-content-name-font-weight, 600);
309
309
  }
310
310
  .semi-aiChatInput-attachment-content-size {
311
311
  display: flex;
@@ -313,9 +313,9 @@
313
313
  align-items: flex-start;
314
314
  column-gap: 4px;
315
315
  color: var(--semi-color-text-2);
316
- font-size: 12px;
317
- line-height: 16px;
318
- font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
316
+ font-size: var(--semi-font-size-small, 12px);
317
+ line-height: var(--semi-line-height-small, 16px);
318
+ font-family: var(--semi-font-family-regular, "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif);
319
319
  text-transform: uppercase;
320
320
  }
321
321
  .semi-aiChatInput-attachment-delete {
@@ -331,7 +331,7 @@
331
331
  border-radius: 50%;
332
332
  width: 16px;
333
333
  height: 16px;
334
- font-size: 12px;
334
+ font-size: var(--semi-ai-chat-input-attachment-content-delete-font-size, 12px);
335
335
  display: flex;
336
336
  align-items: center;
337
337
  justify-content: center;
@@ -404,8 +404,8 @@
404
404
  overflow: auto;
405
405
  }
406
406
  .semi-aiChatInput-editor-content .tiptap {
407
- font-size: 14px;
408
- line-height: 24px;
407
+ font-size: var(--semi-ai-chat-input-rich-text-font-size, var(--semi-font-size-regular, 14px));
408
+ line-height: var(--semi-ai-chat-input-rich-text-line-height, 24px);
409
409
  }
410
410
  .semi-aiChatInput-editor-content .tiptap p.is-editor-empty:first-child::before {
411
411
  color: var(--semi-color-text-2);
@@ -434,8 +434,8 @@
434
434
  }
435
435
  .semi-aiChatInput-editor-content .tiptap .node-inputSlot {
436
436
  display: inline-block;
437
- font-size: 14px;
438
- line-height: 20px;
437
+ font-size: var(--semi-ai-chat-input-rich-text-input-slot-font-size, var(--semi-font-size-regular, 14px));
438
+ line-height: var(--semi-ai-chat-input-rich-text-input-slot-line-height, 20px);
439
439
  }
440
440
  .semi-aiChatInput-editor-content .tiptap .input-slot {
441
441
  display: inline-block;
@@ -445,7 +445,7 @@
445
445
  padding: 2px 4px;
446
446
  position: relative;
447
447
  margin: 2px 2px;
448
- font-weight: 600;
448
+ font-weight: var(--semi-ai-chat-input-rich-text-input-slot-font-weight, 600);
449
449
  min-width: 2px;
450
450
  }
451
451
  .semi-aiChatInput-editor-content .tiptap .input-slot .content {
@@ -465,9 +465,9 @@
465
465
  display: inline-flex;
466
466
  }
467
467
  .semi-aiChatInput-editor-content .tiptap .select-slot {
468
- font-size: 14px;
469
- line-height: 20px;
470
- font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
468
+ font-size: var(--semi-font-size-regular, 14px);
469
+ line-height: var(--semi-line-height-regular, 20px);
470
+ font-family: var(--semi-font-family-regular, "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif);
471
471
  height: 24px;
472
472
  padding: 2px 4px;
473
473
  border-radius: 4px;
@@ -500,7 +500,7 @@
500
500
  }
501
501
  .semi-aiChatInput-editor-content .tiptap .skill-slot {
502
502
  color: var(--semi-color-primary);
503
- font-weight: 600;
503
+ font-weight: var(--semi-ai-chat-input-rich-text-skill-slot-font-weight, 600);
504
504
  outline: none;
505
505
  }
506
506
  .semi-aiChatInput-editor-content .tiptap .skill-slot-wrapper {
package/dist/anchor.css CHANGED
@@ -2,17 +2,17 @@
2
2
  /* sizing */
3
3
  /* spacing */
4
4
  .semi-anchor {
5
- font-size: 14px;
6
- line-height: 20px;
7
- font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
5
+ font-size: var(--semi-font-size-regular, 14px);
6
+ line-height: var(--semi-line-height-regular, 20px);
7
+ font-family: var(--semi-font-family-regular, "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif);
8
8
  overflow-y: auto;
9
9
  overflow-x: hidden;
10
10
  position: relative;
11
11
  }
12
12
  .semi-anchor-size-small {
13
- font-size: 12px;
14
- line-height: 16px;
15
- font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
13
+ font-size: var(--semi-font-size-small, 12px);
14
+ line-height: var(--semi-line-height-small, 16px);
15
+ font-family: var(--semi-font-family-regular, "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif);
16
16
  }
17
17
  .semi-anchor-slide {
18
18
  position: absolute;
@@ -93,9 +93,9 @@
93
93
  color: var(--semi-color-text-2) !important;
94
94
  }
95
95
  .semi-anchor-link-tooltip-small {
96
- font-size: 12px;
97
- line-height: 16px;
98
- font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
96
+ font-size: var(--semi-font-size-small, 12px);
97
+ line-height: var(--semi-line-height-small, 16px);
98
+ font-family: var(--semi-font-family-regular, "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif);
99
99
  }
100
100
  .semi-anchor-link-tooltip:hover {
101
101
  color: var(--semi-color-tertiary-hover) !important;
@@ -41,7 +41,7 @@
41
41
  gap: 4px;
42
42
  }
43
43
  .semi-audio-player-info-title {
44
- font-size: 14px;
44
+ font-size: var(--semi-font-size-audio-player-text, 14px);
45
45
  color: var(--semi-color-bg-0);
46
46
  font-weight: 600;
47
47
  display: flex;
@@ -50,7 +50,7 @@
50
50
  .semi-audio-player-info-time {
51
51
  width: 100%;
52
52
  height: 22px;
53
- font-size: 14px;
53
+ font-size: var(--semi-font-size-audio-player-text, 14px);
54
54
  color: var(--semi-color-bg-0);
55
55
  display: flex;
56
56
  align-items: center;
@@ -67,7 +67,7 @@
67
67
  gap: 4px;
68
68
  background: rgba(var(--semi-grey-8), 1);
69
69
  border-radius: 3px;
70
- font-size: 12px;
70
+ font-size: var(--semi-font-size-audio-player-small, 12px);
71
71
  line-height: 16px;
72
72
  color: var(--semi-color-default);
73
73
  font-weight: 600;
@@ -96,7 +96,7 @@
96
96
  gap: 8px;
97
97
  }
98
98
  .semi-audio-player-control-volume-title {
99
- font-size: 12px;
99
+ font-size: var(--semi-font-size-audio-player-small, 12px);
100
100
  line-height: 16px;
101
101
  color: var(--semi-color-default);
102
102
  font-weight: 600;
@@ -2,9 +2,9 @@
2
2
  /* sizing */
3
3
  /* spacing */
4
4
  .semi-autocomplete-option {
5
- font-size: 14px;
6
- line-height: 20px;
7
- font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
5
+ font-size: var(--semi-font-size-regular, 14px);
6
+ line-height: var(--semi-line-height-regular, 20px);
7
+ font-family: var(--semi-font-family-regular, "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif);
8
8
  word-break: break-all;
9
9
  padding-left: 12px;
10
10
  padding-right: 12px;
@@ -37,7 +37,7 @@
37
37
  .semi-autocomplete-option-keyword {
38
38
  color: var(--semi-color-primary);
39
39
  background-color: inherit;
40
- font-weight: 600;
40
+ font-weight: var(--semi-auto-complete-keyword-font-weight, 600);
41
41
  }
42
42
  .semi-autocomplete-option:active {
43
43
  background-color: var(--semi-color-fill-1);
@@ -61,7 +61,7 @@
61
61
  background-color: var(--semi-color-fill-0);
62
62
  }
63
63
  .semi-autocomplete-option-selected {
64
- font-weight: 600;
64
+ font-weight: var(--semi-font-weight-strong, 600);
65
65
  }
66
66
  .semi-autocomplete-option-selected .semi-autocomplete-option-icon {
67
67
  visibility: visible;