@tiny-design/react 1.4.0 → 1.5.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 (168) hide show
  1. package/es/alert/style/_index.scss +2 -2
  2. package/es/alert/style/index.css +2 -2
  3. package/es/auto-complete/style/_index.scss +4 -5
  4. package/es/auto-complete/style/index.css +4 -5
  5. package/es/breadcrumb/style/index.css +1 -1
  6. package/es/breadcrumb/types.d.ts +1 -1
  7. package/es/button/style/index.css +14 -14
  8. package/es/calendar/style/_index.scss +9 -9
  9. package/es/calendar/style/index.css +9 -9
  10. package/es/card/style/index.css +3 -3
  11. package/es/cascader/style/_index.scss +9 -9
  12. package/es/cascader/style/index.css +9 -9
  13. package/es/checkbox/style/_index.scss +9 -12
  14. package/es/checkbox/style/index.css +9 -12
  15. package/es/collapse/style/index.css +3 -3
  16. package/es/color-picker/style/_index.scss +7 -7
  17. package/es/color-picker/style/index.css +4 -4
  18. package/es/date-picker/style/_index.scss +1 -1
  19. package/es/date-picker/style/index.css +1 -1
  20. package/es/descriptions/style/_index.scss +5 -6
  21. package/es/descriptions/style/index.css +6 -6
  22. package/es/empty/style/_index.scss +1 -1
  23. package/es/empty/style/index.css +1 -1
  24. package/es/form/style/_index.scss +5 -6
  25. package/es/form/style/index.css +4 -4
  26. package/es/index.d.ts +2 -1
  27. package/es/index.js +2 -1
  28. package/es/input/style/_index.scss +5 -4
  29. package/es/input/style/_mixin.scss +1 -1
  30. package/es/input/style/index.css +21 -20
  31. package/es/input-number/input-number.js +11 -5
  32. package/es/input-number/input-number.js.map +1 -1
  33. package/es/input-number/style/_index.scss +5 -3
  34. package/es/input-number/style/index.css +13 -11
  35. package/es/input-otp/style/_index.scss +1 -1
  36. package/es/input-otp/style/index.css +8 -8
  37. package/es/list/style/_index.scss +3 -3
  38. package/es/list/style/index.css +3 -3
  39. package/es/marquee/index.d.ts +1 -0
  40. package/es/marquee/index.js +9 -0
  41. package/es/marquee/index.js.map +1 -0
  42. package/es/marquee/marquee.d.ts +8 -0
  43. package/es/marquee/marquee.js +42 -0
  44. package/es/marquee/marquee.js.map +1 -0
  45. package/es/marquee/style/_index.scss +77 -0
  46. package/es/marquee/style/index.css +64 -0
  47. package/es/marquee/style/index.d.ts +1 -0
  48. package/es/marquee/style/index.js +1 -0
  49. package/es/marquee/types.d.ts +21 -0
  50. package/es/native-select/style/index.css +4 -4
  51. package/es/notification/style/_index.scss +1 -1
  52. package/es/notification/style/index.css +1 -1
  53. package/es/pop-confirm/style/_index.scss +1 -1
  54. package/es/pop-confirm/style/index.css +1 -1
  55. package/es/popup/style/_index.scss +9 -9
  56. package/es/popup/style/index.css +10 -10
  57. package/es/radio/style/_index.scss +5 -8
  58. package/es/radio/style/index.css +5 -8
  59. package/es/segmented/style/_index.scss +10 -10
  60. package/es/segmented/style/index.css +9 -9
  61. package/es/select/style/_index.scss +16 -17
  62. package/es/select/style/index.css +15 -16
  63. package/es/speed-dial/style/_index.scss +2 -2
  64. package/es/speed-dial/style/index.css +2 -2
  65. package/es/statistic/style/_index.scss +2 -2
  66. package/es/statistic/style/index.css +2 -2
  67. package/es/style/_component.scss +1 -0
  68. package/es/style/base.css +57 -0
  69. package/es/table/style/_index.scss +6 -6
  70. package/es/table/style/index.css +5 -5
  71. package/es/tag/style/index.css +1 -1
  72. package/es/textarea/style/index.css +2 -2
  73. package/es/time-picker/style/_index.scss +1 -1
  74. package/es/time-picker/style/index.css +1 -1
  75. package/es/timeline/style/_index.scss +3 -3
  76. package/es/timeline/style/index.css +3 -3
  77. package/es/tooltip/style/index.css +1 -1
  78. package/es/transfer/style/_index.scss +4 -4
  79. package/es/transfer/style/index.css +4 -4
  80. package/es/tree/style/index.css +1 -1
  81. package/es/typography/style/_index.scss +2 -2
  82. package/es/typography/style/index.css +2 -2
  83. package/es/upload/style/_index.scss +4 -4
  84. package/es/upload/style/index.css +4 -4
  85. package/lib/alert/style/_index.scss +2 -2
  86. package/lib/alert/style/index.css +2 -2
  87. package/lib/auto-complete/style/_index.scss +4 -5
  88. package/lib/auto-complete/style/index.css +4 -5
  89. package/lib/breadcrumb/style/index.css +1 -1
  90. package/lib/breadcrumb/types.d.ts +1 -1
  91. package/lib/button/style/index.css +14 -14
  92. package/lib/calendar/style/_index.scss +9 -9
  93. package/lib/calendar/style/index.css +9 -9
  94. package/lib/card/style/index.css +3 -3
  95. package/lib/cascader/style/_index.scss +9 -9
  96. package/lib/cascader/style/index.css +9 -9
  97. package/lib/checkbox/style/_index.scss +9 -12
  98. package/lib/checkbox/style/index.css +9 -12
  99. package/lib/collapse/style/index.css +3 -3
  100. package/lib/color-picker/style/_index.scss +7 -7
  101. package/lib/color-picker/style/index.css +4 -4
  102. package/lib/date-picker/style/_index.scss +1 -1
  103. package/lib/date-picker/style/index.css +1 -1
  104. package/lib/descriptions/style/_index.scss +5 -6
  105. package/lib/descriptions/style/index.css +6 -6
  106. package/lib/empty/style/_index.scss +1 -1
  107. package/lib/empty/style/index.css +1 -1
  108. package/lib/form/style/_index.scss +5 -6
  109. package/lib/form/style/index.css +4 -4
  110. package/lib/index.d.ts +2 -1
  111. package/lib/index.js +76 -74
  112. package/lib/input/style/_index.scss +5 -4
  113. package/lib/input/style/_mixin.scss +1 -1
  114. package/lib/input/style/index.css +21 -20
  115. package/lib/input-number/input-number.js +11 -5
  116. package/lib/input-number/input-number.js.map +1 -1
  117. package/lib/input-number/style/_index.scss +5 -3
  118. package/lib/input-number/style/index.css +13 -11
  119. package/lib/input-otp/style/_index.scss +1 -1
  120. package/lib/input-otp/style/index.css +8 -8
  121. package/lib/list/style/_index.scss +3 -3
  122. package/lib/list/style/index.css +3 -3
  123. package/lib/marquee/index.js +8 -0
  124. package/lib/marquee/index.js.map +1 -0
  125. package/lib/marquee/marquee.d.ts +8 -0
  126. package/lib/marquee/marquee.js +45 -0
  127. package/lib/marquee/marquee.js.map +1 -0
  128. package/lib/marquee/style/_index.scss +77 -0
  129. package/lib/marquee/style/index.css +64 -0
  130. package/lib/marquee/style/index.d.ts +1 -0
  131. package/lib/marquee/style/index.js +1 -0
  132. package/lib/marquee/types.d.ts +21 -0
  133. package/lib/native-select/style/index.css +4 -4
  134. package/lib/notification/style/_index.scss +1 -1
  135. package/lib/notification/style/index.css +1 -1
  136. package/lib/pop-confirm/style/_index.scss +1 -1
  137. package/lib/pop-confirm/style/index.css +1 -1
  138. package/lib/popup/style/_index.scss +9 -9
  139. package/lib/popup/style/index.css +10 -10
  140. package/lib/radio/style/_index.scss +5 -8
  141. package/lib/radio/style/index.css +5 -8
  142. package/lib/segmented/style/_index.scss +10 -10
  143. package/lib/segmented/style/index.css +9 -9
  144. package/lib/select/style/_index.scss +16 -17
  145. package/lib/select/style/index.css +15 -16
  146. package/lib/speed-dial/style/_index.scss +2 -2
  147. package/lib/speed-dial/style/index.css +2 -2
  148. package/lib/statistic/style/_index.scss +2 -2
  149. package/lib/statistic/style/index.css +2 -2
  150. package/lib/style/_component.scss +1 -0
  151. package/lib/style/base.css +57 -0
  152. package/lib/table/style/_index.scss +6 -6
  153. package/lib/table/style/index.css +5 -5
  154. package/lib/tag/style/index.css +1 -1
  155. package/lib/textarea/style/index.css +2 -2
  156. package/lib/time-picker/style/_index.scss +1 -1
  157. package/lib/time-picker/style/index.css +1 -1
  158. package/lib/timeline/style/_index.scss +3 -3
  159. package/lib/timeline/style/index.css +3 -3
  160. package/lib/tooltip/style/index.css +1 -1
  161. package/lib/transfer/style/_index.scss +4 -4
  162. package/lib/transfer/style/index.css +4 -4
  163. package/lib/tree/style/index.css +1 -1
  164. package/lib/typography/style/_index.scss +2 -2
  165. package/lib/typography/style/index.css +2 -2
  166. package/lib/upload/style/_index.scss +4 -4
  167. package/lib/upload/style/index.css +4 -4
  168. package/package.json +3 -3
