@finhay-pro/leaf-design-system 0.1.2 → 0.1.4

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 (103) hide show
  1. package/README.md +189 -54
  2. package/dist/border.css +44 -0
  3. package/dist/button.css +55 -25
  4. package/dist/cdn/leaf-0.1.4.min.css +2 -0
  5. package/dist/cdn/leaf-0.1.4.min.js +2 -0
  6. package/dist/classes.css +1314 -175
  7. package/dist/color.css +74 -1
  8. package/dist/components/Button/Button.d.ts +20 -3
  9. package/dist/components/Button/Button.d.ts.map +1 -1
  10. package/dist/components/Button/Button.js +65 -2
  11. package/dist/components/Button/Button.js.map +1 -1
  12. package/dist/components/Dialog/Dialog.d.ts +36 -9
  13. package/dist/components/Dialog/Dialog.d.ts.map +1 -1
  14. package/dist/components/Dialog/Dialog.js +38 -16
  15. package/dist/components/Dialog/Dialog.js.map +1 -1
  16. package/dist/components/Dialog/index.d.ts +1 -1
  17. package/dist/components/Dialog/index.d.ts.map +1 -1
  18. package/dist/components/Dialog/index.js.map +1 -1
  19. package/dist/components/Logo/Logo.d.ts +2 -2
  20. package/dist/components/Logo/Logo.d.ts.map +1 -1
  21. package/dist/components/Logo/assets.d.ts.map +1 -1
  22. package/dist/components/Logo/assets.js +26 -26
  23. package/dist/components/Logo/assets.js.map +1 -1
  24. package/dist/components/Skeleton/Skeleton.d.ts +2 -2
  25. package/dist/components/Skeleton/Skeleton.d.ts.map +1 -1
  26. package/dist/components/Slider/Slider.d.ts +9 -5
  27. package/dist/components/Slider/Slider.d.ts.map +1 -1
  28. package/dist/components/Slider/Slider.js +21 -10
  29. package/dist/components/Slider/Slider.js.map +1 -1
  30. package/dist/components/Spinner/Spinner.d.ts +34 -0
  31. package/dist/components/Spinner/Spinner.d.ts.map +1 -0
  32. package/dist/components/Spinner/Spinner.js +37 -0
  33. package/dist/components/Spinner/Spinner.js.map +1 -0
  34. package/dist/components/Spinner/index.d.ts +2 -0
  35. package/dist/components/{Loading → Spinner}/index.d.ts.map +1 -1
  36. package/dist/components/Spinner/index.js +2 -0
  37. package/dist/components/Spinner/index.js.map +1 -0
  38. package/dist/components/Tabs/Tabs.d.ts +30 -24
  39. package/dist/components/Tabs/Tabs.d.ts.map +1 -1
  40. package/dist/components/Tabs/Tabs.js +22 -39
  41. package/dist/components/Tabs/Tabs.js.map +1 -1
  42. package/dist/components/Tabs/index.d.ts +1 -1
  43. package/dist/components/Tabs/index.d.ts.map +1 -1
  44. package/dist/components/Tabs/index.js +1 -1
  45. package/dist/components/Tabs/index.js.map +1 -1
  46. package/dist/components/Toggle/Toggle.d.ts +10 -3
  47. package/dist/components/Toggle/Toggle.d.ts.map +1 -1
  48. package/dist/components/Toggle/Toggle.js +3 -3
  49. package/dist/components/Toggle/Toggle.js.map +1 -1
  50. package/dist/components/Tooltip/Tooltip.d.ts +28 -12
  51. package/dist/components/Tooltip/Tooltip.d.ts.map +1 -1
  52. package/dist/components/Tooltip/Tooltip.js +83 -16
  53. package/dist/components/Tooltip/Tooltip.js.map +1 -1
  54. package/dist/components/Tooltip/index.d.ts +1 -1
  55. package/dist/components/Tooltip/index.d.ts.map +1 -1
  56. package/dist/components/Tooltip/index.js.map +1 -1
  57. package/dist/core/dialog.d.ts +7 -2
  58. package/dist/core/dialog.d.ts.map +1 -1
  59. package/dist/core/dialog.js +37 -2
  60. package/dist/core/dialog.js.map +1 -1
  61. package/dist/core/spinner.d.ts +10 -0
  62. package/dist/core/spinner.d.ts.map +1 -0
  63. package/dist/core/spinner.js +13 -0
  64. package/dist/core/spinner.js.map +1 -0
  65. package/dist/core/tooltip.d.ts +13 -1
  66. package/dist/core/tooltip.d.ts.map +1 -1
  67. package/dist/core/tooltip.js +75 -3
  68. package/dist/core/tooltip.js.map +1 -1
  69. package/dist/dialog.css +12 -8
  70. package/dist/index.d.ts +4 -4
  71. package/dist/index.d.ts.map +1 -1
  72. package/dist/index.js +2 -2
  73. package/dist/index.js.map +1 -1
  74. package/dist/slider.css +45 -8
  75. package/dist/spacing.css +838 -0
  76. package/dist/{loading.css → spinner.css} +31 -30
  77. package/dist/styles.css +1390 -195
  78. package/dist/tabs.css +69 -15
  79. package/dist/toggle.css +1 -1
  80. package/dist/tokens.css +65 -9
  81. package/dist/tooltip.css +64 -4
  82. package/dist/utils/mergeRefs.d.ts +4 -0
  83. package/dist/utils/mergeRefs.d.ts.map +1 -0
  84. package/dist/utils/mergeRefs.js +14 -0
  85. package/dist/utils/mergeRefs.js.map +1 -0
  86. package/dist/utils/useControllableState.d.ts +3 -0
  87. package/dist/utils/useControllableState.d.ts.map +1 -1
  88. package/dist/utils/useControllableState.js +16 -4
  89. package/dist/utils/useControllableState.js.map +1 -1
  90. package/dist/utils/useInheritedTheme.d.ts +10 -0
  91. package/dist/utils/useInheritedTheme.d.ts.map +1 -0
  92. package/dist/utils/useInheritedTheme.js +22 -0
  93. package/dist/utils/useInheritedTheme.js.map +1 -0
  94. package/package.json +13 -4
  95. package/dist/cdn/leaf-0.1.2.min.css +0 -2
  96. package/dist/cdn/leaf-0.1.2.min.js +0 -2
  97. package/dist/components/Loading/Loading.d.ts +0 -24
  98. package/dist/components/Loading/Loading.d.ts.map +0 -1
  99. package/dist/components/Loading/Loading.js +0 -28
  100. package/dist/components/Loading/Loading.js.map +0 -1
  101. package/dist/components/Loading/index.d.ts +0 -2
  102. package/dist/components/Loading/index.js +0 -2
  103. package/dist/components/Loading/index.js.map +0 -1
package/dist/styles.css CHANGED
@@ -109,29 +109,42 @@
109
109
  /* Content / Text */
110
110
  --text-highlight: var(--brand-500);
111
111
  --text-primary: var(--neutral-100);
112
- --text-secondary: var(--neutral-300);
112
+ --text-secondary: var(--neutral-400);
113
113
  --text-tertiary: var(--neutral-500);
114
114
  --text-quaternary: var(--neutral-900);
115
115
 
116
- /* System */
116
+ /* Icon — Figma Icon/icon-on-color (Toggle thumb On…). */
117
+ --icon-on-color: var(--neutral-white);
118
+
119
+ /* System — Figma 22:1166. Primary = */500, secondary = */800. */
117
120
  --system-blue: var(--blue-500);
118
121
  --system-green: var(--green-500);
119
122
  --system-yellow: var(--yellow-500);
120
123
  --system-orange: var(--orange-500);
121
124
  --system-red: var(--red-500);
122
125
  --system-purple: var(--purple-500);
126
+ --system-blue-secondary: var(--blue-800);
127
+ --system-green-secondary: var(--green-800);
128
+ --system-yellow-secondary: var(--yellow-800);
129
+ --system-orange-secondary: var(--orange-800);
130
+ --system-red-secondary: var(--red-800);
131
+ --system-purple-secondary: var(--purple-800);
123
132
 
124
133
  /* Button — Figma 246:1135. Brand/red giữ nguyên qua theme. */
125
134
  --button-base-primary: var(--brand-500);
126
135
  --button-base-destruction: var(--red-500);
127
- --button-base-disable: var(--neutral-600);
128
136
  --button-base-secondary: var(--brand-800);
129
137
  --button-base-secondary-destruction: var(--red-800);
130
138
  --button-base-tertiary: var(--neutral-600);
131
139
  --button-content-primary: var(--neutral-900);
132
140
  --button-content-secondary: var(--brand-500);
133
141
  --button-content-destruction: var(--red-500);
134
- --button-content-disable: var(--neutral-500);
142
+ /* Disabled — Figma Button/Base|Content/Disable */
143
+ --button-disabled-base: var(--neutral-600);
144
+ --button-disabled-content: var(--neutral-500);
145
+ /* Alias cũ (Disable) — giữ để không gãy consumer */
146
+ --button-base-disable: var(--button-disabled-base);
147
+ --button-content-disable: var(--button-disabled-content);
135
148
 
136
149
  /* Overlay — Figma 995:6039 (Overlay/Overlay). */
137
150
  --overlay: #171719cc;
@@ -148,30 +161,40 @@
148
161
  --text-primary: var(--neutral-900);
149
162
  --text-secondary: var(--neutral-500);
150
163
  /*
151
- * Không map gương theo dark (neutral-300): trên nền sáng thì neutral-300
152
- * chỉ còn 1.41:1, gần như vô hình. neutral-400 cho 2.85:1 — ngang với
153
- * tertiary ở dark (3.36:1) — mà vẫn tách bậc khỏi secondary (neutral-500).
164
+ * Không map gương theo dark (neutral-500): trên nền sáng thì neutral-500
165
+ * trùng với secondary. neutral-400 cho 2.85:1 — ngang với tertiary ở dark
166
+ * (3.36:1) — mà vẫn tách bậc khỏi secondary (neutral-500).
154
167
  */
155
168
  --text-tertiary: var(--neutral-400);
156
169
  --text-quaternary: var(--neutral-white);
157
170
 
171
+ --icon-on-color: var(--neutral-white);
172
+
158
173
  --system-blue: var(--blue-500);
159
174
  --system-green: var(--green-500);
160
175
  --system-yellow: var(--yellow-500);
161
176
  --system-orange: var(--orange-500);
162
177
  --system-red: var(--red-500);
163
178
  --system-purple: var(--purple-500);
