@w-run/wdesign-ui 0.0.0-stage → 1.1.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 (214) hide show
  1. package/README.md +255 -2
  2. package/dist/index.d.ts +1013 -0
  3. package/dist/parts/WdAffix.js +159 -0
  4. package/dist/parts/WdAiMessage.js +277 -0
  5. package/dist/parts/WdAlert.js +92 -0
  6. package/dist/parts/WdAnchor.js +159 -0
  7. package/dist/parts/WdAudioPlayer.js +1024 -0
  8. package/dist/parts/WdAvatar.js +6 -0
  9. package/dist/parts/WdAvatarGroup.js +46 -0
  10. package/dist/parts/WdBacktop.js +120 -0
  11. package/dist/parts/WdBadge.js +61 -0
  12. package/dist/parts/WdBento.js +40 -0
  13. package/dist/parts/WdBentoItem.js +43 -0
  14. package/dist/parts/WdBottomSheet.js +263 -0
  15. package/dist/parts/WdBreadcrumb.js +64 -0
  16. package/dist/parts/WdButton.js +94 -0
  17. package/dist/parts/WdCalendar.js +11 -0
  18. package/dist/parts/WdCard.js +113 -0
  19. package/dist/parts/WdCarousel.js +365 -0
  20. package/dist/parts/WdCascader.js +386 -0
  21. package/dist/parts/WdCheckbox.js +81 -0
  22. package/dist/parts/WdCollapse.js +135 -0
  23. package/dist/parts/WdColorPicker.js +592 -0
  24. package/dist/parts/WdCommand.js +357 -0
  25. package/dist/parts/WdContainer.js +37 -0
  26. package/dist/parts/WdCountdown.js +163 -0
  27. package/dist/parts/WdDanmaku.js +6 -0
  28. package/dist/parts/WdDatePicker.js +169 -0
  29. package/dist/parts/WdDateTimePicker.js +162 -0
  30. package/dist/parts/WdDescriptions.js +146 -0
  31. package/dist/parts/WdDivider.js +64 -0
  32. package/dist/parts/WdDrawer.js +176 -0
  33. package/dist/parts/WdDropdown.js +140 -0
  34. package/dist/parts/WdEmpty.js +79 -0
  35. package/dist/parts/WdExplorer.js +336 -0
  36. package/dist/parts/WdFileList.js +177 -0
  37. package/dist/parts/WdForm.js +111 -0
  38. package/dist/parts/WdFormItem.js +156 -0
  39. package/dist/parts/WdGrid.js +40 -0
  40. package/dist/parts/WdGroup.js +68 -0
  41. package/dist/parts/WdImagePreview.js +274 -0
  42. package/dist/parts/WdInput.js +10 -0
  43. package/dist/parts/WdInputNumber.js +253 -0
  44. package/dist/parts/WdListItem.js +60 -0
  45. package/dist/parts/WdLoading.js +128 -0
  46. package/dist/parts/WdMarkdown.js +172 -0
  47. package/dist/parts/WdMarquee.js +80 -0
  48. package/dist/parts/WdMasonry.js +40 -0
  49. package/dist/parts/WdMediaCard.js +302 -0
  50. package/dist/parts/WdMentions.js +277 -0
  51. package/dist/parts/WdModal.js +149 -0
  52. package/dist/parts/WdNav.js +311 -0
  53. package/dist/parts/WdNotification.js +112 -0
  54. package/dist/parts/WdOtp.js +107 -0
  55. package/dist/parts/WdPagination.js +252 -0
  56. package/dist/parts/WdPopconfirm.js +214 -0
  57. package/dist/parts/WdPopover.js +203 -0
  58. package/dist/parts/WdPostItem.js +84 -0
  59. package/dist/parts/WdProgress.js +48 -0
  60. package/dist/parts/WdProgressRing.js +101 -0
  61. package/dist/parts/WdPullRefresh.js +167 -0
  62. package/dist/parts/WdQRCode.js +1909 -0
  63. package/dist/parts/WdRadioGroup.js +95 -0
  64. package/dist/parts/WdRate.js +128 -0
  65. package/dist/parts/WdResult.js +86 -0
  66. package/dist/parts/WdScrollbar.js +186 -0
  67. package/dist/parts/WdSegmented.js +11 -0
  68. package/dist/parts/WdSelect.js +465 -0
  69. package/dist/parts/WdSkeleton.js +69 -0
  70. package/dist/parts/WdSlider.js +100 -0
  71. package/dist/parts/WdSortableList.js +291 -0
  72. package/dist/parts/WdSpace.js +46 -0
  73. package/dist/parts/WdSparkline.js +148 -0
  74. package/dist/parts/WdSpinner.js +6 -0
  75. package/dist/parts/WdSplitter.js +183 -0
  76. package/dist/parts/WdStatBar.js +202 -0
  77. package/dist/parts/WdStatistic.js +131 -0
  78. package/dist/parts/WdSteps.js +110 -0
  79. package/dist/parts/WdSwitch.js +63 -0
  80. package/dist/parts/WdTabBar.js +84 -0
  81. package/dist/parts/WdTable.js +589 -0
  82. package/dist/parts/WdTabs.js +219 -0
  83. package/dist/parts/WdTag.js +6 -0
  84. package/dist/parts/WdTagInput.js +181 -0
  85. package/dist/parts/WdTimePicker.js +12 -0
  86. package/dist/parts/WdTimeline.js +145 -0
  87. package/dist/parts/WdTooltip.js +108 -0
  88. package/dist/parts/WdTour.js +264 -0
  89. package/dist/parts/WdTransfer.js +446 -0
  90. package/dist/parts/WdTree.js +322 -0
  91. package/dist/parts/WdUpload.js +309 -0
  92. package/dist/parts/WdVideoPlayer.js +1006 -0
  93. package/dist/parts/WdVirtualList.js +169 -0
  94. package/dist/parts/WdWatermark.js +150 -0
  95. package/dist/parts/chunk-3LVE72ZK.js +361 -0
  96. package/dist/parts/chunk-5HYOQ52I.js +101 -0
  97. package/dist/parts/chunk-7M3MUL3B.js +275 -0
  98. package/dist/parts/chunk-AOTJ63HN.js +15 -0
  99. package/dist/parts/chunk-AXEF2U2A.js +41 -0
  100. package/dist/parts/chunk-CY3QOSFP.js +645 -0
  101. package/dist/parts/chunk-G7NN4A6J.js +40 -0
  102. package/dist/parts/chunk-HAKYCUAR.js +9 -0
  103. package/dist/parts/chunk-JDE4AHBR.js +160 -0
  104. package/dist/parts/chunk-LT3NTWIT.js +117 -0
  105. package/dist/parts/chunk-OGHYFT7B.js +387 -0
  106. package/dist/parts/chunk-Q34U2HES.js +261 -0
  107. package/dist/parts/chunk-RLSVPJHM.js +10 -0
  108. package/dist/parts/chunk-U2CDKD2T.js +30 -0
  109. package/dist/parts/chunk-UYUNYHZD.js +40 -0
  110. package/dist/parts/chunk-VUJL2HGD.js +23 -0
  111. package/dist/parts/chunk-WCFG5KNT.js +51 -0
  112. package/dist/parts/chunk-WDDAALPI.js +42 -0
  113. package/dist/parts/chunk-WFXLDBP2.js +149 -0
  114. package/dist/style/affix.css +566 -0
  115. package/dist/style/ai-msg.css +746 -0
  116. package/dist/style/alert.css +636 -0
  117. package/dist/style/anchor.css +630 -0
  118. package/dist/style/audio.css +1954 -0
  119. package/dist/style/avatar.css +651 -0
  120. package/dist/style/backtop.css +625 -0
  121. package/dist/style/badge.css +632 -0
  122. package/dist/style/bento.css +763 -0
  123. package/dist/style/bottom-sheet.css +776 -0
  124. package/dist/style/breadcrumb.css +629 -0
  125. package/dist/style/button.css +829 -0
  126. package/dist/style/calendar.css +1512 -0
  127. package/dist/style/card.css +748 -0
  128. package/dist/style/carousel.css +670 -0
  129. package/dist/style/cascader.css +862 -0
  130. package/dist/style/checkbox.css +706 -0
  131. package/dist/style/chevron.css +575 -0
  132. package/dist/style/collapse.css +648 -0
  133. package/dist/style/colorpicker.css +876 -0
  134. package/dist/style/command.css +760 -0
  135. package/dist/style/container.css +550 -0
  136. package/dist/style/countdown.css +722 -0
  137. package/dist/style/danmaku.css +644 -0
  138. package/dist/style/datepicker.css +683 -0
  139. package/dist/style/datetime-picker.css +714 -0
  140. package/dist/style/descriptions.css +712 -0
  141. package/dist/style/divider.css +604 -0
  142. package/dist/style/dot.css +585 -0
  143. package/dist/style/drawer.css +743 -0
  144. package/dist/style/dropdown.css +645 -0
  145. package/dist/style/empty.css +657 -0
  146. package/dist/style/explorer.css +944 -0
  147. package/dist/style/file-list.css +664 -0
  148. package/dist/style/flip.css +600 -0
  149. package/dist/style/form.css +638 -0
  150. package/dist/style/grid.css +618 -0
  151. package/dist/style/group.css +1022 -0
  152. package/dist/style/icon-btn.css +641 -0
  153. package/dist/style/image-preview.css +725 -0
  154. package/dist/style/input-number.css +680 -0
  155. package/dist/style/input.css +682 -0
  156. package/dist/style/list.css +630 -0
  157. package/dist/style/loading.css +667 -0
  158. package/dist/style/markdown.css +884 -0
  159. package/dist/style/marquee.css +678 -0
  160. package/dist/style/masonry.css +614 -0
  161. package/dist/style/media-card.css +1229 -0
  162. package/dist/style/mentions.css +690 -0
  163. package/dist/style/modal.css +775 -0
  164. package/dist/style/nav.css +1046 -0
  165. package/dist/style/notification.css +601 -0
  166. package/dist/style/otp.css +699 -0
  167. package/dist/style/pagination.css +680 -0
  168. package/dist/style/popconfirm.css +645 -0
  169. package/dist/style/popover.css +740 -0
  170. package/dist/style/post-item.css +676 -0
  171. package/dist/style/progress-ring.css +640 -0
  172. package/dist/style/progress.css +576 -0
  173. package/dist/style/pull-refresh.css +637 -0
  174. package/dist/style/qrcode.css +613 -0
  175. package/dist/style/radio.css +705 -0
  176. package/dist/style/rate.css +637 -0
  177. package/dist/style/result.css +597 -0
  178. package/dist/style/scroll-reveal.css +613 -0
  179. package/dist/style/scrollbar.css +644 -0
  180. package/dist/style/segmented-picker.css +679 -0
  181. package/dist/style/segmented.css +894 -0
  182. package/dist/style/select.css +937 -0
  183. package/dist/style/skeleton.css +590 -0
  184. package/dist/style/slider.css +642 -0
  185. package/dist/style/sortable.css +714 -0
  186. package/dist/style/space.css +568 -0
  187. package/dist/style/sparkline.css +606 -0
  188. package/dist/style/spinner.css +586 -0
  189. package/dist/style/splitter.css +711 -0
  190. package/dist/style/stat-bar.css +767 -0
  191. package/dist/style/statistic.css +589 -0
  192. package/dist/style/steps.css +724 -0
  193. package/dist/style/switch.css +676 -0
  194. package/dist/style/tab-bar.css +647 -0
  195. package/dist/style/table.css +1229 -0
  196. package/dist/style/tabs.css +756 -0
  197. package/dist/style/tag-input.css +710 -0
  198. package/dist/style/tag.css +682 -0
  199. package/dist/style/time-picker.css +749 -0
  200. package/dist/style/timeline.css +1082 -0
  201. package/dist/style/toast.css +598 -0
  202. package/dist/style/tooltip.css +604 -0
  203. package/dist/style/tour.css +683 -0
  204. package/dist/style/transfer.css +858 -0
  205. package/dist/style/tree.css +786 -0
  206. package/dist/style/typography.css +947 -0
  207. package/dist/style/upload.css +758 -0
  208. package/dist/style/vlist.css +591 -0
  209. package/dist/style/vplayer.css +1588 -0
  210. package/dist/style/watermark.css +570 -0
  211. package/dist/wdesign-ui.css +21093 -0
  212. package/dist/wdesign-ui.esm.js +20265 -0
  213. package/package.json +134 -4
  214. package/tokens.json +385 -0