@@ -3,7 +3,7 @@
3
3
  align-items: center;
4
4
  padding: 2px;
5
5
  background: var(--ty-segmented-bg, #e9ecef);
6
- border-radius: 2px;
6
+ border-radius: var(--ty-border-radius);
7
7
  box-sizing: border-box;
8
8
  }
9
9
  .ty-segmented_block {
@@ -24,18 +24,18 @@
24
24
  }
25
25
  .ty-segmented_sm .ty-segmented__item {
26
26
  padding: 0 8px;
27
- height: calc(24px - 4px);
28
- font-size: 0.875rem;
27
+ height: calc(var(--ty-height-sm) - 4px);
28
+ font-size: var(--ty-font-size-sm);
29
29
  }
30
30
  .ty-segmented_md .ty-segmented__item {
31
31
  padding: 0 12px;
32
- height: calc(32px - 4px);
33
- font-size: 1rem;
32
+ height: calc(var(--ty-height-md) - 4px);
33
+ font-size: var(--ty-font-size-base);
34
34
  }
35
35
  .ty-segmented_lg .ty-segmented__item {
36
36
  padding: 0 16px;
37
- height: calc(42px - 4px);
38
- font-size: 1.25rem;
37
+ height: calc(var(--ty-height-lg) - 4px);
38
+ font-size: var(--ty-font-size-lg);
39
39
  }