179
+ --system-blue-secondary: var(--blue-800);
180
+ --system-green-secondary: var(--green-800);
181
+ --system-yellow-secondary: var(--yellow-800);
182
+ --system-orange-secondary: var(--orange-800);
183
+ --system-red-secondary: var(--red-800);
184
+ --system-purple-secondary: var(--purple-800);
164
185
 
165
186
  --button-base-primary: var(--brand-500);
166
187
  --button-base-destruction: var(--red-500);
167
- --button-base-disable: var(--neutral-300);
168
188
  --button-base-secondary: var(--brand-100);
169
189
  --button-base-secondary-destruction: var(--red-100);
170
190
  --button-base-tertiary: var(--neutral-200);
171
191
  --button-content-primary: var(--neutral-900);
172
192
  --button-content-secondary: var(--brand-700);
173
193
  --button-content-destruction: var(--red-600);
174
- --button-content-disable: var(--neutral-400);
194
+ --button-disabled-base: var(--neutral-300);
195
+ --button-disabled-content: var(--neutral-400);
196
+ --button-base-disable: var(--button-disabled-base);
197
+ --button-content-disable: var(--button-disabled-content);
175
198
 
176
199
  /* Overlay — cùng token Figma; phủ tối trên nền sáng. */
177
200
  --overlay: #171719cc;
@@ -239,6 +262,39 @@
239
262
  --body-5-highlight-weight: 600;
240
263
  }
241
264
 
265
+ /* --- ../tokens/src/spacing.css --- */
266
+
267
+ /* Spacing tokens — Figma 34:1034. Dùng cho margin, padding, gap. */
268
+
269
+ :root {
270
+ --spacing-0: 0px;
271
+ --spacing-xs: 4px;
272
+ --spacing-s: 8px;
273
+ --spacing-m: 12px;
274
+ --spacing-l: 16px;
275
+ --spacing-xl: 24px;
276
+ --spacing-2xl: 36px;
277
+ --spacing-3xl: 48px;
278
+ --spacing-4xl: 60px;
279
+ --spacing-5xl: 84px;
280
+ --spacing-6xl: 120px;
281
+ --spacing-7xl: 240px;
282
+ }
283
+
284
+ /* --- ../tokens/src/border.css --- */
285
+
286
+ /* Border radius tokens — Figma 700:4390. Map sang spacing cùng bậc. */
287
+
288
+ :root {
289
+ --radius-0: var(--spacing-0);
290
+ --radius-xs: var(--spacing-xs);
291
+ --radius-s: var(--spacing-s);
292
+ --radius-m: var(--spacing-m);
293
+ --radius-l: var(--spacing-l);
294
+ --radius-xl: var(--spacing-xl);
295
+ --radius-2xl: var(--spacing-2xl);
296
+ }
297
+
242
298
  /* --- src/components/Button/button.css --- */
243
299
 
244
300
  /*
@@ -248,25 +304,27 @@
248
304
  * qua data-icon-only. Disabled dùng attribute native `:disabled` (và
249
305
  * `aria-disabled`) nên không cần class riêng.
250
306
  *
307
+ * Width / height override qua --leaf-button-width / --leaf-button-height
308
+ * (React gắn bằng prop; HTML tĩnh set style hoặc để mặc định theo size).
309
+ *
251
310
  * Toàn bộ hình thức (kể cả typography của label) nằm ở đây — React chỉ gắn
252
311
  * attribute, nên HTML tĩnh viết cùng markup là ra cùng kết quả. Thiếu attribute
253
312
  * nào thì lấy mặc định giống prop của React: lg · primary · normal.
254
- *
255
- * Variant chỉ đổi custom property `--leaf-button-*`; thuộc tính thật chỉ khai
256
- * báo một lần ở `.leaf-button`.
257
313
  */
258
314
 
259
315
  @layer components {
260
316
  .leaf-button {
261
- /* Mặc định: size lg */
317
+ /* Mặc định: size lg — Figma Large: h 56 · px XL · py S · gap L · icon 30 */
318
+ /* --leaf-button-width chỉ set khi prop width; không set → auto / icon-only = height */
262
319
  --leaf-button-height: 56px;
263
- --leaf-button-padding: 8px 24px;
264
- --leaf-button-icon-only-padding: 8px;
265
- --leaf-button-gap: 16px;
320
+ --leaf-button-padding: var(--spacing-s) var(--spacing-xl);
321
+ --leaf-button-icon-only-padding: var(--spacing-s);
322
+ --leaf-button-gap: var(--spacing-l);
266
323
  --leaf-button-icon-size: 30px;
267
324
  --leaf-button-font-size: var(--body-1-size);
268
325
  --leaf-button-line-height: var(--body-1-line-height);
269
326
  --leaf-button-font-weight: var(--body-1-highlight-weight);
327
+ --leaf-button-letter-spacing: 0.5px;
270
328
 
271
329
  /* Mặc định: priority primary, status normal */
272
330
  --leaf-button-bg: var(--button-base-primary);
@@ -275,6 +333,8 @@
275
333
  display: inline-flex;
276
334
  align-items: center;
277
335
  justify-content: center;
336
+ box-sizing: border-box;
337
+ width: var(--leaf-button-width, auto);
278
338
  height: var(--leaf-button-height);
279
339
  gap: var(--leaf-button-gap);
280
340
  border: none;
@@ -291,8 +351,8 @@
291
351
  font-size: var(--leaf-button-font-size);
292
352
  line-height: var(--leaf-button-line-height);
293
353
  font-weight: var(--leaf-button-font-weight);
354
+ letter-spacing: var(--leaf-button-letter-spacing);
294
355
  text-decoration: none;
295
- box-sizing: border-box;
296
356
  vertical-align: middle;
297
357
  }
298
358
 
@@ -313,49 +373,55 @@
313
373
  height: 1em;
314
374
  }
315
375
 
316
- /* ── Size ────────────────────────────────────────────────────────────── */
376
+ /* ── Size — Figma Medium/Small dùng padding (không ép height trong auto-layout);
377
+ * vẫn set height mặc định khớp frame để icon-only / căn hàng ổn định.
378
+ * Truyền height="auto" (prop) → chiều cao theo padding + nội dung. */
317
379
 
318
380
  .leaf-button[data-size="md"] {
381
+ /* Medium: px L · py S · gap M · icon 24 · frame 40 */
319
382
  --leaf-button-height: 40px;
320
- --leaf-button-padding: 8px 16px;
321
- --leaf-button-gap: 8px;
383
+ --leaf-button-padding: var(--spacing-s) var(--spacing-l);
384
+ --leaf-button-gap: var(--spacing-m);
322
385
  --leaf-button-icon-size: 24px;
323
386
  --leaf-button-font-size: var(--body-3-size);
324
387
  --leaf-button-line-height: var(--body-3-line-height);
325
388
  --leaf-button-font-weight: var(--body-3-highlight-weight);
389
+ --leaf-button-letter-spacing: 0;
326
390
  }
327
391
 
328
392
  .leaf-button[data-size="sm"] {
393
+ /* Small: px M · py XS · gap S · icon 20 · frame 28 */
329
394
  --leaf-button-height: 28px;
330
- --leaf-button-padding: 4px 8px;
331
- --leaf-button-icon-only-padding: 4px;
332
- --leaf-button-gap: 4px;
395
+ --leaf-button-padding: var(--spacing-xs) var(--spacing-m);
396
+ --leaf-button-icon-only-padding: var(--spacing-xs);
397
+ --leaf-button-gap: var(--spacing-s);
333
398
  --leaf-button-icon-size: 20px;
334
399
  --leaf-button-font-size: var(--body-4-size);
335
400
  --leaf-button-line-height: var(--body-4-line-height);
336
401
  --leaf-button-font-weight: var(--body-4-highlight-weight);
402
+ --leaf-button-letter-spacing: 0;
337
403
  }
338
404
 
339
- /* Icon-only: khung vuông (tròn nhờ border-radius) cạnh = height. */
405
+ /* Icon-only: khung vuông (tròn nhờ border-radius). Width custom vẫn được tôn trọng. */
340
406
  .leaf-button[data-icon-only="true"] {
341
- width: var(--leaf-button-height);
407
+ width: var(--leaf-button-width, var(--leaf-button-height));
342
408
  padding: var(--leaf-button-icon-only-padding);
343
409
  }
344
410
 
345
- /* Ghost không có khung — bỏ height/padding cố định. Đứng sau size để thắng. */
346
- .leaf-button[data-priority="ghost"] {
411
+ /* Ghost text — không khung; icon-only ghost vẫn giữ hit-area theo size. */
412
+ .leaf-button[data-priority="ghost"]:not([data-icon-only="true"]) {
347
413
  --leaf-button-height: auto;
348
414
  --leaf-button-padding: 0;
349
- --leaf-button-icon-only-padding: 0;
350
415
  }
351
416
 
352
417
  .leaf-button[data-priority="ghost"][data-icon-only="true"] {
353
- border-radius: 0;
418
+ --leaf-button-bg: transparent;
419
+ --leaf-button-padding: 0;
420
+ --leaf-button-icon-only-padding: 0;
354
421
  }
355
422
 
356
423
  /* ── Priority × status ───────────────────────────────────────────────── */
357
424
 
358
- /* Không có data-priority = primary. */
359
425
  .leaf-button[data-status="destruction"] {
360
426
  --leaf-button-bg: var(--button-base-destruction);
361
427
  --leaf-button-fg: var(--button-content-primary);
@@ -392,25 +458,45 @@
392
458
  }
393
459
 
394
460
  /*
395
- * Disabled — Primary / Ghost có trong Figma; Secondary/Tertiary dùng cùng token.
461
+ * Disabled — token --button-disabled-* (alias của --button-*-disable).
396
462
  * Specificity (0,3,0) và đứng cuối để thắng mọi tổ hợp priority × status.
397
463
  */
398
464
  .leaf-button:disabled:not([data-priority="ghost"]),
399
465
  .leaf-button[aria-disabled="true"]:not([data-priority="ghost"]) {
400
- --leaf-button-bg: var(--button-base-disable);
401
- --leaf-button-fg: var(--button-content-disable);
466
+ --leaf-button-bg: var(--button-disabled-base);
467
+ --leaf-button-fg: var(--button-disabled-content);
402
468
  }
403
469
 
404
470
  .leaf-button[data-priority="ghost"]:disabled,
405
471
  .leaf-button[data-priority="ghost"][aria-disabled="true"] {
406
472
  --leaf-button-bg: transparent;
407
- --leaf-button-fg: var(--button-content-disable);
473
+ --leaf-button-fg: var(--button-disabled-content);
408
474
  }
409
475
 
410
476
  .leaf-button:disabled,
411
477
  .leaf-button[aria-disabled="true"] {
412
478
  cursor: not-allowed;
413
479
  }
480
+
481
+ /*
482
+ * Loading — `data-loading="true"` (React: `loading` / onClick trả Promise; HTML tĩnh:
483
+ * `Leaf.button.setLoading`). Spinner thay leading icon, ăn --leaf-button-icon-size và
484
+ * màu chữ; màu nút giữ nguyên priority — không dùng `:disabled`.
485
+ */
486
+ .leaf-button[data-loading="true"] {
487
+ cursor: progress;
488
+ }
489
+
490
+ .leaf-button__spinner > svg {
491
+ animation: leaf-spinner-spin var(--leaf-spinner-duration, 1.2s) linear infinite;
492
+ }
493
+ }
494
+
495
+ /* Trùng tên với spinner.css để button.css tự đủ khi import riêng. */
496
+ @keyframes leaf-spinner-spin {
497
+ to {
498
+ transform: rotate(360deg);
499
+ }
414
500
  }