package/package.json CHANGED
@@ -1,6 +1,136 @@
1
1
  {
2
2
  "name": "@w-run/wdesign-ui",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "1.1.0",
4
+ "description": "WDesign UI — 自用组件库(92 个组件 · 令牌驱动 · 全量 SCSS)",
5
+ "type": "module",
6
+ "main": "./dist/wdesign-ui.esm.js",
7
+ "types": "./dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "import": "./dist/wdesign-ui.esm.js",
12
+ "default": "./dist/wdesign-ui.esm.js"
13
+ },
14
+ "./style": "./dist/wdesign-ui.css",
15
+ "./style/*": "./dist/style/*.css",
16
+ "./tokens.json": "./tokens.json",
17
+ "./parts/*": "./dist/parts/*"
18
+ },
19
+ "files": [
20
+ "dist",
21
+ "tokens.json",
22
+ "README.md"
23
+ ],
24
+ "scripts": {
25
+ "build": "node tools/build-lib.mjs",
26
+ "gen:index": "node tools/gen-index.mjs",
27
+ "check:tokens": "python3 tools/check-tokens.py --strict",
28
+ "check:icons": "python3 tools/check-icons.py --strict",
29
+ "typecheck": "node tools/typecheck.mjs",
30
+ "test": "node tools/smoke-test.mjs",
31
+ "audit": "python3 tools/design-audit.py",
32
+ "audit:strict": "python3 tools/design-audit.py --strict",
33
+ "hover:check": "python3 tools/hover-js.py --check",
34
+ "verify": "pnpm --filter @w-run/wdesign-demo check:routes && npm run check:entry-exports && npm run check:pipe-exit && npm run check:flip && npm run check:verify-chain && npm run check:tokens && npm run check:token-dup && npm run check:icons && npm run check:circle && npm run check:blind-paint && npm run check:input-modality && npm run check:table-ellipsis && npm run check:api-rail && npm run check:icon-pixel && npm run check:safe-area && npm run check:anchor-clamp && npm run check:controllable && npm run check:template-refs && npm run check:sizing && npm run check:hover && npm run check:audit && npm run check:type-scale && npm run check:type-ratio && npm run check:fs-role && npm run check:fw-role && npm run check:demo-type && npm run check:page-layout && npm run check:cross-page && npm run check:docs && npm run check:token-docs && npm run check:readme-components && npm run check:stats && npm run check:copy-sizes && npm run check:nav && npm run check:dead-tokens && npm run check:ink && npm run check:ink-roles && npm run check:semantic-color && npm run check:page-counts && npm run check:loading-jump && npm run selftest:pages && npm run check:demo-pages && npm run check:props && npm run check:prop-values && npm run check:slots && npm run check:ios && npm run check:ios-zoom && npm run check:responsive && npm run check:scenario-cov && npm run check:doc-facts && npm run check:selection && npm run check:entry-tokens && npm run check:dts && npm run check:package && npm run check:safe-area-bottom && npm run check:font-alias && npm run check:emits && npm run check:dead-expr && npm run check:attrs && npm run check:dark-pairs && npm run check:z-layers && npm run check:stat-bar-align && npm run check:covers && npm run check:demo-props && npm run check:style-entries && npm run check:form-a11y && npm run check:keyboard-parity && npm run check:slot-guards && npm run check:line-height && npm run check:dialog-name && npm run check:touch-target && npm run typecheck && npm run build && npm run check:meta && npm run check:state-class && npm run check:self && npm run check:self-extra && npm run check:dist-entries && npm run check:ondemand-parts && npm run check:dist-render && npm run check:reveal-js && npm run check:motion && npm run check:reduced-motion && npm run check:hover-motion && npm run test && npm run selftest:guards",
35
+ "prepublishOnly": "npm run verify && npm run build",
36
+ "check:template-refs": "python3 tools/check-template-refs.py",
37
+ "check:sizing": "python3 tools/check-sizing.py --strict",
38
+ "check:hover": "python3 tools/hover-guard.py --check",
39
+ "check:audit": "python3 tools/design-audit.py --strict",
40
+ "check:form-a11y": "python3 tools/check-form-a11y.py",
41
+ "check:type-scale": "python3 tools/check-type-scale.py --strict",
42
+ "check:type-ratio": "python3 tools/check-type-ratio.py --strict",
43
+ "check:demo-type": "python3 tools/check-demo-type-scale.py --strict",
44
+ "check:page-layout": "python3 tools/check-page-layout.py",
45
+ "check:cross-page": "python3 tools/check-cross-page.py",
46
+ "check:docs": "python3 tools/check-docs.py",
47
+ "check:readme-components": "python3 tools/check-readme-components.py",
48
+ "check:ink-roles": "python3 tools/check-ink-roles.py",
49
+ "check:line-height": "python3 tools/check-line-height.py --strict",
50
+ "check:controllable": "python3 tools/check-controllable.py",
51
+ "check:self": "node tools/verify-checkers.mjs",
52
+ "check:self-extra": "node tools/verify-checkers-extra.mjs",
53
+ "check:icon-pixel": "python3 ../icons/tools/check-icon-pixel.py",
54
+ "check:safe-area": "python3 tools/check-safe-area.py",
55
+ "check:meta": "python3 tools/meta-check.py",
56
+ "check:stats": "python3 tools/sync-stats.py",
57
+ "check:nav": "python3 tools/check-nav-meta.py",
58
+ "sync:stats": "python3 tools/sync-stats.py --write",
59
+ "check:anchor-clamp": "python3 tools/check-anchor-clamp.py",
60
+ "check:dialog-name": "python3 tools/check-dialog-name.py",
61
+ "check:dead-tokens": "python3 tools/check-dead-tokens.py",
62
+ "check:touch-target": "python3 tools/check-touch-target.py",
63
+ "check:dist-entries": "python3 tools/check-dist-entries.py",
64
+ "check:entry-exports": "python3 tools/check-entry-exports.py",
65
+ "check:pipe-exit": "python3 tools/check-pipe-exit.py",
66
+ "check:flip": "python3 tools/check-flip.py",
67
+ "check:verify-chain": "python3 tools/check-verify-chain.py",
68
+ "check:semantic-color": "python3 tools/check-semantic-color.py",
69
+ "check:page-counts": "python3 tools/check-page-counts.py",
70
+ "check:loading-jump": "python3 tools/check-loading-jump.py",
71
+ "check:demo-pages": "node ../wdesign-demo/tools/check-pages.mjs",
72
+ "check:ios": "python3 tools/check-ios.py",
73
+ "check:emits": "node tools/check-emits.mjs",
74
+ "check:dead-expr": "python3 tools/check-dead-expr.py",
75
+ "check:dark-pairs": "python3 tools/check-dark-pairs.py",
76
+ "check:z-layers": "python3 tools/check-z-layers.py",
77
+ "check:stat-bar-align": "python3 tools/check-stat-bar-align.py",
78
+ "check:covers": "python3 tools/check-covers.py",
79
+ "check:demo-props": "python3 tools/check-demo-props.py",
80
+ "check:style-entries": "python3 tools/check-style-entries.py",
81
+ "check:dist-render": "node tools/check-dist-render.mjs",
82
+ "check:motion": "python3 tools/check-motion.py",
83
+ "check:slot-guards": "python3 tools/check-slot-guards.py",
84
+ "check:state-class": "python3 tools/check-state-class.py",
85
+ "check:copy-sizes": "python3 tools/check-copy-sizes.py",
86
+ "check:fs-role": "python3 tools/check-fs-role.py",
87
+ "check:fw-role": "python3 tools/check-fw-role.py",
88
+ "check:hover-motion": "python3 tools/check-hover-motion.py",
89
+ "check:token-dup": "python3 tools/check-token-dup.py",
90
+ "check:props": "node tools/check-props.mjs",
91
+ "check:slots": "node tools/check-slots.mjs",
92
+ "check:attrs": "node tools/check-attrs.mjs",
93
+ "check:api-rail": "node tools/check-api-rail.mjs",
94
+ "check:ink": "node tools/check-ink-tokens.mjs",
95
+ "check:reveal-js": "node tools/check-reveal-js.mjs",
96
+ "check:responsive": "node tools/check-responsive.mjs",
97
+ "check:scenario-cov": "python3 tools/check-scenario-coverage.py",
98
+ "check:doc-facts": "python3 tools/check-doc-facts.py",
99
+ "check:entry-tokens": "python3 tools/check-entry-tokens.py",
100
+ "check:dts": "python3 tools/check-dts.py",
101
+ "check:package": "python3 tools/check-package.py",
102
+ "check:safe-area-bottom": "python3 tools/check-safe-area-bottom.py",
103
+ "check:font-alias": "python3 tools/check-font-size-alias.py",
104
+ "check:ios-zoom": "python3 tools/check-ios-input-zoom.py",
105
+ "check:ondemand-parts": "python3 tools/check-ondemand-parts.py",
106
+ "check:selection": "python3 tools/check-selection-coverage.py",
107
+ "selftest:pages": "pnpm --filter @w-run/wdesign-demo selftest:pages",
108
+ "check:keyboard-parity": "python3 tools/check-keyboard-parity.py",
109
+ "check:reduced-motion": "python3 tools/check-reduced-motion.py",
110
+ "check:prop-values": "python3 tools/check-prop-values.py",
111
+ "selftest:guards": "python3 tools/selftest-guards.py",
112
+ "check:circle": "python3 tools/check-circle.py --strict",
113
+ "gen:tokens": "python3 tools/gen-token-docs.py",
114
+ "check:token-docs": "python3 tools/gen-token-docs.py --check",
115
+ "check:blind-paint": "python3 tools/check-blind-first-paint.py --strict",
116
+ "check:input-modality": "python3 tools/check-input-modality.py --strict",
117
+ "check:table-ellipsis": "python3 tools/check-table-ellipsis.py --strict"
118
+ },
119
+ "peerDependencies": {
120
+ "vue": "^3.3.0"
121
+ },
122
+ "devDependencies": {
123
+ "@vue/compiler-sfc": "^3.5.44",
124
+ "esbuild": "^0.28.2",
125
+ "sass": "^1.77.0",
126
+ "typescript": "^7.0.2",
127
+ "vue": "^3.5.44",
128
+ "vue-tsc": "^3.3.13",
129
+ "@w-run/wdesign-icons": "^1.0.0"
130
+ },
131
+ "sideEffects": [
132
+ "*.css",
133
+ "./dist/style/*",
134
+ "./dist/wdesign-ui.css"
135
+ ]
136
+ }
package/tokens.json ADDED
@@ -0,0 +1,385 @@
1
+ {
2
+ "$schema": "https://design-tokens.github.io/community-group/format/",
3
+ "color": {
4
+ "brand": {
5
+ "red": {
6
+ "type": "color",
7
+ "value": "#D62839",
8
+ "comment": "主题红 · 主按钮 / 关键数据"
9
+ },
10
+ "red-hover": {
11
+ "type": "color",
12
+ "value": "#BC2332",
13
+ "comment": "悬停"
14
+ },
15
+ "red-active": {
16
+ "type": "color",
17
+ "value": "#A21E2B",
18
+ "comment": "按下"
19
+ },
20
+ "red-soft": {
21
+ "type": "color",
22
+ "value": "#E05B68",
23
+ "comment": "深色底上的红"
24
+ }
25
+ },
26
+ "tint": {
27
+ "tint-1": {
28
+ "type": "color",
29
+ "value": "#FDF2F3",
30
+ "comment": "最浅 / 高亮底"
31
+ },
32
+ "tint-2": {
33
+ "type": "color",
34
+ "value": "#FBEAEB",
35
+ "comment": "块底 / 次级按钮"
36
+ },
37
+ "tint-3": {
38
+ "type": "color",
39
+ "value": "#F8DDDF",
40
+ "comment": "轨道 / 选中"
41
+ },
42
+ "tint-4": {
43
+ "type": "color",
44
+ "value": "#F3BEC4",
45
+ "comment": "强调块"
46
+ }
47
+ },
48
+ "neutral": {
49
+ "ink": {
50
+ "type": "color",
51
+ "value": "#191B1F",
52
+ "comment": "正文"
53
+ },
54
+ "ink-2": {
55
+ "type": "color",
56
+ "value": "#8A9099",
57
+ "comment": "说明"
58
+ },
59
+ "ink-3": {
60
+ "type": "color",
61
+ "value": "#B8BEC7",
62
+ "comment": "占位"
63
+ },
64
+ "bg": {
65
+ "type": "color",
66
+ "value": "#F7F8FA",
67
+ "comment": "页面底 L0"
68
+ },
69
+ "card": {
70
+ "type": "color",
71
+ "value": "#FFFFFF",
72
+ "comment": "卡片 L1"
73
+ },
74
+ "dark": {
75
+ "type": "color",
76
+ "value": "#1C1C1C",
77
+ "comment": "深色一级 · 锚点 L4"
78
+ },
79
+ "dark-2": {
80
+ "type": "color",
81
+ "value": "#2F2F2F",
82
+ "comment": "深色二级 · 浮层 / 悬停"
83
+ },
84
+ "mask": {
85
+ "type": "color",
86
+ "value": "rgba(28,28,28,.42)",
87
+ "comment": "遮罩(深色模式覆盖)"
88
+ },
89
+ "field-hover": {
90
+ "type": "color",
91
+ "value": "#E3E7EC",
92
+ "comment": "控件悬停底"
93
+ },
94
+ "dark-3": {
95
+ "type": "color",
96
+ "value": "#3A3A3A",
97
+ "comment": "深色按钮按下"
98
+ },
99
+ "ring-soft": {
100
+ "type": "color",
101
+ "value": "rgba(25,27,31,.12)",
102
+ "comment": "细环 / 微投影"
103
+ },
104
+ "underline": {
105
+ "type": "color",
106
+ "value": "rgba(25,27,31,.4)",
107
+ "comment": "下划线修饰"
108
+ },
109
+ "on-dark": {
110
+ "type": "color",
111
+ "value": "rgba(255,255,255,.62)",
112
+ "comment": "深色面上的次级文字"
113
+ },
114
+ "on-dark-2": {
115
+ "type": "color",
116
+ "value": "rgba(255,255,255,.8)",
117
+ "comment": "深色面上的强次级"
118
+ },
119
+ "on-dark-3": {
120
+ "type": "color",
121
+ "value": "rgba(255,255,255,.14)",
122
+ "comment": "深色面上的轨道"
123
+ },
124
+ "on-dark-text": {
125
+ "type": "color",
126
+ "value": "#EDEFF2",
127
+ "comment": "深色面上的正文"
128
+ },
129
+ "mark-bg": {
130
+ "type": "color",
131
+ "value": "rgba(214,40,57,.14)",
132
+ "comment": "文本高亮"
133
+ },
134
+ "link-underline": {
135
+ "type": "color",
136
+ "value": "rgba(214,40,57,.35)",
137
+ "comment": "链接下划线"
138
+ },
139
+ "toast-bg": {
140
+ "type": "color",
141
+ "value": "rgba(255, 255, 255, .78)",
142
+ "comment": "Toast 半透明底(深色覆盖 .74)"
143
+ },
144
+ "dark-text": {
145
+ "type": "color",
146
+ "value": "#FFFFFF",
147
+ "comment": "深色锚点上的文字(深色主题翻转为深字)"
148
+ }
149
+ },
150
+ "semantic": {
151
+ "success": {
152
+ "type": "color",
153
+ "value": "#2FA57C"
154
+ },
155
+ "warning": {
156
+ "type": "color",
157
+ "value": "#E8A33D"
158
+ },
159
+ "success-soft": {
160
+ "type": "color",
161
+ "value": "#E8F6F0",
162
+ "comment": "成功 · 浅底"
163
+ },
164
+ "warning-soft": {
165
+ "type": "color",
166
+ "value": "#FCF4E8",
167
+ "comment": "警告 · 浅底"
168
+ },
169
+ "field": {
170
+ "type": "color",
171
+ "value": "#E9EDF1",
172
+ "comment": "控件底色(白卡 / 灰底通用)"
173
+ },
174
+ "danger": {
175
+ "type": "color",
176
+ "value": "#D62839",
177
+ "comment": "复用主题红"
178
+ }
179
+ },
180
+ "focus": {
181
+ "focus-ring": {
182
+ "type": "color",
183
+ "value": "rgba(214, 40, 57, .22)",
184
+ "comment": "主焦点环"
185
+ },
186
+ "focus-ring-soft": {
187
+ "type": "color",
188
+ "value": "rgba(214, 40, 57, .14)",
189
+ "comment": "软焦点环(选区)"
190
+ },
191
+ "focus-ring-faint": {
192
+ "type": "color",
193
+ "value": "rgba(214,40,57,.08)",
194
+ "comment": "输入框 focus 浅底"
195
+ }
196
+ }
197
+ },
198
+ "dark": {
199
+ "bg": {
200
+ "type": "color",
201
+ "value": "#121214"
202
+ },
203
+ "card": {
204
+ "type": "color",
205
+ "value": "#1C1C1E"
206
+ },
207
+ "field": {
208
+ "type": "color",
209
+ "value": "#2A2A2E"
210
+ },
211
+ "ink": {
212
+ "type": "color",
213
+ "value": "#E8E8EC"
214
+ },
215
+ "ink-2": {
216
+ "type": "color",
217
+ "value": "#8A8AA0"
218
+ },
219
+ "tint-1": {
220
+ "type": "color",
221
+ "value": "#2A1A1E"
222
+ },
223
+ "tint-2": {
224
+ "type": "color",
225
+ "value": "#3A2025"
226
+ },
227
+ "comment": "data-theme=dark 时的覆盖值;主题红 #D62839 不变"
228
+ },
229
+ "radius": {
230
+ "sm": {
231
+ "type": "dimension",
232
+ "value": "12px",
233
+ "comment": "小元件"
234
+ },
235
+ "md": {
236
+ "type": "dimension",
237
+ "value": "16px",
238
+ "comment": "列表行"
239
+ },
240
+ "lg": {
241
+ "type": "dimension",
242
+ "value": "24px",
243
+ "comment": "卡片"
244
+ },
245
+ "xl": {
246
+ "type": "dimension",
247
+ "value": "32px",
248
+ "comment": "大容器"
249
+ },
250
+ "pill": {
251
+ "type": "dimension",
252
+ "value": "999px",
253
+ "comment": "胶囊"
254
+ }
255
+ },
256
+ "shadow": {
257
+ "sm": {
258
+ "type": "shadow",
259
+ "value": "0 4px 12px rgba(25,27,31,.06)"
260
+ },
261
+ "default": {
262
+ "type": "shadow",
263
+ "value": "0 12px 30px rgba(25,27,31,.06)"
264
+ },
265
+ "hover": {
266
+ "type": "shadow",
267
+ "value": "0 16px 40px rgba(25,27,31,.09)"
268
+ },
269
+ "pop": {
270
+ "type": "shadow",
271
+ "value": "0 12px 28px rgba(25,27,31,.14)"
272
+ },
273
+ "lg": {
274
+ "type": "shadow",
275
+ "value": "0 24px 60px rgba(25,27,31,.2)"
276
+ },
277
+ "knob": {
278
+ "type": "shadow",
279
+ "value": "0 2px 8px rgba(25,27,31,.22)"
280
+ }
281
+ },
282
+ "space": {
283
+ "1": {
284
+ "type": "dimension",
285
+ "value": "4px"
286
+ },
287
+ "2": {
288
+ "type": "dimension",
289
+ "value": "8px"
290
+ },
291
+ "3": {
292
+ "type": "dimension",
293
+ "value": "12px"
294
+ },
295
+ "4": {
296
+ "type": "dimension",
297
+ "value": "16px"
298
+ },
299
+ "6": {
300
+ "type": "dimension",
301
+ "value": "24px",
302
+ "comment": "卡内边距(主)"
303
+ },
304
+ "8": {
305
+ "type": "dimension",
306
+ "value": "32px",
307
+ "comment": "区块间距(主)"
308
+ },
309
+ "12": {
310
+ "type": "dimension",
311
+ "value": "48px"
312
+ },
313
+ "16": {
314
+ "type": "dimension",
315
+ "value": "64px"
316
+ }
317
+ },
318
+ "font": {
319
+ "family": {
320
+ "type": "fontFamily",
321
+ "value": "\"Mona Sans\", \"Source Han Sans SC\", \"Noto Sans SC\", \"PingFang SC\", -apple-system, Inter, sans-serif",
322
+ "comment": "拉丁 Mona Sans + 中文思源黑体(都是 VF 可变字体)"
323
+ },
324
+ "mono": {
325
+ "type": "fontFamily",
326
+ "value": "\"Mona Sans Mono\", ui-monospace, Menlo, Consolas, monospace"
327
+ },
328
+ "sizeDisplay": {
329
+ "type": "dimension",
330
+ "value": "56px"
331
+ },
332
+ "sizeH1": {
333
+ "type": "dimension",
334
+ "value": "32px"
335
+ },
336
+ "sizeH2": {
337
+ "type": "dimension",
338
+ "value": "24px"
339
+ },
340
+ "sizeH3": {
341
+ "type": "dimension",
342
+ "value": "18px"
343
+ },
344
+ "sizeBody": {
345
+ "type": "dimension",
346
+ "value": "15.5px"
347
+ },
348
+ "sizeCaption": {
349
+ "type": "dimension",
350
+ "value": "13px"
351
+ }
352
+ },
353
+ "motion": {
354
+ "dur": {
355
+ "type": "duration",
356
+ "value": "0.24s",
357
+ "comment": "标准动效时长"
358
+ },
359
+ "dur-fast": {
360
+ "type": "duration",
361
+ "value": "0.14s",
362
+ "comment": "快速动效时长"
363
+ },
364
+ "ease": {
365
+ "type": "keyword",
366
+ "value": "cubic-bezier(.25,.8,.35,1)",
367
+ "comment": "标准缓动"
368
+ },
369
+ "dur-slow": {
370
+ "type": "duration",
371
+ "value": "0.24s",
372
+ "comment": "大位移 / 尺寸变化"
373
+ },
374
+ "ease-spring": {
375
+ "type": "keyword",
376
+ "value": "cubic-bezier(.34, 1.56, .64, 1)",
377
+ "comment": "微型弹簧(勾选/弹入)"
378
+ },
379
+ "ease-out": {
380
+ "type": "keyword",
381
+ "value": "cubic-bezier(.16, 1, .3, 1)",
382
+ "comment": "轻盈沉降"
383
+ }
384
+ }
385
+ }