40
40
  .ty-segmented__item {
41
41
  position: relative;
@@ -43,14 +43,14 @@
43
43
  align-items: center;
44
44
  gap: 4px;
45
45
  cursor: pointer;
46
- border-radius: 2px;
46
+ border-radius: var(--ty-border-radius);
47
47
  transition: all 0.2s;
48
48
  -webkit-user-select: none;
49
49
  -moz-user-select: none;
50
50
  user-select: none;
51
51
  white-space: nowrap;
52
52
  }
53
- .ty-segmented__item:hover:not(.ty-segmented__item_active):not(.ty-segmented__item_disabled) {
53
+ .ty-segmented__item:hover:not(.ty-segmented__item_active, .ty-segmented__item_disabled) {
54
54
  color: var(--ty-color-text, #212529);
55
55
  }
56
56
  .ty-segmented__item_active {
@@ -4,7 +4,7 @@
4
4
  position: relative;
5
5
  display: inline-block;
6
6
  width: 100%;
7
- font-size: $font-size-base;
7
+ font-size: var(--ty-font-size-base);
8
8
  cursor: pointer;
9
9
  outline: none;
10
10
 
@@ -20,20 +20,20 @@
20
20
 
21
21
  // Sizes
22
22
  &_sm .#{$prefix}-select__selector {
23
- min-height: $height-sm;
24
- font-size: $font-size-sm;
23
+ min-height: var(--ty-height-sm);
24
+ font-size: var(--ty-font-size-sm);
25
25
  padding: 0 24px 0 8px;
26
26
  }
27
27
 
28
28
  &_md .#{$prefix}-select__selector {
29
- min-height: $height-md;
30
- font-size: $font-size-base;
29
+ min-height: var(--ty-height-md);
30
+ font-size: var(--ty-font-size-base);
31
31
  padding: 0 28px 0 10px;
32
32
  }
33
33
 
34
34
  &_lg .#{$prefix}-select__selector {
35
- min-height: $height-lg;
36
- font-size: $font-size-lg;
35
+ min-height: var(--ty-height-lg);
36
+ font-size: var(--ty-font-size-lg);
37
37
  padding: 0 32px 0 12px;
38
38
  }
39
39
 
@@ -62,7 +62,7 @@
62
62
  align-items: center;
63
63
  width: 100%;
64
64
  border: $border-width solid var(--ty-input-border);
65
- border-radius: $border-radius;
65
+ border-radius: var(--ty-border-radius);
66
66
  background-color: var(--ty-input-bg);
67
67
  box-sizing: border-box;
68
68
  transition: all 0.3s;
@@ -173,9 +173,9 @@
173
173
  max-width: 100%;
174
174
  height: 22px;
175
175
  padding: 0 4px 0 8px;
176
- border-radius: $border-radius;
176
+ border-radius: var(--ty-border-radius);
177
177
  background-color: var(--ty-color-fill-secondary);
