@zyzgroup/core-web 0.1.85 → 0.1.88

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 (226) hide show
  1. package/dist/{animate_ce.css → css/animate_ce.css} +0 -18
  2. package/dist/css/better.css +349 -0
  3. package/dist/{font.css → css/font.css} +42 -35
  4. package/dist/css/media.css +65 -0
  5. package/dist/css/theme.css +224 -0
  6. package/dist/fonts/D-DINExp/D-DINExp-Bold-number.ttf +0 -0
  7. package/dist/fonts/D-DINExp/D-DINExp-Bold.ttf +0 -0
  8. package/dist/fonts/D-DINExp/D-DINExp-number-with-money.ttf +0 -0
  9. package/dist/fonts/D-DINExp/D-DINExp-number.ttf +0 -0
  10. package/dist/fonts/HYYouYuan/HYYouYuan-55W.ttf +0 -0
  11. package/dist/fonts/HYYouYuan/HYYouYuan-75W.ttf +0 -0
  12. package/dist/fonts/IosevkaCurly/iosevka-curly-bold.woff2 +0 -0
  13. package/dist/fonts/IosevkaCurly/iosevka-curly-medium.woff2 +0 -0
  14. package/dist/zyzgroup_core_web.iife.js +30 -27
  15. package/dist/zyzgroup_core_web.iife.js.map +1 -1
  16. package/dist/zyzgroup_core_web.js +14481 -13334
  17. package/dist/zyzgroup_core_web.js.map +1 -1
  18. package/dist/zyzgroup_core_web.umd.cjs +30 -27
  19. package/dist/zyzgroup_core_web.umd.cjs.map +1 -1
  20. package/package.json +7 -6
  21. package/types/Context.d.ts +6 -5
  22. package/types/Context.d.ts.map +1 -1
  23. package/types/DeviceFingerprint.d.ts +4 -0
  24. package/types/DeviceFingerprint.d.ts.map +1 -0
  25. package/types/Pagination.d.ts.map +1 -1
  26. package/types/WebMonitor.d.ts +15 -0
  27. package/types/WebMonitor.d.ts.map +1 -0
  28. package/types/WebSocketClient.d.ts.map +1 -1
  29. package/types/ajax.d.ts.map +1 -1
  30. package/types/animate/schedule.d.ts +3 -0
  31. package/types/animate/schedule.d.ts.map +1 -1
  32. package/types/animate/tween/Easing.d.ts +42 -39
  33. package/types/animate/tween/Easing.d.ts.map +1 -1
  34. package/types/animate/tween/index.d.ts +41 -38
  35. package/types/animate/tween/index.d.ts.map +1 -1
  36. package/types/color.d.ts +1 -0
  37. package/types/color.d.ts.map +1 -1
  38. package/types/env.d.ts +4 -16
  39. package/types/env.d.ts.map +1 -1
  40. package/types/file.d.ts +12 -4
  41. package/types/file.d.ts.map +1 -1
  42. package/types/hooks/index.d.ts +0 -1
  43. package/types/hooks/index.d.ts.map +1 -1
  44. package/types/hooks/useAttribute.d.ts +1 -2
  45. package/types/hooks/useAttribute.d.ts.map +1 -1
  46. package/types/hooks/useCookie.d.ts +3 -3
  47. package/types/hooks/useCookie.d.ts.map +1 -1
  48. package/types/hooks/useDraw/DrawContext.d.ts +3 -1
  49. package/types/hooks/useDraw/DrawContext.d.ts.map +1 -1
  50. package/types/hooks/useDraw/Shape.d.ts +134 -105
  51. package/types/hooks/useDraw/Shape.d.ts.map +1 -1
  52. package/types/hooks/useDraw/canvas/YZCanvasContext.d.ts +3 -1
  53. package/types/hooks/useDraw/canvas/YZCanvasContext.d.ts.map +1 -1
  54. package/types/hooks/useDraw/line/Arc.d.ts.map +1 -1
  55. package/types/hooks/useDraw/line/CubicBezier.d.ts +6 -6
  56. package/types/hooks/useDraw/line/CubicBezier.d.ts.map +1 -1
  57. package/types/hooks/useDraw/line/L.d.ts +1 -1
  58. package/types/hooks/useDraw/line/L.d.ts.map +1 -1
  59. package/types/hooks/useDraw/line/PathD.d.ts +23 -15
  60. package/types/hooks/useDraw/line/PathD.d.ts.map +1 -1
  61. package/types/hooks/useDraw/line/QuadraticBezier.d.ts +1 -1
  62. package/types/hooks/useDraw/line/QuadraticBezier.d.ts.map +1 -1
  63. package/types/hooks/useDraw/shapes/BallShape.d.ts +3 -11
  64. package/types/hooks/useDraw/shapes/BallShape.d.ts.map +1 -1
  65. package/types/hooks/useDraw/shapes/ConfettiShapeCombo.d.ts +27 -0
  66. package/types/hooks/useDraw/shapes/ConfettiShapeCombo.d.ts.map +1 -0
  67. package/types/hooks/useDraw/shapes/CrossShape.d.ts.map +1 -1
  68. package/types/hooks/useDraw/shapes/CurveShape.d.ts +24 -0
  69. package/types/hooks/useDraw/shapes/CurveShape.d.ts.map +1 -0
  70. package/types/hooks/useDraw/shapes/EllipseShape.d.ts +1 -0
  71. package/types/hooks/useDraw/shapes/EllipseShape.d.ts.map +1 -1
  72. package/types/hooks/useDraw/shapes/LineShape.d.ts +11 -9
  73. package/types/hooks/useDraw/shapes/LineShape.d.ts.map +1 -1
  74. package/types/hooks/useDraw/shapes/PointsShape.d.ts +35 -0
  75. package/types/hooks/useDraw/shapes/PointsShape.d.ts.map +1 -0
  76. package/types/hooks/useDraw/shapes/RectShape.d.ts +15 -12
  77. package/types/hooks/useDraw/shapes/RectShape.d.ts.map +1 -1
  78. package/types/hooks/useDraw/shapes/RingIndicatorShapeCombo.d.ts +2 -2
  79. package/types/hooks/useDraw/shapes/RingIndicatorShapeCombo.d.ts.map +1 -1
  80. package/types/hooks/useDraw/shapes/SegmentShapeCombo.d.ts +2 -2
  81. package/types/hooks/useDraw/shapes/SegmentShapeCombo.d.ts.map +1 -1
  82. package/types/hooks/useDraw/shapes/ShipShapeCombo.d.ts +6 -4
  83. package/types/hooks/useDraw/shapes/ShipShapeCombo.d.ts.map +1 -1
  84. package/types/hooks/useDraw/shapes/SliderShapeCombo.d.ts +3 -2
  85. package/types/hooks/useDraw/shapes/SliderShapeCombo.d.ts.map +1 -1
  86. package/types/hooks/useDraw/shapes/TextShape.d.ts +23 -0
  87. package/types/hooks/useDraw/shapes/TextShape.d.ts.map +1 -0
  88. package/types/hooks/useDraw/shapes/TreeShapeCombo.d.ts +3 -2
  89. package/types/hooks/useDraw/shapes/TreeShapeCombo.d.ts.map +1 -1
  90. package/types/hooks/useDraw/shapes/index.d.ts +4 -0
  91. package/types/hooks/useDraw/shapes/index.d.ts.map +1 -1
  92. package/types/hooks/useDraw/svg/SVGUtil.d.ts +3 -2
  93. package/types/hooks/useDraw/svg/SVGUtil.d.ts.map +1 -1
  94. package/types/hooks/useElement.d.ts +21 -6
  95. package/types/hooks/useElement.d.ts.map +1 -1
  96. package/types/hooks/useElementEventBus.d.ts.map +1 -1
  97. package/types/hooks/useElementEvents.d.ts +87 -23
  98. package/types/hooks/useElementEvents.d.ts.map +1 -1
  99. package/types/hooks/useEventListener.d.ts +22 -7
  100. package/types/hooks/useEventListener.d.ts.map +1 -1
  101. package/types/hooks/useFeRouteChange.d.ts +23 -1
  102. package/types/hooks/useFeRouteChange.d.ts.map +1 -1
  103. package/types/hooks/useFetch.d.ts.map +1 -1
  104. package/types/hooks/useLocalStorage.d.ts +3 -6
  105. package/types/hooks/useLocalStorage.d.ts.map +1 -1
  106. package/types/hooks/useMutation.d.ts +1 -0
  107. package/types/hooks/useMutation.d.ts.map +1 -1
  108. package/types/hooks/useSafeArea.d.ts.map +1 -1
  109. package/types/hooks/useSessionStorage.d.ts +3 -6
  110. package/types/hooks/useSessionStorage.d.ts.map +1 -1
  111. package/types/hooks/useStyle.d.ts +20 -2
  112. package/types/hooks/useStyle.d.ts.map +1 -1
  113. package/types/hooks/useTheme.d.ts +2 -1
  114. package/types/hooks/useTheme.d.ts.map +1 -1
  115. package/types/hooks/useVnode.d.ts +5 -5
  116. package/types/hooks/useVnode.d.ts.map +1 -1
  117. package/types/index.d.ts +1 -4
  118. package/types/index.d.ts.map +1 -1
  119. package/types/math/Matrix.d.ts +3 -3
  120. package/types/math/Matrix.d.ts.map +1 -1
  121. package/types/math/ShapeGroup.d.ts +0 -34
  122. package/types/math/ShapeGroup.d.ts.map +1 -1
  123. package/types/math/shapes/Sector.d.ts +0 -65
  124. package/types/math/shapes/Sector.d.ts.map +1 -1
  125. package/types/math/shapes/Tip.d.ts +0 -21
  126. package/types/math/shapes/Tip.d.ts.map +1 -1
  127. package/types/rem.d.ts +1 -1
  128. package/types/rem.d.ts.map +1 -1
  129. package/types/signature.d.ts +29 -2
  130. package/types/signature.d.ts.map +1 -1
  131. package/types/threejs.d.ts +2 -0
  132. package/types/threejs.d.ts.map +1 -0
  133. package/types/vnode.d.ts.map +1 -1
  134. package/dist/better.css +0 -425
  135. package/dist/theme.css +0 -28
  136. package/types/YZMessageChannel.d.ts +0 -21
  137. package/types/YZMessageChannel.d.ts.map +0 -1
  138. package/types/YZWorker.d.ts +0 -16
  139. package/types/YZWorker.d.ts.map +0 -1
  140. package/types/axios.d.ts +0 -33
  141. package/types/axios.d.ts.map +0 -1
  142. package/types/canvas/YZCanvas.d.ts +0 -1
  143. package/types/canvas/YZCanvas.d.ts.map +0 -1
  144. package/types/hooks/useTimestampValue.d.ts +0 -11
  145. package/types/hooks/useTimestampValue.d.ts.map +0 -1
  146. package/types/math/ShapeCombo.d.ts +0 -38
  147. package/types/math/ShapeCombo.d.ts.map +0 -1
  148. package/types/math/math/cameras/Camera.d.ts +0 -1
  149. package/types/math/math/cameras/Camera.d.ts.map +0 -1
  150. package/types/math/math/controls/Controls.d.ts +0 -1
  151. package/types/math/math/controls/Controls.d.ts.map +0 -1
  152. package/types/math/math/controls/OrbitControls.d.ts +0 -1
  153. package/types/math/math/controls/OrbitControls.d.ts.map +0 -1
  154. package/types/math/math/core/BufferGeometry.d.ts +0 -1
  155. package/types/math/math/core/BufferGeometry.d.ts.map +0 -1
  156. package/types/math/math/core/GLBufferAttribute.d.ts +0 -1
  157. package/types/math/math/core/GLBufferAttribute.d.ts.map +0 -1
  158. package/types/math/math/interpolants/Interpolant.d.ts +0 -14
  159. package/types/math/math/interpolants/Interpolant.d.ts.map +0 -1
  160. package/types/math/shapes/Arrow.d.ts +0 -10
  161. package/types/math/shapes/Arrow.d.ts.map +0 -1
  162. package/types/math/shapes/Confetti.d.ts +0 -27
  163. package/types/math/shapes/Confetti.d.ts.map +0 -1
  164. package/types/math/shapes/Cross.d.ts +0 -6
  165. package/types/math/shapes/Cross.d.ts.map +0 -1
  166. package/types/math/shapes/Ellipse.d.ts +0 -22
  167. package/types/math/shapes/Ellipse.d.ts.map +0 -1
  168. package/types/math/shapes/Fox.d.ts +0 -10
  169. package/types/math/shapes/Fox.d.ts.map +0 -1
  170. package/types/math/shapes/HalfRing.d.ts +0 -27
  171. package/types/math/shapes/HalfRing.d.ts.map +0 -1
  172. package/types/math/shapes/HalfRingIndicator.d.ts +0 -34
  173. package/types/math/shapes/HalfRingIndicator.d.ts.map +0 -1
  174. package/types/math/shapes/Heart.d.ts +0 -13
  175. package/types/math/shapes/Heart.d.ts.map +0 -1
  176. package/types/math/shapes/HeartVariant.d.ts +0 -13
  177. package/types/math/shapes/HeartVariant.d.ts.map +0 -1
  178. package/types/math/shapes/Line.d.ts +0 -19
  179. package/types/math/shapes/Line.d.ts.map +0 -1
  180. package/types/math/shapes/LinePicture.d.ts +0 -15
  181. package/types/math/shapes/LinePicture.d.ts.map +0 -1
  182. package/types/math/shapes/LineQuadraticBezier.d.ts +0 -21
  183. package/types/math/shapes/LineQuadraticBezier.d.ts.map +0 -1
  184. package/types/math/shapes/Point.d.ts +0 -85
  185. package/types/math/shapes/Point.d.ts.map +0 -1
  186. package/types/math/shapes/Points.d.ts +0 -28
  187. package/types/math/shapes/Points.d.ts.map +0 -1
  188. package/types/math/shapes/Rabbit.d.ts +0 -8
  189. package/types/math/shapes/Rabbit.d.ts.map +0 -1
  190. package/types/math/shapes/Rect.d.ts +0 -33
  191. package/types/math/shapes/Rect.d.ts.map +0 -1
  192. package/types/math/shapes/Ring.d.ts +0 -24
  193. package/types/math/shapes/Ring.d.ts.map +0 -1
  194. package/types/math/shapes/RingIndicator.d.ts +0 -28
  195. package/types/math/shapes/RingIndicator.d.ts.map +0 -1
  196. package/types/math/shapes/Segment.d.ts +0 -22
  197. package/types/math/shapes/Segment.d.ts.map +0 -1
  198. package/types/math/shapes/Ship.d.ts +0 -13
  199. package/types/math/shapes/Ship.d.ts.map +0 -1
  200. package/types/math/shapes/Slider.d.ts +0 -23
  201. package/types/math/shapes/Slider.d.ts.map +0 -1
  202. package/types/math/shapes/Star.d.ts +0 -11
  203. package/types/math/shapes/Star.d.ts.map +0 -1
  204. package/types/math/shapes/Text.d.ts +0 -21
  205. package/types/math/shapes/Text.d.ts.map +0 -1
  206. package/types/math/shapes/Tree.d.ts +0 -7
  207. package/types/math/shapes/Tree.d.ts.map +0 -1
  208. package/types/math/shapes/index.d.ts +0 -29
  209. package/types/math/shapes/index.d.ts.map +0 -1
  210. package/types/svg/YZSVG.d.ts +0 -1
  211. package/types/svg/YZSVG.d.ts.map +0 -1
  212. package/types/url.d.ts +0 -21
  213. package/types/url.d.ts.map +0 -1
  214. /package/dist/{animate.css → css/animate.css} +0 -0
  215. /package/dist/{animate.min.css → css/animate.min.css} +0 -0
  216. /package/dist/{effects.css → css/effects.css} +0 -0
  217. /package/dist/{flex.css → css/flex.css} +0 -0
  218. /package/dist/{grid.css → css/grid.css} +0 -0
  219. /package/dist/{rem_1080.css → css/rem_1080.css} +0 -0
  220. /package/dist/{rem_1920.css → css/rem_1920.css} +0 -0
  221. /package/dist/{rem_640.css → css/rem_640.css} +0 -0
  222. /package/dist/{rem_720.css → css/rem_720.css} +0 -0
  223. /package/dist/{rem_750.css → css/rem_750.css} +0 -0
  224. /package/dist/{tailwind.css → css/tailwind.css} +0 -0
  225. /package/dist/{D-DINCondensed-number.ttf → fonts/D-DINExp/D-DINCondensed-number.ttf} +0 -0
  226. /package/dist/{D-DINExp.ttf → fonts/D-DINExp/D-DINExp.ttf} +0 -0