415
501
 
416
502
  /* --- src/components/Dialog/dialog.css --- */
@@ -427,16 +513,19 @@
427
513
  .leaf-dialog-backdrop {
428
514
  position: fixed;
429
515
  inset: 0;
430
- z-index: 50;
516
+ z-index: var(--leaf-z-dialog, 50);
431
517
  display: flex;
432
518
  align-items: center;
433
519
  justify-content: center;
434
520
  padding: 16px;
435
521
  box-sizing: border-box;
436
- /* Overlay — Figma 995:6039: Overlay/Overlay + BACKGROUND_BLUR radius 20. */
522
+ /*
523
+ * Overlay — Figma 995:6039: Overlay/Overlay + blur nhẹ. Chỉ khai báo bản
524
+ * chuẩn: Safari 18+ hỗ trợ `backdrop-filter` không prefix, còn dòng
525
+ * `-webkit-` đặt sau từng ghi đè và làm blur không chạy.
526
+ */
437
527
  background-color: var(--overlay);
438
- backdrop-filter: blur(20px);
439
- -webkit-backdrop-filter: blur(20px);
528
+ backdrop-filter: blur(5px);
440
529
  }
441
530
 
442
531
  /* `display` ở trên thắng `[hidden]` của trình duyệt — khai báo lại để HTML tĩnh ẩn được. */
@@ -455,10 +544,11 @@
455
544
  display: flex;
456
545
  flex-direction: column;
457
546
  gap: var(--leaf-dialog-gap);
458
- width: var(--leaf-dialog-width, 100%);
459
- height: var(--leaf-dialog-height, auto);
460
- max-width: 100%;
461
- max-height: 100%;
547
+ /* Luôn co theo viewport; maxWidth/maxHeight chỉ là trần — mobile không bị tràn. */
548
+ width: 100%;
549
+ height: auto;
550
+ max-width: var(--leaf-dialog-max-width, 100%);
551
+ max-height: var(--leaf-dialog-max-height, 100%);
462
552
  margin: 0;
463
553
  padding: var(--leaf-dialog-padding);
464
554
  overflow: hidden;
@@ -565,119 +655,6 @@
565
655
  }
566
656
  }
567
657
 
568
- /* --- src/components/Loading/loading.css --- */
569
-
570
- /*
571
- * Loading — SVG loader-line (Figma Button), viewBox 0 0 21 21.
572
- *
573
- * Variant animation qua data-animation; size qua data-size; overlay fullscreen
574
- * qua .leaf-loading-overlay. Màu = currentColor. Thiếu attribute → md · spin.
575
- */
576
-
577
- @layer components {
578
- .leaf-loading {
579
- --leaf-loading-size: 24px;
580
- --leaf-loading-duration: 1.2s;
581
-
582
- display: inline-flex;
583
- flex-shrink: 0;
584
- align-items: center;
585
- justify-content: center;
586
- width: var(--leaf-loading-size);
587
- height: var(--leaf-loading-size);
588
- color: inherit;
589
- vertical-align: middle;
590
- line-height: 0;
591
- }
592
-
593
- .leaf-loading__icon {
594
- display: block;
595
- width: 100%;
596
- height: 100%;
597
- }
598
-
599
- /* Fullscreen overlay — pattern Spinner (portal + nền mờ). */
600
- .leaf-loading-overlay {
601
- position: fixed;
602
- inset: 0;
603
- z-index: 100;
604
- display: flex;
605
- align-items: center;
606
- justify-content: center;
607
- box-sizing: border-box;
608
- background-color: var(--overlay);
609
- color: var(--text-highlight);
610
- }
611
-
612
- /* `display` ở trên thắng `[hidden]` của trình duyệt — khai báo lại để HTML tĩnh ẩn được. */
613
- .leaf-loading-overlay[hidden] {
614
- display: none;
615
- }
616
-
617
- /* ── Size ────────────────────────────────────────────────────────────── */
618
-
619
- .leaf-loading[data-size="lg"] {
620
- --leaf-loading-size: 30px;
621
- }
622
-
623
- .leaf-loading[data-size="sm"] {
624
- --leaf-loading-size: 20px;
625
- }
626
-
627
- /* ── Animations ──────────────────────────────────────────────────────── */
628
-
629
- /* spin — xoay cả icon (mặc định). */
630
- .leaf-loading[data-animation="spin"] .leaf-loading__icon,
631
- .leaf-loading:not([data-animation]) .leaf-loading__icon {
632
- animation: leaf-loading-spin var(--leaf-loading-duration) linear infinite;
633
- }
634
-
635
- /*
636
- * fade — xoay + mask conic để tạo hiệu ứng đuôi mờ (kiểu iOS trên 1 path).
637
- */
638
- .leaf-loading[data-animation="fade"] .leaf-loading__icon {
639
- animation: leaf-loading-spin var(--leaf-loading-duration) linear infinite;
640
- mask-image: conic-gradient(from 0deg, transparent 0%, #000 70%, #000 100%);
641
- -webkit-mask-image: conic-gradient(from 0deg, transparent 0%, #000 70%, #000 100%);
642
- }
643
-
644
- /* pulse — scale nhịp. */
645
- .leaf-loading[data-animation="pulse"] .leaf-loading__icon {
646
- animation: leaf-loading-pulse 1s ease-in-out infinite;
647
- }
648
-
649
- /* breathe — mờ/đậm cả icon. */
650
- .leaf-loading[data-animation="breathe"] .leaf-loading__icon {
651
- animation: leaf-loading-breathe 1.2s ease-in-out infinite;
652
- }
653
- }
654
-
655
- @keyframes leaf-loading-spin {
656
- to {
657
- transform: rotate(360deg);
658
- }
659
- }
660
-
661
- @keyframes leaf-loading-pulse {
662
- 0%,
663
- 100% {
664
- transform: scale(0.85);
665
- }
666
- 50% {
667
- transform: scale(1);
668
- }
669
- }
670
-
671
- @keyframes leaf-loading-breathe {
672
- 0%,
673
- 100% {
674
- opacity: 0.35;
675
- }
676
- 50% {
677
- opacity: 1;
678
- }
679
- }
680
-
681
658
  /* --- src/components/Logo/logo.css --- */
682
659
 
683
660
  /*
@@ -775,9 +752,10 @@
775
752
  /*
776
753
  * Slider — Figma 730:12646.
777
754
  *
778
- * Giá trị liên tục trên rail (kéo / click chính xác tới từng step). Mốc chia đều
779
- * đặt tuyệt đối theo `left: <%>`; thumb (điểm đang chọn) đặt ở `--leaf-slider-fill`,
780
- * màu --leaf-slider-active. Kích thước qua --leaf-slider-mark / --leaf-slider-mark-active.
755
+ * Giá trị liên tục trên rail (kéo / click chính xác tới từng step — như
756
+ * TradeQuickSlider). Mốc chia đều đặt tuyệt đối theo `left: <%>`; thumb đặt ở
757
+ * `--leaf-slider-fill`. Ở min thumb = `--text-primary`; khi > min =
758
+ * `--leaf-slider-active` (mặc định `--text-highlight`).
781
759
  *
782
760
  * Rail, mốc và thumb cùng nằm trong vùng lùi vào `--leaf-slider-inset` ở hai đầu
783
761
  * (nửa thumb) — nhờ vậy `left: X%` của cả ba khớp nhau và thumb không tràn ra ngoài.
@@ -785,7 +763,7 @@
785
763
 
786
764
  @layer components {
787
765
  .leaf-slider {
788
- --leaf-slider-active: var(--system-green);
766
+ --leaf-slider-active: var(--text-highlight);
789
767
  --leaf-slider-fill: 0%;
790
768
  --leaf-slider-mark: 6px;
791
769
  --leaf-slider-mark-active: 10px;
@@ -799,7 +777,8 @@
799
777
 
800
778
  display: flex;
801
779
  flex-direction: column;
802
- gap: 4px;
780
+ /* Figma gap S (8) giữa Title/Unit và khối track+labels. */
781
+ gap: 8px;
803
782
  width: 100%;
804
783
  box-sizing: border-box;
805
784
  font-family: var(--font-sans);
@@ -809,7 +788,14 @@
809
788
  color: var(--text-primary);
810
789
  user-select: none;
811
790
  -webkit-user-select: none;
812
- touch-action: none;
791
+ }
792
+
793
+ /* Figma gap XS (4) giữa track và Value labels. */
794
+ .leaf-slider__body {
795
+ display: flex;
796
+ flex-direction: column;
797
+ gap: 4px;
798
+ width: 100%;
813
799
  }
814
800
 
815
801
  .leaf-slider__header {
@@ -841,6 +827,8 @@
841
827
  height: var(--leaf-slider-control-height);
842
828
  outline: none;
843
829
  cursor: pointer;
830
+ /* Chỉ khoá gesture trên track — header / labels vẫn cho cuộn trang. */
831
+ touch-action: none;
844
832
  }
845
833
 
846
834
  .leaf-slider__control:focus-visible {
@@ -911,6 +899,10 @@
911
899
 
912
900
  /* Mốc trùng giá trị nằm dưới thumb — cùng màu để không lộ viền. */
913
901
  .leaf-slider__mark[data-state="active"] {
902
+ background-color: var(--text-primary);
903
+ }
904
+
905
+ .leaf-slider:not([data-at-min="true"]) .leaf-slider__mark[data-state="active"] {
914
906
  background-color: var(--leaf-slider-active);
915
907
  }
916
908
 
@@ -923,9 +915,15 @@
923
915
  width: var(--leaf-slider-mark-active);
924
916
  height: var(--leaf-slider-mark-active);
925
917
  border-radius: 50%;
926
- background-color: var(--leaf-slider-active);
918
+ /* Figma Default (min): thumb trắng; Active (> min): highlight. */
919
+ background-color: var(--text-primary);
927
920
  transform: translate(-50%, -50%);
928
921
  pointer-events: none;
922
+ transition: background-color 0.15s ease;
923
+ }
924
+
925
+ .leaf-slider:not([data-at-min="true"]) .leaf-slider__thumb {
926
+ background-color: var(--leaf-slider-active);
929
927
  }
930
928
 
931
929
  /* Label căn đúng dưới mốc: cùng vùng lùi với rail; nhãn hai đầu kéo ra sát mép. */
@@ -941,10 +939,18 @@
941
939
  position: absolute;
942
940
  top: 0;
943
941
  max-width: 40%;
942
+ margin: 0;
943
+ padding: 0;
944
+ border: none;
945
+ background: none;
946
+ font: inherit;
944
947
  color: var(--text-secondary);
945
948
  white-space: nowrap;
946
949
  transform: translateX(-50%);
947
950
  text-align: center;
951
+ cursor: pointer;
952
+ appearance: none;
953
+ -webkit-appearance: none;
948
954
  }