178
- font-size: $font-size-sm;
178
+ font-size: var(--ty-font-size-sm);
179
179
  line-height: 20px;
180
180
  color: var(--ty-color-text);
181
181
  box-sizing: border-box;
@@ -212,12 +212,11 @@
212
212
  list-style-type: none;
213
213
  background-color: var(--ty-select-dropdown-bg);
214
214
  box-sizing: border-box;
215
- overflow-x: hidden;
216
- overflow-y: auto;
215
+ overflow: hidden auto;
217
216
  z-index: 10;
218
217
  box-shadow: var(--ty-shadow-popup);
219
- border-radius: $border-radius;
220
- font-size: $font-size-base;
218
+ border-radius: var(--ty-border-radius);
219
+ font-size: var(--ty-font-size-base);
221
220
  max-height: $select-dropdown-max-height;
222
221
  }
223
222
 
@@ -238,7 +237,7 @@
238
237
  padding: 16px;
239
238
  text-align: center;
240
239
  color: var(--ty-color-text-quaternary);
241
- font-size: $font-size-sm;
240
+ font-size: var(--ty-font-size-sm);
242
241
  }
243
242
  }
244
243
 
@@ -284,9 +283,8 @@
284
283
  }
285
284
 
286
285
  .#{$prefix}-select-group {
287
-
288
286
  &__title {
289
- font-size: $font-size-sm;
287
+ font-size: var(--ty-font-size-sm);
290
288
  cursor: default;
291
289
  color: $gray-600;
292
290
  padding: 7px 12px;
@@ -307,6 +305,7 @@
307
305
  from {
308
306
  transform: rotate(0deg);
309
307
  }
308
+
310
309
  to {
311
310
  transform: rotate(360deg);
312
311
  }
@@ -2,7 +2,7 @@
2
2
  position: relative;
3
3
  display: inline-block;
4
4
  width: 100%;
5
- font-size: 1rem;
5
+ font-size: var(--ty-font-size-base);
6
6
  cursor: pointer;
7
7
  outline: none;
8
8
  }
@@ -15,18 +15,18 @@
15
15
  cursor: not-allowed;
16
16
  }
17
17
  .ty-select_sm .ty-select__selector {
18
- min-height: 24px;
19
- font-size: 0.875rem;
18
+ min-height: var(--ty-height-sm);
19
+ font-size: var(--ty-font-size-sm);
20
20
  padding: 0 24px 0 8px;
21
21
  }
22
22
  .ty-select_md .ty-select__selector {
23
- min-height: 32px;
24
- font-size: 1rem;
23
+ min-height: var(--ty-height-md);
24
+ font-size: var(--ty-font-size-base);
25
25
  padding: 0 28px 0 10px;
26
26
  }
27
27
  .ty-select_lg .ty-select__selector {
28
- min-height: 42px;
29
- font-size: 1.25rem;
28
+ min-height: var(--ty-height-lg);
29
+ font-size: var(--ty-font-size-lg);
30
30
  padding: 0 32px 0 12px;
31
31
  }
32
32
  .ty-select_multiple .ty-select__selector {
@@ -46,7 +46,7 @@
46
46
  align-items: center;
47
47
  width: 100%;
48
48
  border: 1px solid var(--ty-input-border);
49
- border-radius: 2px;
49
+ border-radius: var(--ty-border-radius);
50
50
  background-color: var(--ty-input-bg);
51
51
  box-sizing: border-box;
52
52
  transition: all 0.3s;
@@ -143,9 +143,9 @@
143
143
  max-width: 100%;
144
144
  height: 22px;
145
145
  padding: 0 4px 0 8px;
146
- border-radius: 2px;
146
+ border-radius: var(--ty-border-radius);
147
147
  background-color: var(--ty-color-fill-secondary);
148
- font-size: 0.875rem;
148
+ font-size: var(--ty-font-size-sm);
149
149
  line-height: 20px;
150
150
  color: var(--ty-color-text);
151
151
  box-sizing: border-box;
@@ -176,12 +176,11 @@
176
176
  list-style-type: none;
177
177
  background-color: var(--ty-select-dropdown-bg);
178
178
  box-sizing: border-box;
179
- overflow-x: hidden;
180
- overflow-y: auto;
179
+ overflow: hidden auto;
181
180
  z-index: 10;
182
181
  box-shadow: var(--ty-shadow-popup);
183
- border-radius: 2px;
184
- font-size: 1rem;
182
+ border-radius: var(--ty-border-radius);
183
+ font-size: var(--ty-font-size-base);
185
184
  max-height: 300px;
186
185
  }