@@ -0,0 +1,224 @@
1
+ :root,
2
+ :host {
3
+ /* 配合 rem.js */
4
+ --yz-min-font-size: 0;
5
+ --yz-max-font-size: 100;
6
+ --yz-viewport-min: 0;
7
+ --yz-viewport-max: 750;
8
+ --yz-font-size: clamp(
9
+ var(--yz-min-font-size) * 1px,
10
+ calc(
11
+ var(--yz-min-font-size) * 1px +
12
+ (var(--yz-max-font-size) - var(--yz-min-font-size)) *
13
+ (100vw /* or 100cqw */ - var(--yz-viewport-min) * 1px) /
14
+ (var(--yz-viewport-max) - var(--yz-viewport-min))
15
+ ),
16
+ var(--yz-max-font-size) * 1px
17
+ );
18
+
19
+ /* 预定义大小 */
20
+ --yz-gap-horizontal: 5px;
21
+ --yz-padding-horizontal: 15px;
22
+ --yz-padding-vertical: 10px;
23
+ --yz-padding-vertical-double: 20px;
24
+
25
+ --yz-font-size: 16px; /* 1.4 line-height gap = 3 */
26
+ --yz-font-size-secondary: 14px; /* 1.4 line-height gap = 3 */
27
+
28
+ --yz-disabled-alpha: 0.4;
29
+
30
+ --yz-button-height: 44px;
31
+ --yz-button-padding-horizontal: 20px;
32
+ --yz-button-border-radius: 4px;
33
+
34
+ --yz-button-height-secondary: 32px;
35
+ --yz-button-padding-horizontal-secondary: 16px;
36
+ --yz-button-border-radius-secondary: 4px;
37
+
38
+ --yz-button-height-tertiary: 24px;
39
+ --yz-button-padding-horizontal-tertiary: 8px;
40
+ --yz-button-border-radius-tertiary: 4px;
41
+
42
+ --yz-dialog-border-radius: 12px;
43
+
44
+ --yz-input-height: 44px;
45
+ --yz-input-border-radius: 4px;
46
+
47
+ /* 组件:颜色反向 */
48
+ --yz-foreground-reverse: #ffffff;
49
+ --yz-foreground-border-reverse: #e6e6e6;
50
+ --yz-panel-reverse: #f5f5f5;
51
+ --yz-panel-border-reverse: #b3b3b3;
52
+ --yz-gap-reverse: #cccccc;
53
+ --yz-placeholder-reverse: #8f8f8f;
54
+ --yz-font-reverse: #333333;
55
+ --yz-font-secondary-reverse: #666666;
56
+ --yz-font-tertiary-reverse: #999999;
57
+
58
+ /* 组件:颜色加深 */
59
+ --yz-foreground-common: #ffffff;
60
+ --yz-foreground-border-common: #e6e6e6;
61
+ --yz-panel-common: #f5f5f5;
62
+ --yz-panel-border-common: #b3b3b3;
63
+ --yz-gap-common: #cccccc;
64
+ --yz-placeholder-common: #8f8f8f;
65
+ --yz-font-common: #333333;
66
+ --yz-font-secondary-common: #666666;
67
+ --yz-font-tertiary-common: #999999;
68
+
69
+ /* 预定义颜色:颜色加深 */
70
+ --yz-xg-blue: #5a82f0;
71
+ --yz-xg-blue-secondary: #e6f0ff;
72
+ /* --yz-xg-blue-secondary: #e3eeff; */
73
+ --yz-xg-blue-secondary-border: #a0b4f0;
74
+ --yz-xg-blue-gradient: #66b3ff;
75
+
76
+ --yz-xg-red: #fa503c;
77
+ --yz-xg-red-secondary: #fff5f5;
78
+ --yz-xg-red-secondary-border: #fac8c8;
79
+ --yz-xg-red-gradient: #fa8c78;
80
+
81
+ --yz-xg-yellow: #fa8c00;
82
+ --yz-xg-yellow-gradient: #ffb400;
83
+
84
+ --yz-xg-green: #00be5a;
85
+ --yz-xg-green-gradient: #00e678;
86
+
87
+ --yz-ks-green: #328a8c;
88
+ --yz-ks-green-secondary: #ebf4f4;
89
+
90
+ --yz-yz-green: #29c999;
91
+ --yz-yz-green-secondary: #eef8f8;
92
+
93
+ /* xg-blue:信鸽蓝 */
94
+ --yz-pattern-xg-blue-primary: var(--yz-xg-blue, #5a82f0);
95
+ --yz-pattern-xg-blue-secondary: var(--yz-xg-blue-secondary);
96
+ --yz-pattern-xg-blue-secondary-border: var(--yz-xg-blue-secondary-border);
97
+ --yz-pattern-xg-blue-gradient: var(--yz-xg-blue-gradient);
98
+ --yz-pattern-xg-blue-foreground: var(--yz-foreground-common);
99
+ --yz-pattern-xg-blue-foreground-border: var(--yz-foreground-border-common);
100
+ --yz-pattern-xg-blue-panel: var(--yz-panel-common);
101
+ --yz-pattern-xg-blue-panel-border: var(--yz-panel-border-common);
102
+ --yz-pattern-xg-blue-gap: var(--yz-gap-common);
103
+ --yz-pattern-xg-blue-placeholder: var(--yz-placeholder-common);
104
+ --yz-pattern-xg-blue-font: var(--yz-font-common);
105
+ --yz-pattern-xg-blue-font-secondary: var(--yz-font-secondary-common);
106
+ --yz-pattern-xg-blue-font-tertiary: var(--yz-font-tertiary-common);
107
+
108
+ /* xg-red:信鸽红 */
109
+ --yz-pattern-xg-red-primary: var(--yz-xg-red);
110
+ --yz-pattern-xg-red-gradient: var(--yz-xg-red-gradient);
111
+ --yz-pattern-xg-red-foreground: var(--yz-foreground-common);
112
+ --yz-pattern-xg-red-foreground-border: var(--yz-foreground-border-common);
113
+ --yz-pattern-xg-red-panel: var(--yz-panel-common);
114
+ --yz-pattern-xg-red-panel-border: var(--yz-panel-border-common);
115
+ --yz-pattern-xg-red-gap: var(--yz-gap-common);
116
+ --yz-pattern-xg-red-placeholder: var(--yz-placeholder-common);
117
+ --yz-pattern-xg-red-font: var(--yz-font-common);
118
+ --yz-pattern-xg-red-font-secondary: var(--yz-font-secondary-common);
119
+ --yz-pattern-xg-red-font-tertiary: var(--yz-font-tertiary-common);
120
+
121
+ /* xg-green:信鸽绿 */
122
+ --yz-pattern-xg-green-primary: var(--yz-xg-green);
123
+ --yz-pattern-xg-green-foreground: var(--yz-foreground-common);
124
+ --yz-pattern-xg-green-foreground-border: var(--yz-foreground-border-common);
125
+ --yz-pattern-xg-green-panel: var(--yz-panel-common);
126
+ --yz-pattern-xg-green-panel-border: var(--yz-panel-border-common);
127
+ --yz-pattern-xg-green-gap: var(--yz-gap-common);
128
+ --yz-pattern-xg-green-placeholder: var(--yz-placeholder-common);
129
+ --yz-pattern-xg-green-font: var(--yz-font-common);
130
+ --yz-pattern-xg-green-font-secondary: var(--yz-font-secondary-common);
131
+ --yz-pattern-xg-green-font-tertiary: var(--yz-font-tertiary-common);
132
+
133
+ /* ks-green:昆山绿 */
134
+ --yz-pattern-ks-green-primary: var(--yz-ks-green);
135
+ --yz-pattern-ks-green-secondary: var(--yz-ks-green-secondary);
136
+ --yz-pattern-ks-green-gradient: var(--yz-ks-green);
137
+ --yz-pattern-ks-green-foreground: var(--yz-foreground-common);
138
+ --yz-pattern-ks-green-foreground-border: var(--yz-foreground-border-common);
139
+ --yz-pattern-ks-green-panel: var(--yz-panel-common);
140
+ --yz-pattern-ks-green-panel-border: var(--yz-panel-border-common);
141
+ --yz-pattern-ks-green-gap: var(--yz-gap-common);
142
+ --yz-pattern-ks-green-placeholder: var(--yz-placeholder-common);
143
+ --yz-pattern-ks-green-font: var(--yz-font-common);
144
+ --yz-pattern-ks-green-font-secondary: var(--yz-font-secondary-common);
145
+ --yz-pattern-ks-green-font-tertiary: var(--yz-font-tertiary-common);
146
+
147
+ /* yz-green:扬州绿 */
148
+ --yz-pattern-yz-green-primary: var(--yz-yz-green);
149
+ --yz-pattern-yz-green-secondary: var(--yz-yz-green-secondary);
150
+ --yz-pattern-yz-green-gradient: var(--yz-yz-green);
151
+ --yz-pattern-yz-green-foreground: var(--yz-foreground-common);
152
+ --yz-pattern-yz-green-foreground-border: var(--yz-foreground-border-common);
153
+ --yz-pattern-yz-green-panel: var(--yz-panel-common);
154
+ --yz-pattern-yz-green-panel-border: var(--yz-panel-border-common);
155
+ --yz-pattern-yz-green-gap: var(--yz-gap-common);
156
+ --yz-pattern-yz-green-placeholder: var(--yz-placeholder-common);
157
+ --yz-pattern-yz-green-font: var(--yz-font-common);
158
+ --yz-pattern-yz-green-font-secondary: var(--yz-font-secondary-common);
159
+ --yz-pattern-yz-green-font-tertiary: var(--yz-font-tertiary-common);
160
+ }
161
+
162
+ /* 浅色模式 */
163
+ /* @media (prefers-color-scheme: light) {
164
+ :root,
165
+ :host {
166
+ }
167
+ } */
168
+ html[data-theme="light"]:root,
169
+ html[data-theme="light"]:host {
170
+ }
171
+
172
+ /* 深色模式 */
173
+ /* @media (prefers-color-scheme: dark) {
174
+ :root,
175
+ :host {
176
+ }
177
+ } */
178
+ html[data-theme="dark"]:root,
179
+ html[data-theme="dark"]:host {
180
+ /* 组件:颜色反向 */
181
+ --yz-foreground-reverse: #1d1d1d;
182
+ --yz-foreground-border-reverse: #333333;
183
+ --yz-panel-reverse: #242424;
184
+ --yz-panel-border-reverse: #555555;
185
+ --yz-gap-reverse: #444444;
186
+ --yz-placeholder-reverse: #707070;
187
+ --yz-font-reverse: #cdcdcd;
188
+ --yz-font-secondary-reverse: #8d8d8d;
189
+ --yz-font-tertiary-reverse: #5d5d5d;
190
+
191
+ /* 组件:颜色加深 */
192
+ --yz-foreground-common: #eeeeee;
193
+ --yz-foreground-border-common: #dddddd;
194
+ --yz-panel-common: #e5e5e5;
195
+ --yz-panel-border-common: #bbbbbb;
196
+ --yz-gap-common: #aaaaaa;
197
+ --yz-placeholder-common: #646464;
198
+ --yz-font-common: #1a1a1a;
199
+ --yz-font-secondary-common: #4d4d4d;
200
+ --yz-font-tertiary-common: #7f7f7f;
201
+
202
+ /* 预定义颜色:颜色加深 */
203
+ --yz-xg-blue: #4a6ed7;
204
+ --yz-xg-blue-secondary: #aec6d9;
205
+ --yz-xg-blue-secondary-border: #6e7ccf;
206
+ --yz-xg-blue-gradient: #4c99cc;
207
+
208
+ --yz-xg-red: #d94e37;
209
+ --yz-xg-red-secondary: #f4d1d1;
210
+ --yz-xg-red-secondary-border: #f1a6a6;
211
+ --yz-xg-red-gradient: #d97362;
212
+
213
+ --yz-xg-yellow: #e67e00;
214
+ --yz-xg-yellow-gradient: #e68a00;
215
+
216
+ --yz-xg-green: #009c4d;
217
+ --yz-xg-green-gradient: #00b36b;
218
+
219
+ --yz-ks-green: #27706a;
220
+ --yz-ks-green-secondary: #3a7f7d;
221
+
222
+ --yz-yz-green: #1f9f86;
223
+ --yz-yz-green-secondary: #3a8c8a;
224
+ }