949
955
 
950
956
  .leaf-slider__label[data-edge="start"] {
@@ -961,18 +967,140 @@
961
967
  color: var(--text-primary);
962
968
  }
963
969
 
970
+ .leaf-slider__label:disabled {
971
+ cursor: not-allowed;
972
+ }
973
+
964
974
  .leaf-slider[data-disabled="true"] {
965
975
  opacity: 0.5;
966
976
  pointer-events: none;
977
+ }
978
+
979
+ .leaf-slider[data-disabled="true"] .leaf-slider__control {
967
980
  touch-action: auto;
968
981
  }
969
982
 
970
983
  .leaf-slider[data-disabled="true"] .leaf-slider__control,
971
- .leaf-slider[data-disabled="true"] .leaf-slider__mark {
984
+ .leaf-slider[data-disabled="true"] .leaf-slider__mark,
985
+ .leaf-slider[data-disabled="true"] .leaf-slider__label {
972
986
  cursor: not-allowed;
973
987
  }
974
988
  }
975
989
 
990
+ /* --- src/components/Spinner/spinner.css --- */
991
+
992
+ /*
993
+ * Spinner — SVG loader-line (Figma Button), viewBox 0 0 21 21.
994
+ *
995
+ * Variant animation qua data-animation; size qua data-size; overlay fullscreen
996
+ * qua .leaf-spinner-overlay. Màu mặc định trắng (dark) / đen (light) qua --base-quinary —
997
+ * không dùng highlight; override bằng class text-* khi cần. Thiếu attribute → md · spin.
998
+ */
999
+
1000
+ @layer components {
1001
+ .leaf-spinner {
1002
+ --leaf-spinner-size: 24px;
1003
+ --leaf-spinner-duration: 1.2s;
1004
+
1005
+ display: inline-flex;
1006
+ flex-shrink: 0;
1007
+ align-items: center;
1008
+ justify-content: center;
1009
+ width: var(--leaf-spinner-size);
1010
+ height: var(--leaf-spinner-size);
1011
+ color: var(--base-quinary);
1012
+ vertical-align: middle;
1013
+ line-height: 0;
1014
+ }
1015
+
1016
+ .leaf-spinner__icon {
1017
+ display: block;
1018
+ width: 100%;
1019
+ height: 100%;
1020
+ }
1021
+
1022
+ /* Fullscreen overlay — pattern Spinner (portal + nền mờ). */
1023
+ .leaf-spinner-overlay {
1024
+ position: fixed;
1025
+ inset: 0;
1026
+ z-index: var(--leaf-z-spinner-overlay, 100);
1027
+ display: flex;
1028
+ align-items: center;
1029
+ justify-content: center;
1030
+ box-sizing: border-box;
1031
+ background-color: var(--overlay);
1032
+ color: var(--base-quinary);
1033
+ }
1034
+
1035
+ /* `display` ở trên thắng `[hidden]` của trình duyệt — khai báo lại để HTML tĩnh ẩn được. */
1036
+ .leaf-spinner-overlay[hidden] {
1037
+ display: none;
1038
+ }
1039
+
1040
+ /* ── Size ────────────────────────────────────────────────────────────── */
1041
+
1042
+ .leaf-spinner[data-size="lg"] {
1043
+ --leaf-spinner-size: 30px;
1044
+ }
1045
+
1046
+ .leaf-spinner[data-size="sm"] {
1047
+ --leaf-spinner-size: 20px;
1048
+ }
1049
+
1050
+ /* ── Animations ──────────────────────────────────────────────────────── */
1051
+
1052
+ /* spin — xoay cả icon (mặc định). */
1053
+ .leaf-spinner[data-animation="spin"] .leaf-spinner__icon,
1054
+ .leaf-spinner:not([data-animation]) .leaf-spinner__icon {
1055
+ animation: leaf-spinner-spin var(--leaf-spinner-duration) linear infinite;
1056
+ }
1057
+
1058
+ /*
1059
+ * fade — xoay + mask conic để tạo hiệu ứng đuôi mờ (kiểu iOS trên 1 path).
1060
+ */
1061
+ .leaf-spinner[data-animation="fade"] .leaf-spinner__icon {
1062
+ animation: leaf-spinner-spin var(--leaf-spinner-duration) linear infinite;
1063
+ mask-image: conic-gradient(from 0deg, transparent 0%, #000 70%, #000 100%);
1064
+ -webkit-mask-image: conic-gradient(from 0deg, transparent 0%, #000 70%, #000 100%);
1065
+ }
1066
+
1067
+ /* pulse — scale nhịp. */
1068
+ .leaf-spinner[data-animation="pulse"] .leaf-spinner__icon {
1069
+ animation: leaf-spinner-pulse 1s ease-in-out infinite;
1070
+ }
1071
+
1072
+ /* breathe — mờ/đậm cả icon. */
1073
+ .leaf-spinner[data-animation="breathe"] .leaf-spinner__icon {
1074
+ animation: leaf-spinner-breathe 1.2s ease-in-out infinite;
1075
+ }
1076
+ }
1077
+
1078
+ @keyframes leaf-spinner-spin {
1079
+ to {
1080
+ transform: rotate(360deg);
1081
+ }
1082
+ }
1083
+
1084
+ @keyframes leaf-spinner-pulse {
1085
+ 0%,
1086
+ 100% {
1087
+ transform: scale(0.85);
1088
+ }
1089
+ 50% {
1090
+ transform: scale(1);
1091
+ }
1092
+ }
1093
+
1094
+ @keyframes leaf-spinner-breathe {
1095
+ 0%,
1096
+ 100% {
1097
+ opacity: 0.35;
1098
+ }
1099
+ 50% {
1100
+ opacity: 1;
1101
+ }
1102
+ }
1103
+
976
1104
  /* --- src/components/Tabs/tabs.css --- */
977
1105
 
978
1106
  /*
@@ -980,6 +1108,7 @@
980
1108
  *
981
1109
  * `variant` map type trong Figma: subcontent | title | functional | buy | sell.
982
1110
  * Size: xl | lg | md | sm (tuỳ variant — Title chỉ S, Functional chỉ M, Buy/Sell chỉ L).
1111
+ * Subcontent XL/LG selected = --base-quinary; MD/SM selected = --base-tertiary.
983
1112
  *
984
1113
  * Variant / size đặt trên tablist (`.leaf-tabs[data-variant][data-size]`), từng
985
1114
  * `.leaf-tab` chỉ cần `aria-selected`. Toàn bộ hình thức (kể cả typography của
@@ -1051,7 +1180,15 @@
1051
1180
  cursor: not-allowed;
1052
1181
  }
1053
1182
 
1183
+ .leaf-tab__label {
1184
+ display: inline-flex;
1185
+ align-items: center;
1186
+ justify-content: center;
1187
+ line-height: inherit;
1188
+ }
1189
+
1054
1190
  /* ── Subcontent (pill) — cũng là mặc định khi không có data-variant ──── */
1191
+ /* XL / LG: idle tertiary · selected quinary. MD / SM: idle trong suốt · selected tertiary. */
1055
1192
 
1056
1193
  .leaf-tabs:is(:not([data-variant]), [data-variant="subcontent"]) .leaf-tab {
1057
1194
  gap: var(--leaf-tab-gap);
@@ -1070,20 +1207,58 @@
1070
1207
  color: var(--text-quaternary);
1071
1208
  }
1072
1209
 
1073
- /* ── Title (underline) ───────────────────────────────────────────────── */
1210
+ .leaf-tabs:is(:not([data-variant]), [data-variant="subcontent"]) .leaf-tab:disabled,
1211
+ .leaf-tabs:is(:not([data-variant]), [data-variant="subcontent"])
1212
+ .leaf-tab[aria-disabled="true"] {
1213
+ background-color: var(--base-tertiary);
1214
+ color: var(--text-tertiary);
1215
+ }
1074
1216
 
1075
- .leaf-tabs[data-variant="title"] .leaf-tab {
1076
- flex-direction: column;
1077
- gap: 4px;
1078
- min-width: 100px;
1079
- color: var(--text-secondary);
1080
- font-size: var(--body-4-size);
1081
- line-height: var(--body-4-line-height);
1082
- font-weight: var(--body-4-weight);
1217
+ .leaf-tabs:is(:not([data-variant]), [data-variant="subcontent"]):is(
1218
+ [data-size="md"],
1219
+ [data-size="sm"]
1220
+ )
1221
+ .leaf-tab {
1222
+ background-color: transparent;
1083
1223
  }
1084
1224
 
1085
- .leaf-tabs[data-variant="title"] .leaf-tab[aria-selected="true"] {
1086
- color: var(--text-primary);
1225
+ .leaf-tabs:is(:not([data-variant]), [data-variant="subcontent"]):is(
1226
+ [data-size="md"],
1227
+ [data-size="sm"]
1228
+ )
1229
+ .leaf-tab[aria-selected="true"] {
1230
+ background-color: var(--base-tertiary);
1231
+ color: var(--text-primary);
1232
+ }
1233
+
1234
+ .leaf-tabs:is(:not([data-variant]), [data-variant="subcontent"]):is(
1235
+ [data-size="md"],
1236
+ [data-size="sm"]
1237
+ )
1238
+ .leaf-tab:disabled,
1239
+ .leaf-tabs:is(:not([data-variant]), [data-variant="subcontent"]):is(
1240
+ [data-size="md"],
1241
+ [data-size="sm"]
1242
+ )
1243
+ .leaf-tab[aria-disabled="true"] {
1244
+ background-color: transparent;
1245
+ color: var(--text-tertiary);
1246
+ }
1247
+
1248
+ /* ── Title (underline) ───────────────────────────────────────────────── */
1249
+
1250
+ .leaf-tabs[data-variant="title"] .leaf-tab {
1251
+ flex-direction: column;
1252
+ gap: 4px;
1253
+ min-width: 100px;
1254
+ color: var(--text-secondary);
1255
+ font-size: var(--body-4-size);
1256
+ line-height: var(--body-4-line-height);
1257
+ font-weight: var(--body-4-weight);
1258
+ }
1259
+
1260
+ .leaf-tabs[data-variant="title"] .leaf-tab[aria-selected="true"] {
1261
+ color: var(--text-primary);
1087
1262
  font-weight: var(--body-4-highlight-weight);
1088
1263
  }
1089
1264
 
@@ -1100,6 +1275,16 @@
1100
1275
  opacity: 1;
1101
1276
  }
1102
1277
 
1278
+ .leaf-tabs[data-variant="title"] .leaf-tab:disabled,
1279
+ .leaf-tabs[data-variant="title"] .leaf-tab[aria-disabled="true"] {
1280
+ color: var(--text-tertiary);
1281
+ }
1282
+
1283
+ .leaf-tabs[data-variant="title"] .leaf-tab:disabled::after,
1284
+ .leaf-tabs[data-variant="title"] .leaf-tab[aria-disabled="true"]::after {
1285
+ opacity: 0;
1286
+ }
1287
+
1103
1288
  /* ── Functional ──────────────────────────────────────────────────────── */
1104
1289
 
1105
1290
  .leaf-tabs[data-variant="functional"] .leaf-tab {
@@ -1108,7 +1293,7 @@
1108
1293
  padding: 4px 24px;
1109
1294
  border-radius: 100px;
1110
1295
  background-color: var(--base-tertiary);
1111
- color: var(--button-content-disable);
1296
+ color: var(--button-disabled-content);
1112
1297
  font-size: var(--body-5-size);
1113
1298
  line-height: var(--body-5-line-height);
1114
1299
  font-weight: var(--body-5-weight);
@@ -1119,12 +1304,17 @@
1119
1304
  color: var(--button-content-primary);
1120
1305
  }
1121
1306
 
1307
+ .leaf-tabs[data-variant="functional"] .leaf-tab:disabled,
1308
+ .leaf-tabs[data-variant="functional"] .leaf-tab[aria-disabled="true"] {
1309
+ background-color: var(--base-tertiary);
1310
+ color: var(--button-disabled-content);
1311
+ }
1312
+
1122
1313
  /* ── Buy / Sell ──────────────────────────────────────────────────────── */
1123
1314
 
1124
1315
  .leaf-tabs:is([data-variant="buy"], [data-variant="sell"]) .leaf-tab {
1125
1316
  min-width: 100px;
1126
1317
  width: auto;
1127
- gap: 4px;
1128
1318
  padding: 6px 4px;
1129
1319
  border-radius: 100px;
1130
1320
  color: var(--text-primary);
@@ -1144,21 +1334,13 @@
1144
1334
 
1145
1335
  .leaf-tabs[data-variant="sell"] .leaf-tab[aria-selected="true"] {
1146
1336
  background-color: var(--button-base-secondary-destruction);
1147
- color: var(--button-content-destruction);
1148
- }
1149
-
1150
- .leaf-tab__label,
1151
- .leaf-tab__addon {
1152
- display: inline-flex;
1153
- align-items: center;
1154
- justify-content: center;
1155
- line-height: inherit;
1337
+ color: var(--button-base-destruction);
1156
1338
  }
1157
1339
 
1158
- .leaf-tab__addon > svg {
1159
- display: block;
1160
- width: 1em;
1161
- height: 1em;
1340
+ .leaf-tabs:is([data-variant="buy"], [data-variant="sell"]) .leaf-tab:disabled,
1341
+ .leaf-tabs:is([data-variant="buy"], [data-variant="sell"]) .leaf-tab[aria-disabled="true"] {
1342
+ color: var(--text-tertiary);
1343
+ background-color: transparent;
1162
1344
  }
1163
1345
  }
1164
1346
 
@@ -1230,7 +1412,7 @@
1230
1412
  }
1231
1413
 
1232
1414
  .leaf-toggle[aria-checked="true"]:not(:disabled) .leaf-toggle__thumb {
1233
- background-color: var(--neutral-white);
1415
+ background-color: var(--icon-on-color);
1234
1416
  transform: translateX(var(--leaf-toggle-travel));
1235
1417
  }
1236
1418
 
@@ -1273,7 +1455,10 @@
1273
1455
  * Tooltip — Figma 891:4983.
1274
1456
  *
1275
1457
  * Size sm/md/lg; position top/bottom/left/right; align start/center/end.
1276
- * Nền --base-quaternary; chữ --text-primary. Caret CSS clip-path cùng màu nền.
1458
+ * Nền --base-quaternary; chữ --text-primary.
1459
+ *
1460
+ * Caret Figma: khung hit-area rộng (40×4 / 44×6 / 16×4) nhưng tam giác thật
1461
+ * chỉ 8×4 (sm) hoặc 12×6 (md/lg) nằm giữa khung — không vẽ full-width.
1277
1462
  */
1278
1463
 
1279
1464
  @layer components {
@@ -1292,8 +1477,11 @@
1292
1477
  --leaf-tooltip-font-size: var(--body-4-size);
1293
1478
  --leaf-tooltip-line-height: var(--body-4-line-height);
1294
1479
  --leaf-tooltip-font-weight: var(--body-4-weight);
1480
+ /* Khung caret dọc theo cạnh (top/bottom). */
1295
1481
  --leaf-tooltip-caret-w: 44px;
1296
1482
  --leaf-tooltip-caret-h: 6px;
1483
+ /* Chiều rộng tam giác thật trong khung. */
1484
+ --leaf-tooltip-caret-tip: 12px;
1297
1485
 
1298
1486
  display: inline-flex;
1299
1487
  flex-direction: column;
@@ -1310,7 +1498,7 @@
1310
1498
 
1311
1499
  .leaf-tooltip--portal {
1312
1500
  position: fixed;
1313
- z-index: 110;
1501
+ z-index: var(--leaf-z-tooltip, 110);
1314
1502
  }
1315
1503
 
1316
1504
  /* `display` của .leaf-tooltip thắng `[hidden]` của trình duyệt — bản vanilla ẩn bubble bằng hidden. */
@@ -1330,12 +1518,28 @@
1330
1518
  word-break: break-word;
1331
1519
  }
1332
1520
 
1521
+ /*
1522
+ * Caret = khung trong suốt + ::before là tam giác nhỏ ở giữa (đúng SVG Figma).
1523
+ * Mặc định: mũi nhọn xuống (position=top — caret dưới body).
1524
+ */
1333
1525
  .leaf-tooltip__caret {
1526
+ position: relative;
1527
+ display: block;
1334
1528
  flex-shrink: 0;
1335
1529
  width: var(--leaf-tooltip-caret-w);
1336
1530
  height: var(--leaf-tooltip-caret-h);
1531
+ background-color: transparent;
1532
+ }
1533
+
1534
+ .leaf-tooltip__caret::before {
1535
+ content: "";
1536
+ position: absolute;
1537
+ top: 0;
1538
+ left: 50%;
1539
+ width: var(--leaf-tooltip-caret-tip);
1540
+ height: 100%;
1337
1541
  background-color: var(--base-quaternary);
1338
- /* Mặc định: mũi nhọn xuống (position=top). */
1542
+ transform: translateX(-50%);
1339
1543
  clip-path: polygon(0 0, 100% 0, 50% 100%);
1340
1544
  }
1341
1545
 
@@ -1351,6 +1555,7 @@
1351
1555
  --leaf-tooltip-font-weight: var(--body-5-weight);
1352
1556
  --leaf-tooltip-caret-w: 40px;
1353
1557
  --leaf-tooltip-caret-h: 4px;
1558
+ --leaf-tooltip-caret-tip: 8px;
1354
1559
  min-width: 64px;
1355
1560
  }
1356
1561
 
@@ -1364,15 +1569,36 @@
1364
1569
  --leaf-tooltip-font-weight: var(--body-3-weight);
1365
1570
  --leaf-tooltip-caret-w: 44px;
1366
1571
  --leaf-tooltip-caret-h: 6px;
1572
+ --leaf-tooltip-caret-tip: 12px;
1573
+ }
1574
+
1575
+ /* Sm left/right: khung caret 16×4 (Figma), không dùng 40×4 của top/bottom. */
1576
+ .leaf-tooltip[data-size="sm"][data-position="left"],
1577
+ .leaf-tooltip[data-size="sm"][data-position="right"] {
1578
+ --leaf-tooltip-caret-w: 16px;
1367
1579
  }
1368
1580
 
1369
1581
  /* ── Position ────────────────────────────────────────────────────────── */
1370
1582
 
1583
+ /*
1584
+ * Vị trí caret theo data-position (không theo thứ tự DOM): markup vẫn đặt caret
1585
+ * đúng phía nên kết quả không đổi, nhưng khi bubble tự lật phía (thiếu chỗ) thì
1586
+ * chỉ cần đổi data-position là caret sang phía đối diện.
1587
+ */
1588
+ .leaf-tooltip:is(:not([data-position]), [data-position="top"], [data-position="left"])
1589
+ > .leaf-tooltip__caret {
1590
+ order: 1;
1591
+ }
1592
+
1593
+ .leaf-tooltip:is([data-position="bottom"], [data-position="right"]) > .leaf-tooltip__caret {
1594
+ order: -1;
1595
+ }
1596
+
1371
1597
  .leaf-tooltip[data-position="bottom"] {
1372
1598
  flex-direction: column;
1373
1599
  }
1374
1600
 
1375
- .leaf-tooltip[data-position="bottom"] .leaf-tooltip__caret {
1601
+ .leaf-tooltip[data-position="bottom"] .leaf-tooltip__caret::before {
1376
1602
  clip-path: polygon(50% 0, 0 100%, 100% 100%);
1377
1603
  }
1378
1604
 
@@ -1384,6 +1610,14 @@
1384
1610
  .leaf-tooltip[data-position="left"] .leaf-tooltip__caret {
1385
1611
  width: var(--leaf-tooltip-caret-h);
1386
1612
  height: var(--leaf-tooltip-caret-w);
1613
+ }
1614
+
1615
+ .leaf-tooltip[data-position="left"] .leaf-tooltip__caret::before {
1616
+ top: 50%;
1617
+ left: 0;
1618
+ width: 100%;
1619
+ height: var(--leaf-tooltip-caret-tip);
1620
+ transform: translateY(-50%);
1387
1621
  clip-path: polygon(0 0, 100% 50%, 0 100%);
1388
1622
  }
1389
1623
 
@@ -1395,6 +1629,14 @@
1395
1629
  .leaf-tooltip[data-position="right"] .leaf-tooltip__caret {
1396
1630
  width: var(--leaf-tooltip-caret-h);
1397
1631
  height: var(--leaf-tooltip-caret-w);
1632
+ }
1633
+
1634
+ .leaf-tooltip[data-position="right"] .leaf-tooltip__caret::before {
1635
+ top: 50%;
1636
+ left: 0;
1637
+ width: 100%;
1638
+ height: var(--leaf-tooltip-caret-tip);
1639
+ transform: translateY(-50%);
1398
1640
  clip-path: polygon(100% 0, 0 50%, 100% 100%);
1399
1641
  }
1400
1642
 
@@ -1416,6 +1658,49 @@
1416
1658
  }
1417
1659
  }