187
186
  .ty-select__loading {
@@ -197,7 +196,7 @@
197
196
  padding: 16px;
198
197
  text-align: center;
199
198
  color: var(--ty-color-text-quaternary);
200
- font-size: 0.875rem;
199
+ font-size: var(--ty-font-size-sm);
201
200
  }
202
201
 
203
202
  .ty-select-option {
@@ -236,7 +235,7 @@
236
235
  }
237
236
 
238
237
  .ty-select-group__title {
239
- font-size: 0.875rem;
238
+ font-size: var(--ty-font-size-sm);
240
239
  cursor: default;
241
240
  color: #8898aa;
242
241
  padding: 7px 12px;
@@ -197,9 +197,9 @@ $speed-dial-actions-gap: 16px;
197
197
  white-space: nowrap;
198
198
  background-color: var(--ty-speed-dial-tooltip-bg, #{$gray-800});
199
199
  color: var(--ty-speed-dial-tooltip-color, #{$white-color});
200
- font-size: $font-size-sm;
200
+ font-size: var(--ty-font-size-sm);
201
201
  padding: 4px 8px;
202
- border-radius: $border-radius;
202
+ border-radius: var(--ty-border-radius);
203
203
  pointer-events: none;
204
204
 
205
205
  &_left {
@@ -156,9 +156,9 @@
156
156
  white-space: nowrap;
157
157
  background-color: var(--ty-speed-dial-tooltip-bg, #32325d);
158
158
  color: var(--ty-speed-dial-tooltip-color, #fff);
159
- font-size: 0.875rem;
159
+ font-size: var(--ty-font-size-sm);
160
160
  padding: 4px 8px;
161
- border-radius: 2px;
161
+ border-radius: var(--ty-border-radius);
162
162
  pointer-events: none;
163
163
  }
164
164
  .ty-speed-dial__action-tooltip_left {
@@ -4,7 +4,7 @@
4
4
  &__title {
5
5
  margin-bottom: 4px;
6
6
  color: var(--ty-color-text-secondary, #{$gray-600});
7
- font-size: $font-size-sm;
7
+ font-size: var(--ty-font-size-sm);
8
8
  }
9
9
 
10
10
  &__content {
@@ -24,7 +24,7 @@
24
24
 
25
25
  &__suffix {
26
26
  margin-left: 4px;
27
- font-size: $font-size-base;
27
+ font-size: var(--ty-font-size-base);
28
28
  display: inline-flex;
29
29
  align-items: center;
30
30
  }
@@ -1,7 +1,7 @@
1
1
  .ty-statistic__title {
2
2
  margin-bottom: 4px;
3
3
  color: var(--ty-color-text-secondary, #8898aa);
4
- font-size: 0.875rem;
4
+ font-size: var(--ty-font-size-sm);
5
5
  }
6
6
  .ty-statistic__content {
7
7
  display: flex;
@@ -18,7 +18,7 @@
18
18
  }
19
19
  .ty-statistic__suffix {
20
20
  margin-left: 4px;
21
- font-size: 1rem;
21
+ font-size: var(--ty-font-size-base);
22
22
  display: inline-flex;
23
23
  align-items: center;
24
24
  }
@@ -36,6 +36,7 @@
36
36
  @use "../loader/style/index" as *;
37
37
  @use "../loading-bar/style/index" as *;
38
38
  @use "../keyboard/style/index" as *;
39
+ @use "../marquee/style/index" as *;
39
40
  @use "../menu/style/index" as *;
40
41
  @use "../message/style/index" as *;
41
42
  @use "../modal/style/index" as *;
package/es/style/base.css CHANGED
@@ -270,6 +270,25 @@
270
270
  --ty-calendar-bg: #fff;
271
271
  --ty-calendar-border: #e9ecef;
272
272
  --ty-calendar-hover: #f6f9fc;
273
+ --ty-font-family: -apple-system, blinkmacsystemfont, Segoe UI, roboto, Helvetica Neue, arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
274
+ --ty-font-family-monospace: lucida console, consolas, monaco, andale mono, ubuntu mono, monospace;
275
+ --ty-font-size-base: 1rem;
276
+ --ty-font-size-sm: 0.875rem;
277
+ --ty-font-size-lg: 1.25rem;
278
+ --ty-font-weight: 400;
279
+ --ty-line-height-base: 1.5;
280
+ --ty-headings-font-weight: 500;
281
+ --ty-h1-font-size: 2.5rem;
282
+ --ty-h2-font-size: 2rem;
283
+ --ty-h3-font-size: 1.75rem;
284
+ --ty-h4-font-size: 1.5rem;
285
+ --ty-h5-font-size: 1.25rem;
286
+ --ty-h6-font-size: 1rem;
287
+ --ty-border-radius: 2px;
288
+ --ty-height-sm: 24px;
289
+ --ty-height-md: 32px;
290
+ --ty-height-lg: 42px;
291
+ --ty-spacer: 1rem;
273
292
  }
274
293
 
275
294
  html[data-tiny-theme=dark] {
@@ -544,6 +563,25 @@ html[data-tiny-theme=dark] {
544
563
  --ty-calendar-bg: #1f1f1f;
545
564
  --ty-calendar-border: #363636;
546
565
  --ty-calendar-hover: #2a2a2a;
566
+ --ty-font-family: -apple-system, blinkmacsystemfont, Segoe UI, roboto, Helvetica Neue, arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
567
+ --ty-font-family-monospace: lucida console, consolas, monaco, andale mono, ubuntu mono, monospace;
568
+ --ty-font-size-base: 1rem;
569
+ --ty-font-size-sm: 0.875rem;
570
+ --ty-font-size-lg: 1.25rem;
571
+ --ty-font-weight: 400;
572
+ --ty-line-height-base: 1.5;
573
+ --ty-headings-font-weight: 500;
574
+ --ty-h1-font-size: 2.5rem;
575
+ --ty-h2-font-size: 2rem;
576
+ --ty-h3-font-size: 1.75rem;
577
+ --ty-h4-font-size: 1.5rem;
578
+ --ty-h5-font-size: 1.25rem;
579
+ --ty-h6-font-size: 1rem;
580
+ --ty-border-radius: 2px;
581
+ --ty-height-sm: 24px;
582
+ --ty-height-md: 32px;
583
+ --ty-height-lg: 42px;
584
+ --ty-spacer: 1rem;
547
585
  }
548
586
 
549
587
  @media (prefers-color-scheme: dark) {
@@ -819,6 +857,25 @@ html[data-tiny-theme=dark] {
819
857
  --ty-calendar-bg: #1f1f1f;
820
858
  --ty-calendar-border: #363636;
821
859
  --ty-calendar-hover: #2a2a2a;
860
+ --ty-font-family: -apple-system, blinkmacsystemfont, Segoe UI, roboto, Helvetica Neue, arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
861
+ --ty-font-family-monospace: lucida console, consolas, monaco, andale mono, ubuntu mono, monospace;
862
+ --ty-font-size-base: 1rem;
863
+ --ty-font-size-sm: 0.875rem;
864
+ --ty-font-size-lg: 1.25rem;
865
+ --ty-font-weight: 400;
866
+ --ty-line-height-base: 1.5;
867
+ --ty-headings-font-weight: 500;
868
+ --ty-h1-font-size: 2.5rem;
869
+ --ty-h2-font-size: 2rem;
870
+ --ty-h3-font-size: 1.75rem;
871
+ --ty-h4-font-size: 1.5rem;
872
+ --ty-h5-font-size: 1.25rem;
873
+ --ty-h6-font-size: 1rem;
874
+ --ty-border-radius: 2px;
875
+ --ty-height-sm: 24px;
876
+ --ty-height-md: 32px;
877
+ --ty-height-lg: 42px;
878
+ --ty-spacer: 1rem;
822
879
  }
823
880
  }
824
881
  /* stylelint-disable scss/comment-no-empty */
@@ -2,7 +2,7 @@
2
2
 
3
3
  .#{$prefix}-table {
4
4
  color: var(--ty-color-text, #{$gray-800});
5
- font-size: $font-size-base;
5
+ font-size: var(--ty-font-size-base);
6
6
 
7
7
  &__wrapper {
8
8
  overflow-x: auto;
@@ -24,8 +24,8 @@
24
24
 
25
25
  // Sizes
26
26
  &_sm &__cell {
27
- padding: 8px 8px;
28
- font-size: $font-size-sm;
27
+ padding: 8px;
28
+ font-size: var(--ty-font-size-sm);
29
29
  }
30
30
 
31
31
  &_md &__cell {
@@ -33,8 +33,8 @@
33
33
  }
34
34
 
35
35
  &_lg &__cell {
36
- padding: 16px 16px;
37
- font-size: $font-size-lg;
36
+ padding: 16px;
37
+ font-size: var(--ty-font-size-lg);
38
38
  }
39
39
 
40
40
  // Sticky header for virtual scroll
@@ -99,7 +99,7 @@
99
99
  }
100
100
 
101
101
  &_selected {
102
- background: var(--ty-table-selected-bg, rgba(110, 65, 191, 0.06));
102
+ background: var(--ty-table-selected-bg, rgb(110 65 191 / 6%));
103
103
  }
104
104
  }
105
105
 
@@ -1,6 +1,6 @@
1
1
  .ty-table {
2
2
  color: var(--ty-color-text, #32325d);
3
- font-size: 1rem;
3
+ font-size: var(--ty-font-size-base);
4
4
  }
5
5
  .ty-table__wrapper {
6
6
  overflow-x: auto;
@@ -17,15 +17,15 @@
17
17
  border: 1px solid var(--ty-table-border, #dee2e6);
18
18
  }
19
19
  .ty-table_sm .ty-table__cell {
20
- padding: 8px 8px;
21
- font-size: 0.875rem;
20
+ padding: 8px;
21
+ font-size: var(--ty-font-size-sm);
22
22
  }
23
23
  .ty-table_md .ty-table__cell {
24
24
  padding: 12px 16px;
25
25
  }
26
26
  .ty-table_lg .ty-table__cell {
27
- padding: 16px 16px;
28
- font-size: 1.25rem;
27
+ padding: 16px;
28
+ font-size: var(--ty-font-size-lg);
29
29
  }
30
30
  .ty-table__thead_sticky {
31
31
  position: sticky;
@@ -7,7 +7,7 @@
7
7
  padding: 3px 7px;
8
8
  font-size: 12px;
9
9
  border: 1px solid var(--ty-tag-border);
10
- border-radius: 2px;
10
+ border-radius: var(--ty-border-radius);
11
11
  color: var(--ty-color-text);
12
12
  background: var(--ty-tag-bg);
13
13
  }
@@ -6,8 +6,8 @@
6
6
  border: 1px solid var(--ty-input-border);
7
7
  transition: all 0.3s;
8
8
  outline: 0;
9
- border-radius: 2px;
10
- font-size: 1rem;
9
+ border-radius: var(--ty-border-radius);
10
+ font-size: var(--ty-font-size-base);
11
11
  background-color: var(--ty-input-bg);
12
12
  }
13
13
  .ty-textarea:hover {
@@ -5,7 +5,7 @@ $tp: #{$prefix}-time-picker;
5
5
  .#{$tp} {
6
6
  display: inline-flex;
7
7
  position: relative;
8
- font-size: $font-size-base;
8
+ font-size: var(--ty-font-size-base);
9
9
 
10
10
  // ---- Input ----
11
11
  &__input {
@@ -1,7 +1,7 @@
1
1
  .ty-time-picker {
2
2
  display: inline-flex;
3
3
  position: relative;
4
- font-size: 1rem;
4
+ font-size: var(--ty-font-size-base);
5
5
  }
6
6
  .ty-time-picker__input {
7
7
  display: inline-flex;
@@ -3,7 +3,7 @@
3
3
  .#{$prefix}-timeline {
4
4
  box-sizing: border-box;
5
5
  color: var(--ty-color-text-secondary);
6
- font-size: $font-size-base;
6
+ font-size: var(--ty-font-size-base);
7
7
  line-height: 1.5;
8
8
  margin: 0;
9
9
  padding: 0;
@@ -20,7 +20,7 @@
20
20
 
21
21
  &:last-child {
22
22
  .#{$prefix}-timeline-item__head {
23
- &:before {
23
+ &::before {
24
24
  display: none;
25
25
  }
26
26
  }
@@ -33,7 +33,7 @@
33
33
  color: var(--ty-color-primary);
34
34
  height: 100%;
35
35
 
36
- &:before {
36
+ &::before {
37
37
  content: '';
38
38
  position: absolute;
39
39
  top: 0;
@@ -1,7 +1,7 @@
1
1
  .ty-timeline {
2
2
  box-sizing: border-box;
3
3
  color: var(--ty-color-text-secondary);
4
- font-size: 1rem;
4
+ font-size: var(--ty-font-size-base);
5
5
  line-height: 1.5;
6
6
  margin: 0;
7
7
  padding: 0;
@@ -16,7 +16,7 @@
16
16
  font-size: 14px;
17
17
  list-style: none;
18
18
  }
19
- .ty-timeline-item:last-child .ty-timeline-item__head:before {
19
+ .ty-timeline-item:last-child .ty-timeline-item__head::before {
20
20
  display: none;
21
21
  }
22
22
  .ty-timeline-item__head {
@@ -26,7 +26,7 @@
26
26
  color: var(--ty-color-primary);
27
27
  height: 100%;
28
28
  }
29
- .ty-timeline-item__head:before {
29
+ .ty-timeline-item__head::before {
30
30
  content: "";
31
31
  position: absolute;
32
32
  top: 0;
@@ -1,5 +1,5 @@
1
1
  .ty-tooltip {
2
- font-size: 0.875rem;
2
+ font-size: var(--ty-font-size-sm);
3
3
  }
4
4
  .ty-tooltip__inner {
5
5
  padding: 5px 8px;
@@ -2,7 +2,7 @@
2
2
 
3
3
  .#{$prefix}-transfer {
4
4
  box-sizing: border-box;
5
- font-size: $font-size-base;
5
+ font-size: var(--ty-font-size-base);
6
6
  color: var(--ty-color-text);
7
7
 
8
8
  &__left-arrow {
@@ -34,14 +34,14 @@
34
34
  vertical-align: middle;
35
35
  width: 180px;
36
36
  border: 1px solid var(--ty-transfer-border);
37
- border-radius: $border-radius;
37
+ border-radius: var(--ty-border-radius);
38
38
 
39
39
  &__header {
40
40
  padding: 8px 12px 9px;
41
41
  color: var(--ty-color-text);
42
42
  background: var(--ty-transfer-header-bg);
43
43
  border-bottom: 1px solid var(--ty-transfer-footer-border);
44
- border-radius: $border-radius $border-radius 0 0;
44
+ border-radius: var(--ty-border-radius) var(--ty-border-radius) 0 0;
45
45
  }
46
46
 
47
47
  &__body {
@@ -93,6 +93,6 @@
93
93
  padding: 8px 12px 9px;
94
94
  border-top: 1px solid var(--ty-transfer-footer-border);
95
95
  background-color: var(--ty-transfer-footer-bg);
96
- border-radius: 0 0 $border-radius $border-radius;
96
+ border-radius: 0 0 var(--ty-border-radius) var(--ty-border-radius);
97
97
  }
98
98
  }
@@ -1,6 +1,6 @@
1
1
  .ty-transfer {
2
2
  box-sizing: border-box;
3
- font-size: 1rem;
3
+ font-size: var(--ty-font-size-base);
4
4
  color: var(--ty-color-text);
5
5
  }
6
6
  .ty-transfer__left-arrow {
@@ -28,14 +28,14 @@
28
28
  vertical-align: middle;
29
29
  width: 180px;
30
30
  border: 1px solid var(--ty-transfer-border);
31
- border-radius: 2px;
31
+ border-radius: var(--ty-border-radius);
32
32
  }
33
33
  .ty-transfer-panel__header {
34
34
  padding: 8px 12px 9px;
35
35
  color: var(--ty-color-text);
36
36
  background: var(--ty-transfer-header-bg);
37
37
  border-bottom: 1px solid var(--ty-transfer-footer-border);
38
- border-radius: 2px 2px 0 0;
38
+ border-radius: var(--ty-border-radius) var(--ty-border-radius) 0 0;
39
39
  }
40
40
  .ty-transfer-panel__body {
41
41
  position: relative;
@@ -79,5 +79,5 @@
79
79
  padding: 8px 12px 9px;
80
80
  border-top: 1px solid var(--ty-transfer-footer-border);
81
81
  background-color: var(--ty-transfer-footer-bg);
82
- border-radius: 0 0 2px 2px;
82
+ border-radius: 0 0 var(--ty-border-radius) var(--ty-border-radius);
83
83
  }
@@ -2,7 +2,7 @@
2
2
  margin: 0;
3
3
  padding: 0;
4
4
  list-style: none;
5
- font-size: 1rem;
5
+ font-size: var(--ty-font-size-base);
6
6
  }
7
7
 
8
8
  .ty-tree-node {
@@ -36,7 +36,7 @@ $tp-prefix: #{$prefix}-typography;
36
36
  font-size: 85%;
37
37
  background: var(--ty-typography-code-bg);
38
38
  border: 1px solid var(--ty-typography-code-border);
39
- border-radius: $border-radius;
39
+ border-radius: var(--ty-border-radius);
40
40
  }
41
41
 
42
42
  mark {
@@ -99,7 +99,7 @@ p.#{$tp-prefix}, div.#{$tp-prefix} {
99
99
  margin-top: 0;
100
100
  margin-bottom: 1em;
101
101
  color: var(--ty-typography-body-color);
102
- font-size: $font-size-base;
102
+ font-size: var(--ty-font-size-base);
103
103
  line-height: 1.5;
104
104
  }
105
105
 
@@ -24,7 +24,7 @@
24
24
  font-size: 85%;
25
25
  background: var(--ty-typography-code-bg);
26
26
  border: 1px solid var(--ty-typography-code-border);
27
- border-radius: 2px;
27
+ border-radius: var(--ty-border-radius);
28
28
  }
29
29
  .ty-typography mark {
30
30
  padding: 0;
@@ -83,7 +83,7 @@ p.ty-typography, div.ty-typography {
83
83
  margin-top: 0;
84
84
  margin-bottom: 1em;
85
85
  color: var(--ty-typography-body-color);
86
- font-size: 1rem;
86
+ font-size: var(--ty-font-size-base);
87
87
  line-height: 1.5;
88
88
  }
89
89