1418
1660
 
1661
+ /* --- src/styles/border.css --- */
1662
+
1663
+ /*
1664
+ * Border radius classes — map 1:1 sang --radius-* trong @finhay/leaf-tokens
1665
+ * (Figma 700:4390).
1666
+ *
1667
+ * Tên class `radius-*` (không dùng `rounded-*`) để không đụng utility bo góc mặc
1668
+ * định của Tailwind (`rounded-xl`…). `border-*` đã dành cho màu viền.
1669
+ *
1670
+ * Hậu tố = bậc token: 0 · xs · s · m · l · xl · 2xl.
1671
+ * Chỉ set border-radius — width / style / color do app tự lo.
1672
+ */
1673
+
1674
+ @layer utilities {
1675
+ .radius-0 {
1676
+ border-radius: var(--radius-0);
1677
+ }
1678
+
1679
+ .radius-xs {
1680
+ border-radius: var(--radius-xs);
1681
+ }
1682
+
1683
+ .radius-s {
1684
+ border-radius: var(--radius-s);
1685
+ }
1686
+
1687
+ .radius-m {
1688
+ border-radius: var(--radius-m);
1689
+ }
1690
+
1691
+ .radius-l {
1692
+ border-radius: var(--radius-l);
1693
+ }
1694
+
1695
+ .radius-xl {
1696
+ border-radius: var(--radius-xl);
1697
+ }
1698
+
1699
+ .radius-2xl {
1700
+ border-radius: var(--radius-2xl);
1701
+ }
1702
+ }
1703
+
1419
1704
  /* --- src/styles/color.css --- */
1420
1705
 
1421
1706
  /*
@@ -1430,7 +1715,8 @@
1430
1715
  * Ba bộ dùng chung một hậu tố nên đọc là đoán được: `text-red` / `base-red` /
1431
1716
  * `border-red`, `text-primary` / `base-primary` / `border-primary`. Nhóm system
1432
1717
  * bỏ chữ `system` trong tên class (token vẫn là `--system-red`), còn `border-*`
1433
- * lấy màu từ thang base vì viền luôn là màu bề mặt.
1718
+ * lấy màu từ thang base vì viền luôn là màu bề mặt. Secondary của system giữ
1719
+ * hậu tố `-secondary` (vd. `text-red-secondary` ↔ `--system-red-secondary`).
1434
1720
  *
1435
1721
  * Mỗi class chỉ set đúng 1 thuộc tính (color / background-color / border-color)
1436
1722
  * — border-width và border-style do app tự lo. Class tự đổi giá trị theo
@@ -1501,6 +1787,30 @@
1501
1787
  color: var(--system-purple);
1502
1788
  }
1503
1789
 
1790
+ .text-blue-secondary {
1791
+ color: var(--system-blue-secondary);
1792
+ }
1793
+
1794
+ .text-green-secondary {
1795
+ color: var(--system-green-secondary);
1796
+ }
1797
+
1798
+ .text-yellow-secondary {
1799
+ color: var(--system-yellow-secondary);
1800
+ }
1801
+
1802
+ .text-orange-secondary {
1803
+ color: var(--system-orange-secondary);
1804
+ }
1805
+
1806
+ .text-red-secondary {
1807
+ color: var(--system-red-secondary);
1808
+ }
1809
+
1810
+ .text-purple-secondary {
1811
+ color: var(--system-purple-secondary);
1812
+ }
1813
+
1504
1814
  /* Background — base */
1505
1815
 
1506
1816
  .base-highlight {
@@ -1553,6 +1863,30 @@
1553
1863
  background-color: var(--system-purple);
1554
1864
  }
1555
1865
 
1866
+ .base-blue-secondary {
1867
+ background-color: var(--system-blue-secondary);
1868
+ }
1869
+
1870
+ .base-green-secondary {
1871
+ background-color: var(--system-green-secondary);
1872
+ }
1873
+
1874
+ .base-yellow-secondary {
1875
+ background-color: var(--system-yellow-secondary);
1876
+ }
1877
+
1878
+ .base-orange-secondary {
1879
+ background-color: var(--system-orange-secondary);
1880
+ }
1881
+
1882
+ .base-red-secondary {
1883
+ background-color: var(--system-red-secondary);
1884
+ }
1885
+
1886
+ .base-purple-secondary {
1887
+ background-color: var(--system-purple-secondary);
1888
+ }
1889
+
1556
1890
  /* Border color — base */
1557
1891
 
1558
1892
  .border-highlight {
@@ -1604,6 +1938,867 @@
1604
1938
  .border-purple {
1605
1939
  border-color: var(--system-purple);
1606
1940
  }
1941
+
1942
+ .border-blue-secondary {
1943
+ border-color: var(--system-blue-secondary);
1944
+ }
1945
+
1946
+ .border-green-secondary {
1947
+ border-color: var(--system-green-secondary);
1948
+ }
1949
+
1950
+ .border-yellow-secondary {
1951
+ border-color: var(--system-yellow-secondary);
1952
+ }
1953
+
1954
+ .border-orange-secondary {
1955
+ border-color: var(--system-orange-secondary);
1956
+ }
1957
+
1958
+ .border-red-secondary {
1959
+ border-color: var(--system-red-secondary);
1960
+ }
1961
+
1962
+ .border-purple-secondary {
1963
+ border-color: var(--system-purple-secondary);
1964
+ }
1965
+ }
1966
+
1967
+ /* --- src/styles/spacing.css --- */
1968
+
1969
+ /*
1970
+ * Spacing classes — map 1:1 sang --spacing-* trong @finhay/leaf-tokens (Figma 34:1034).
1971
+ *
1972
+ * Tiền tố = thuộc tính (giống color): p-* / m-* / gap-* (+ biến thể hướng).
1973
+ * Hậu tố = bậc token: 0 · xs · s · m · l · xl · 2xl … 7xl.
1974
+ *
1975
+ * Chỉ set đúng 1 thuộc tính spacing — không đụng width/height/radius.
1976
+ * Nằm trong @layer utilities để Leaf thắng khi trùng tên với utility Tailwind
1977
+ * (import sau @import "tailwindcss"), giống color.css.
1978
+ */
1979
+
1980
+ @layer utilities {
1981
+ /* Padding */
1982
+
1983
+ .p-0 {
1984
+ padding: var(--spacing-0);
1985
+ }
1986
+
1987
+ .p-xs {
1988
+ padding: var(--spacing-xs);
1989
+ }
1990
+
1991
+ .p-s {
1992
+ padding: var(--spacing-s);
1993
+ }
1994
+
1995
+ .p-m {
1996
+ padding: var(--spacing-m);
1997
+ }
1998
+
1999
+ .p-l {
2000
+ padding: var(--spacing-l);
2001
+ }
2002
+
2003
+ .p-xl {
2004
+ padding: var(--spacing-xl);
2005
+ }
2006
+
2007
+ .p-2xl {
2008
+ padding: var(--spacing-2xl);
2009
+ }
2010
+
2011
+ .p-3xl {
2012
+ padding: var(--spacing-3xl);
2013
+ }
2014
+
2015
+ .p-4xl {
2016
+ padding: var(--spacing-4xl);
2017
+ }
2018
+
2019
+ .p-5xl {
2020
+ padding: var(--spacing-5xl);
2021
+ }
2022
+
2023
+ .p-6xl {
2024
+ padding: var(--spacing-6xl);
2025
+ }
2026
+
2027
+ .p-7xl {
2028
+ padding: var(--spacing-7xl);
2029
+ }
2030
+
2031
+ .px-0 {
2032
+ padding-inline: var(--spacing-0);
2033
+ }
2034
+
2035
+ .px-xs {
2036
+ padding-inline: var(--spacing-xs);
2037
+ }
2038
+
2039
+ .px-s {
2040
+ padding-inline: var(--spacing-s);
2041
+ }
2042
+
2043
+ .px-m {
2044
+ padding-inline: var(--spacing-m);
2045
+ }
2046
+
2047
+ .px-l {
2048
+ padding-inline: var(--spacing-l);
2049
+ }
2050
+
2051
+ .px-xl {
2052
+ padding-inline: var(--spacing-xl);
2053
+ }
2054
+
2055
+ .px-2xl {
2056
+ padding-inline: var(--spacing-2xl);
2057
+ }
2058
+
2059
+ .px-3xl {
2060
+ padding-inline: var(--spacing-3xl);
2061
+ }
2062
+
2063
+ .px-4xl {
2064
+ padding-inline: var(--spacing-4xl);
2065
+ }
2066
+
2067
+ .px-5xl {
2068
+ padding-inline: var(--spacing-5xl);
2069
+ }
2070
+
2071
+ .px-6xl {
2072
+ padding-inline: var(--spacing-6xl);
2073
+ }
2074
+
2075
+ .px-7xl {
2076
+ padding-inline: var(--spacing-7xl);
2077
+ }
2078
+
2079
+ .py-0 {
2080
+ padding-block: var(--spacing-0);
2081
+ }
2082
+
2083
+ .py-xs {
2084
+ padding-block: var(--spacing-xs);
2085
+ }
2086
+
2087
+ .py-s {
2088
+ padding-block: var(--spacing-s);
2089
+ }
2090
+
2091
+ .py-m {
2092
+ padding-block: var(--spacing-m);
2093
+ }
2094
+
2095
+ .py-l {
2096
+ padding-block: var(--spacing-l);
2097
+ }
2098
+
2099
+ .py-xl {
2100
+ padding-block: var(--spacing-xl);
2101
+ }
2102
+
2103
+ .py-2xl {
2104
+ padding-block: var(--spacing-2xl);
2105
+ }
2106
+
2107
+ .py-3xl {
2108
+ padding-block: var(--spacing-3xl);
2109
+ }
2110
+
2111
+ .py-4xl {
2112
+ padding-block: var(--spacing-4xl);
2113
+ }
2114
+
2115
+ .py-5xl {
2116
+ padding-block: var(--spacing-5xl);
2117
+ }
2118
+
2119
+ .py-6xl {
2120
+ padding-block: var(--spacing-6xl);
2121
+ }
2122
+
2123
+ .py-7xl {
2124
+ padding-block: var(--spacing-7xl);
2125
+ }
2126
+
2127
+ .pt-0 {
2128
+ padding-top: var(--spacing-0);
2129
+ }
2130
+
2131
+ .pt-xs {
2132
+ padding-top: var(--spacing-xs);
2133
+ }
2134
+
2135
+ .pt-s {
2136
+ padding-top: var(--spacing-s);
2137
+ }
2138
+
2139
+ .pt-m {
2140
+ padding-top: var(--spacing-m);
2141
+ }
2142
+
2143
+ .pt-l {
2144
+ padding-top: var(--spacing-l);
2145
+ }
2146
+
2147
+ .pt-xl {
2148
+ padding-top: var(--spacing-xl);
2149
+ }
2150
+
2151
+ .pt-2xl {
2152
+ padding-top: var(--spacing-2xl);
2153
+ }
2154
+
2155
+ .pt-3xl {
2156
+ padding-top: var(--spacing-3xl);
2157
+ }
2158
+
2159
+ .pt-4xl {
2160
+ padding-top: var(--spacing-4xl);
2161
+ }
2162
+
2163
+ .pt-5xl {
2164
+ padding-top: var(--spacing-5xl);
2165
+ }
2166
+
2167
+ .pt-6xl {
2168
+ padding-top: var(--spacing-6xl);
2169
+ }
2170
+
2171
+ .pt-7xl {
2172
+ padding-top: var(--spacing-7xl);
2173
+ }
2174
+
2175
+ .pr-0 {
2176
+ padding-right: var(--spacing-0);
2177
+ }
2178
+
2179
+ .pr-xs {
2180
+ padding-right: var(--spacing-xs);
2181
+ }
2182
+
2183
+ .pr-s {
2184
+ padding-right: var(--spacing-s);
2185
+ }
2186
+
2187
+ .pr-m {
2188
+ padding-right: var(--spacing-m);
2189
+ }
2190
+
2191
+ .pr-l {
2192
+ padding-right: var(--spacing-l);
2193
+ }
2194
+
2195
+ .pr-xl {
2196
+ padding-right: var(--spacing-xl);
2197
+ }
2198
+
2199
+ .pr-2xl {
2200
+ padding-right: var(--spacing-2xl);
2201
+ }
2202
+
2203
+ .pr-3xl {
2204
+ padding-right: var(--spacing-3xl);
2205
+ }
2206
+
2207
+ .pr-4xl {
2208
+ padding-right: var(--spacing-4xl);
2209
+ }
2210
+
2211
+ .pr-5xl {
2212
+ padding-right: var(--spacing-5xl);
2213
+ }
2214
+
2215
+ .pr-6xl {
2216
+ padding-right: var(--spacing-6xl);
2217
+ }
2218
+
2219
+ .pr-7xl {
2220
+ padding-right: var(--spacing-7xl);
2221
+ }
2222
+
2223
+ .pb-0 {
2224
+ padding-bottom: var(--spacing-0);
2225
+ }
2226
+
2227
+ .pb-xs {
2228
+ padding-bottom: var(--spacing-xs);
2229
+ }
2230
+
2231
+ .pb-s {
2232
+ padding-bottom: var(--spacing-s);
2233
+ }
2234
+
2235
+ .pb-m {
2236
+ padding-bottom: var(--spacing-m);
2237
+ }
2238
+
2239
+ .pb-l {
2240
+ padding-bottom: var(--spacing-l);
2241
+ }
2242
+
2243
+ .pb-xl {
2244
+ padding-bottom: var(--spacing-xl);
2245
+ }
2246
+
2247
+ .pb-2xl {
2248
+ padding-bottom: var(--spacing-2xl);
2249
+ }
2250
+
2251
+ .pb-3xl {
2252
+ padding-bottom: var(--spacing-3xl);
2253
+ }
2254
+
2255
+ .pb-4xl {
2256
+ padding-bottom: var(--spacing-4xl);
2257
+ }
2258
+
2259
+ .pb-5xl {
2260
+ padding-bottom: var(--spacing-5xl);
2261
+ }
2262
+
2263
+ .pb-6xl {
2264
+ padding-bottom: var(--spacing-6xl);
2265
+ }
2266
+
2267
+ .pb-7xl {
2268
+ padding-bottom: var(--spacing-7xl);
2269
+ }
2270
+
2271
+ .pl-0 {
2272
+ padding-left: var(--spacing-0);
2273
+ }
2274
+
2275
+ .pl-xs {
2276
+ padding-left: var(--spacing-xs);
2277
+ }
2278
+
2279
+ .pl-s {
2280
+ padding-left: var(--spacing-s);
2281
+ }
2282
+
2283
+ .pl-m {
2284
+ padding-left: var(--spacing-m);
2285
+ }
2286
+
2287
+ .pl-l {
2288
+ padding-left: var(--spacing-l);
2289
+ }
2290
+
2291
+ .pl-xl {
2292
+ padding-left: var(--spacing-xl);
2293
+ }
2294
+
2295
+ .pl-2xl {
2296
+ padding-left: var(--spacing-2xl);
2297
+ }
2298
+
2299
+ .pl-3xl {
2300
+ padding-left: var(--spacing-3xl);
2301
+ }
2302
+
2303
+ .pl-4xl {
2304
+ padding-left: var(--spacing-4xl);
2305
+ }
2306
+
2307
+ .pl-5xl {
2308
+ padding-left: var(--spacing-5xl);
2309
+ }
2310
+
2311
+ .pl-6xl {
2312
+ padding-left: var(--spacing-6xl);
2313
+ }
2314
+
2315
+ .pl-7xl {
2316
+ padding-left: var(--spacing-7xl);
2317
+ }
2318
+
2319
+ /* Margin */
2320
+
2321
+ .m-0 {
2322
+ margin: var(--spacing-0);
2323
+ }
2324
+
2325
+ .m-xs {
2326
+ margin: var(--spacing-xs);
2327
+ }
2328
+
2329
+ .m-s {
2330
+ margin: var(--spacing-s);
2331
+ }
2332
+
2333
+ .m-m {
2334
+ margin: var(--spacing-m);
2335
+ }
2336
+
2337
+ .m-l {
2338
+ margin: var(--spacing-l);
2339
+ }
2340
+
2341
+ .m-xl {
2342
+ margin: var(--spacing-xl);
2343
+ }
2344
+
2345
+ .m-2xl {
2346
+ margin: var(--spacing-2xl);
2347
+ }
2348
+
2349
+ .m-3xl {
2350
+ margin: var(--spacing-3xl);
2351
+ }
2352
+
2353
+ .m-4xl {
2354
+ margin: var(--spacing-4xl);
2355
+ }
2356
+
2357
+ .m-5xl {
2358
+ margin: var(--spacing-5xl);
2359
+ }
2360
+
2361
+ .m-6xl {
2362
+ margin: var(--spacing-6xl);
2363
+ }
2364
+
2365
+ .m-7xl {
2366
+ margin: var(--spacing-7xl);
2367
+ }
2368
+
2369
+ .mx-0 {
2370
+ margin-inline: var(--spacing-0);
2371
+ }
2372
+
2373
+ .mx-xs {
2374
+ margin-inline: var(--spacing-xs);
2375
+ }
2376
+
2377
+ .mx-s {
2378
+ margin-inline: var(--spacing-s);
2379
+ }
2380
+
2381
+ .mx-m {
2382
+ margin-inline: var(--spacing-m);
2383
+ }
2384
+
2385
+ .mx-l {
2386
+ margin-inline: var(--spacing-l);
2387
+ }
2388
+
2389
+ .mx-xl {
2390
+ margin-inline: var(--spacing-xl);
2391
+ }
2392
+
2393
+ .mx-2xl {
2394
+ margin-inline: var(--spacing-2xl);
2395
+ }
2396
+
2397
+ .mx-3xl {
2398
+ margin-inline: var(--spacing-3xl);
2399
+ }
2400
+
2401
+ .mx-4xl {
2402
+ margin-inline: var(--spacing-4xl);
2403
+ }
2404
+
2405
+ .mx-5xl {
2406
+ margin-inline: var(--spacing-5xl);
2407
+ }
2408
+
2409
+ .mx-6xl {
2410
+ margin-inline: var(--spacing-6xl);
2411
+ }
2412
+
2413
+ .mx-7xl {
2414
+ margin-inline: var(--spacing-7xl);
2415
+ }
2416
+
2417
+ .my-0 {
2418
+ margin-block: var(--spacing-0);
2419
+ }
2420
+
2421
+ .my-xs {
2422
+ margin-block: var(--spacing-xs);
2423
+ }
2424
+
2425
+ .my-s {
2426
+ margin-block: var(--spacing-s);
2427
+ }
2428
+
2429
+ .my-m {
2430
+ margin-block: var(--spacing-m);
2431
+ }
2432
+
2433
+ .my-l {
2434
+ margin-block: var(--spacing-l);
2435
+ }
2436
+
2437
+ .my-xl {
2438
+ margin-block: var(--spacing-xl);
2439
+ }
2440
+
2441
+ .my-2xl {
2442
+ margin-block: var(--spacing-2xl);
2443
+ }
2444
+
2445
+ .my-3xl {
2446
+ margin-block: var(--spacing-3xl);
2447
+ }
2448
+
2449
+ .my-4xl {
2450
+ margin-block: var(--spacing-4xl);
2451
+ }
2452
+
2453
+ .my-5xl {
2454
+ margin-block: var(--spacing-5xl);
2455
+ }
2456
+
2457
+ .my-6xl {
2458
+ margin-block: var(--spacing-6xl);
2459
+ }
2460
+
2461
+ .my-7xl {
2462
+ margin-block: var(--spacing-7xl);
2463
+ }
2464
+
2465
+ .mt-0 {
2466
+ margin-top: var(--spacing-0);
2467
+ }
2468
+
2469
+ .mt-xs {
2470
+ margin-top: var(--spacing-xs);
2471
+ }
2472
+
2473
+ .mt-s {
2474
+ margin-top: var(--spacing-s);
2475
+ }
2476
+
2477
+ .mt-m {
2478
+ margin-top: var(--spacing-m);
2479
+ }
2480
+
2481
+ .mt-l {
2482
+ margin-top: var(--spacing-l);
2483
+ }
2484
+
2485
+ .mt-xl {
2486
+ margin-top: var(--spacing-xl);
2487
+ }
2488
+
2489
+ .mt-2xl {
2490
+ margin-top: var(--spacing-2xl);
2491
+ }
2492
+
2493
+ .mt-3xl {
2494
+ margin-top: var(--spacing-3xl);
2495
+ }
2496
+
2497
+ .mt-4xl {
2498
+ margin-top: var(--spacing-4xl);
2499
+ }
2500
+
2501
+ .mt-5xl {
2502
+ margin-top: var(--spacing-5xl);
2503
+ }
2504
+
2505
+ .mt-6xl {
2506
+ margin-top: var(--spacing-6xl);
2507
+ }
2508
+
2509
+ .mt-7xl {
2510
+ margin-top: var(--spacing-7xl);
2511
+ }
2512
+
2513
+ .mr-0 {
2514
+ margin-right: var(--spacing-0);
2515
+ }
2516
+
2517
+ .mr-xs {
2518
+ margin-right: var(--spacing-xs);
2519
+ }
2520
+
2521
+ .mr-s {
2522
+ margin-right: var(--spacing-s);
2523
+ }
2524
+
2525
+ .mr-m {
2526
+ margin-right: var(--spacing-m);
2527
+ }
2528
+
2529
+ .mr-l {
2530
+ margin-right: var(--spacing-l);
2531
+ }
2532
+
2533
+ .mr-xl {
2534
+ margin-right: var(--spacing-xl);
2535
+ }
2536
+
2537
+ .mr-2xl {
2538
+ margin-right: var(--spacing-2xl);
2539
+ }
2540
+
2541
+ .mr-3xl {
2542
+ margin-right: var(--spacing-3xl);
2543
+ }
2544
+
2545
+ .mr-4xl {
2546
+ margin-right: var(--spacing-4xl);
2547
+ }
2548
+
2549
+ .mr-5xl {
2550
+ margin-right: var(--spacing-5xl);
2551
+ }
2552
+
2553
+ .mr-6xl {
2554
+ margin-right: var(--spacing-6xl);
2555
+ }
2556
+
2557
+ .mr-7xl {
2558
+ margin-right: var(--spacing-7xl);
2559
+ }
2560
+
2561
+ .mb-0 {
2562
+ margin-bottom: var(--spacing-0);
2563
+ }
2564
+
2565
+ .mb-xs {
2566
+ margin-bottom: var(--spacing-xs);
2567
+ }
2568
+
2569
+ .mb-s {
2570
+ margin-bottom: var(--spacing-s);
2571
+ }
2572
+
2573
+ .mb-m {
2574
+ margin-bottom: var(--spacing-m);
2575
+ }
2576
+
2577
+ .mb-l {
2578
+ margin-bottom: var(--spacing-l);
2579
+ }
2580
+
2581
+ .mb-xl {
2582
+ margin-bottom: var(--spacing-xl);
2583
+ }
2584
+
2585
+ .mb-2xl {
2586
+ margin-bottom: var(--spacing-2xl);
2587
+ }
2588
+
2589
+ .mb-3xl {
2590
+ margin-bottom: var(--spacing-3xl);
2591
+ }
2592
+
2593
+ .mb-4xl {
2594
+ margin-bottom: var(--spacing-4xl);
2595
+ }
2596
+
2597
+ .mb-5xl {
2598
+ margin-bottom: var(--spacing-5xl);
2599
+ }
2600
+
2601
+ .mb-6xl {
2602
+ margin-bottom: var(--spacing-6xl);
2603
+ }
2604
+
2605
+ .mb-7xl {
2606
+ margin-bottom: var(--spacing-7xl);
2607
+ }
2608
+
2609
+ .ml-0 {
2610
+ margin-left: var(--spacing-0);
2611
+ }
2612
+
2613
+ .ml-xs {
2614
+ margin-left: var(--spacing-xs);
2615
+ }
2616
+
2617
+ .ml-s {
2618
+ margin-left: var(--spacing-s);
2619
+ }
2620
+
2621
+ .ml-m {
2622
+ margin-left: var(--spacing-m);
2623
+ }
2624
+
2625
+ .ml-l {
2626
+ margin-left: var(--spacing-l);
2627
+ }
2628
+
2629
+ .ml-xl {
2630
+ margin-left: var(--spacing-xl);
2631
+ }
2632
+
2633
+ .ml-2xl {
2634
+ margin-left: var(--spacing-2xl);
2635
+ }
2636
+
2637
+ .ml-3xl {
2638
+ margin-left: var(--spacing-3xl);
2639
+ }
2640
+
2641
+ .ml-4xl {
2642
+ margin-left: var(--spacing-4xl);
2643
+ }
2644
+
2645
+ .ml-5xl {
2646
+ margin-left: var(--spacing-5xl);
2647
+ }
2648
+
2649
+ .ml-6xl {
2650
+ margin-left: var(--spacing-6xl);
2651
+ }
2652
+
2653
+ .ml-7xl {
2654
+ margin-left: var(--spacing-7xl);
2655
+ }
2656
+
2657
+ /* Gap */
2658
+
2659
+ .gap-0 {
2660
+ gap: var(--spacing-0);
2661
+ }
2662
+
2663
+ .gap-xs {
2664
+ gap: var(--spacing-xs);
2665
+ }
2666
+
2667
+ .gap-s {
2668
+ gap: var(--spacing-s);
2669
+ }
2670
+
2671
+ .gap-m {
2672
+ gap: var(--spacing-m);
2673
+ }
2674
+
2675
+ .gap-l {
2676
+ gap: var(--spacing-l);
2677
+ }
2678
+
2679
+ .gap-xl {
2680
+ gap: var(--spacing-xl);
2681
+ }
2682
+
2683
+ .gap-2xl {
2684
+ gap: var(--spacing-2xl);
2685
+ }
2686
+
2687
+ .gap-3xl {
2688
+ gap: var(--spacing-3xl);
2689
+ }
2690
+
2691
+ .gap-4xl {
2692
+ gap: var(--spacing-4xl);
2693
+ }
2694
+
2695
+ .gap-5xl {
2696
+ gap: var(--spacing-5xl);
2697
+ }
2698
+
2699
+ .gap-6xl {
2700
+ gap: var(--spacing-6xl);
2701
+ }
2702
+
2703
+ .gap-7xl {
2704
+ gap: var(--spacing-7xl);
2705
+ }
2706
+
2707
+ .gap-x-0 {
2708
+ column-gap: var(--spacing-0);
2709
+ }
2710
+
2711
+ .gap-x-xs {
2712
+ column-gap: var(--spacing-xs);
2713
+ }
2714
+
2715
+ .gap-x-s {
2716
+ column-gap: var(--spacing-s);
2717
+ }
2718
+
2719
+ .gap-x-m {
2720
+ column-gap: var(--spacing-m);
2721
+ }
2722
+
2723
+ .gap-x-l {
2724
+ column-gap: var(--spacing-l);
2725
+ }
2726
+
2727
+ .gap-x-xl {
2728
+ column-gap: var(--spacing-xl);
2729
+ }
2730
+
2731
+ .gap-x-2xl {
2732
+ column-gap: var(--spacing-2xl);
2733
+ }
2734
+
2735
+ .gap-x-3xl {
2736
+ column-gap: var(--spacing-3xl);
2737
+ }
2738
+
2739
+ .gap-x-4xl {
2740
+ column-gap: var(--spacing-4xl);
2741
+ }
2742
+
2743
+ .gap-x-5xl {
2744
+ column-gap: var(--spacing-5xl);
2745
+ }
2746
+
2747
+ .gap-x-6xl {
2748
+ column-gap: var(--spacing-6xl);
2749
+ }
2750
+
2751
+ .gap-x-7xl {
2752
+ column-gap: var(--spacing-7xl);
2753
+ }
2754
+
2755
+ .gap-y-0 {
2756
+ row-gap: var(--spacing-0);
2757
+ }
2758
+
2759
+ .gap-y-xs {
2760
+ row-gap: var(--spacing-xs);
2761
+ }
2762
+
2763
+ .gap-y-s {
2764
+ row-gap: var(--spacing-s);
2765
+ }
2766
+
2767
+ .gap-y-m {
2768
+ row-gap: var(--spacing-m);
2769
+ }
2770
+
2771
+ .gap-y-l {
2772
+ row-gap: var(--spacing-l);
2773
+ }
2774
+
2775
+ .gap-y-xl {
2776
+ row-gap: var(--spacing-xl);
2777
+ }
2778
+
2779
+ .gap-y-2xl {
2780
+ row-gap: var(--spacing-2xl);
2781
+ }
2782
+
2783
+ .gap-y-3xl {
2784
+ row-gap: var(--spacing-3xl);
2785
+ }
2786
+
2787
+ .gap-y-4xl {
2788
+ row-gap: var(--spacing-4xl);
2789
+ }
2790
+
2791
+ .gap-y-5xl {
2792
+ row-gap: var(--spacing-5xl);
2793
+ }
2794
+
2795
+ .gap-y-6xl {
2796
+ row-gap: var(--spacing-6xl);
2797
+ }
2798
+
2799
+ .gap-y-7xl {
2800
+ row-gap: var(--spacing-7xl);
2801
+ }
1607
2802
  }
1608
2803
 
1609
2804
  /* --- src/styles/typography.css --- */