@finhay-pro/leaf-design-system 0.1.6 → 0.1.8

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 (122) hide show
  1. package/README.md +352 -163
  2. package/dist/button.css +12 -15
  3. package/dist/calendar.css +325 -0
  4. package/dist/cdn/leaf-0.1.8.min.css +2 -0
  5. package/dist/cdn/leaf-0.1.8.min.js +2 -0
  6. package/dist/checkbox.css +132 -0
  7. package/dist/classes.css +2256 -1513
  8. package/dist/color.css +27 -32
  9. package/dist/components/Calendar/Calendar.d.ts +49 -0
  10. package/dist/components/Calendar/Calendar.d.ts.map +1 -0
  11. package/dist/components/Calendar/Calendar.js +167 -0
  12. package/dist/components/Calendar/Calendar.js.map +1 -0
  13. package/dist/components/Calendar/index.d.ts +2 -0
  14. package/dist/components/Calendar/index.d.ts.map +1 -0
  15. package/dist/components/Calendar/index.js +2 -0
  16. package/dist/components/Calendar/index.js.map +1 -0
  17. package/dist/components/Checkbox/Checkbox.d.ts +25 -0
  18. package/dist/components/Checkbox/Checkbox.d.ts.map +1 -0
  19. package/dist/components/Checkbox/Checkbox.js +40 -0
  20. package/dist/components/Checkbox/Checkbox.js.map +1 -0
  21. package/dist/components/Checkbox/index.d.ts +2 -0
  22. package/dist/components/Checkbox/index.d.ts.map +1 -0
  23. package/dist/components/Checkbox/index.js +2 -0
  24. package/dist/components/Checkbox/index.js.map +1 -0
  25. package/dist/components/Dropdown/Dropdown.d.ts +62 -0
  26. package/dist/components/Dropdown/Dropdown.d.ts.map +1 -0
  27. package/dist/components/Dropdown/Dropdown.js +197 -0
  28. package/dist/components/Dropdown/Dropdown.js.map +1 -0
  29. package/dist/components/Dropdown/LanguageDropdown.d.ts +15 -0
  30. package/dist/components/Dropdown/LanguageDropdown.d.ts.map +1 -0
  31. package/dist/components/Dropdown/LanguageDropdown.js +18 -0
  32. package/dist/components/Dropdown/LanguageDropdown.js.map +1 -0
  33. package/dist/components/Dropdown/index.d.ts +4 -0
  34. package/dist/components/Dropdown/index.d.ts.map +1 -0
  35. package/dist/components/Dropdown/index.js +5 -0
  36. package/dist/components/Dropdown/index.js.map +1 -0
  37. package/dist/components/Input/Input.d.ts +57 -0
  38. package/dist/components/Input/Input.d.ts.map +1 -0
  39. package/dist/components/Input/Input.js +78 -0
  40. package/dist/components/Input/Input.js.map +1 -0
  41. package/dist/components/Input/InputDate.d.ts +56 -0
  42. package/dist/components/Input/InputDate.d.ts.map +1 -0
  43. package/dist/components/Input/InputDate.js +119 -0
  44. package/dist/components/Input/InputDate.js.map +1 -0
  45. package/dist/components/Input/InputOtp.d.ts +33 -0
  46. package/dist/components/Input/InputOtp.d.ts.map +1 -0
  47. package/dist/components/Input/InputOtp.js +96 -0
  48. package/dist/components/Input/InputOtp.js.map +1 -0
  49. package/dist/components/Input/InputStepper.d.ts +42 -0
  50. package/dist/components/Input/InputStepper.d.ts.map +1 -0
  51. package/dist/components/Input/InputStepper.js +86 -0
  52. package/dist/components/Input/InputStepper.js.map +1 -0
  53. package/dist/components/Input/index.d.ts +5 -0
  54. package/dist/components/Input/index.d.ts.map +1 -0
  55. package/dist/components/Input/index.js +5 -0
  56. package/dist/components/Input/index.js.map +1 -0
  57. package/dist/components/Radio/Radio.d.ts +39 -0
  58. package/dist/components/Radio/Radio.d.ts.map +1 -0
  59. package/dist/components/Radio/Radio.js +50 -0
  60. package/dist/components/Radio/Radio.js.map +1 -0
  61. package/dist/components/Radio/index.d.ts +2 -0
  62. package/dist/components/Radio/index.d.ts.map +1 -0
  63. package/dist/components/Radio/index.js +2 -0
  64. package/dist/components/Radio/index.js.map +1 -0
  65. package/dist/components/Toast/Toast.d.ts +66 -0
  66. package/dist/components/Toast/Toast.d.ts.map +1 -0
  67. package/dist/components/Toast/Toast.js +77 -0
  68. package/dist/components/Toast/Toast.js.map +1 -0
  69. package/dist/components/Toast/index.d.ts +2 -0
  70. package/dist/components/Toast/index.d.ts.map +1 -0
  71. package/dist/components/Toast/index.js +2 -0
  72. package/dist/components/Toast/index.js.map +1 -0
  73. package/dist/core/calendar.d.ts +36 -0
  74. package/dist/core/calendar.d.ts.map +1 -0
  75. package/dist/core/calendar.js +65 -0
  76. package/dist/core/calendar.js.map +1 -0
  77. package/dist/core/dropdown.d.ts +66 -0
  78. package/dist/core/dropdown.d.ts.map +1 -0
  79. package/dist/core/dropdown.js +131 -0
  80. package/dist/core/dropdown.js.map +1 -0
  81. package/dist/core/language.d.ts +25 -0
  82. package/dist/core/language.d.ts.map +1 -0
  83. package/dist/core/language.js +17 -0
  84. package/dist/core/language.js.map +1 -0
  85. package/dist/core/otp.d.ts +30 -0
  86. package/dist/core/otp.d.ts.map +1 -0
  87. package/dist/core/otp.js +65 -0
  88. package/dist/core/otp.js.map +1 -0
  89. package/dist/core/stepper.d.ts +39 -0
  90. package/dist/core/stepper.d.ts.map +1 -0
  91. package/dist/core/stepper.js +109 -0
  92. package/dist/core/stepper.js.map +1 -0
  93. package/dist/core/toast.d.ts +67 -0
  94. package/dist/core/toast.d.ts.map +1 -0
  95. package/dist/core/toast.js +102 -0
  96. package/dist/core/toast.js.map +1 -0
  97. package/dist/dialog.css +15 -9
  98. package/dist/dropdown.css +303 -0
  99. package/dist/index.d.ts +6 -0
  100. package/dist/index.d.ts.map +1 -1
  101. package/dist/index.js +6 -0
  102. package/dist/index.js.map +1 -1
  103. package/dist/input-date.css +49 -0
  104. package/dist/input-otp.css +76 -0
  105. package/dist/input-stepper.css +179 -0
  106. package/dist/input.css +218 -0
  107. package/dist/logo.css +2 -2
  108. package/dist/radio.css +124 -0
  109. package/dist/slider.css +16 -14
  110. package/dist/spinner.css +3 -3
  111. package/dist/styles.css +2255 -1545
  112. package/dist/tabs.css +5 -4
  113. package/dist/toast.css +234 -0
  114. package/dist/toggle.css +4 -3
  115. package/dist/tokens.css +0 -33
  116. package/dist/tooltip.css +13 -12
  117. package/dist/typography.css +1 -3
  118. package/package.json +10 -3
  119. package/dist/border.css +0 -45
  120. package/dist/cdn/leaf-0.1.6.min.css +0 -2
  121. package/dist/cdn/leaf-0.1.6.min.js +0 -2
  122. package/dist/spacing.css +0 -839
package/dist/tabs.css CHANGED
@@ -62,6 +62,8 @@
62
62
  display: inline-flex;
63
63
  align-items: center;
64
64
  justify-content: center;
65
+ text-align: center;
66
+ white-space: nowrap;
65
67
  border: none;
66
68
  margin: 0;
67
69
  padding: 0;
@@ -70,15 +72,14 @@
70
72
  color: inherit;
71
73
  font: inherit;
72
74
  font-family: var(--font-sans);
73
- text-align: center;
74
- white-space: nowrap;
75
75
  box-sizing: border-box;
76
76
  appearance: none;
77
77
  }
78
78
 
79
- /* `display` ở trên thắng `[hidden]` của trình duyệt — khai báo lại để `hidden` luôn ẩn. */
79
+ /* `hidden` luôn ẩn — rule gốc set display; selector `[hidden]` specificity cao hơn nên thắng. */
80
80
  .leaf-tabs[hidden],
81
- .leaf-tab[hidden] {
81
+ .leaf-tab[hidden],
82
+ .leaf-tab__label[hidden] {
82
83
  display: none;
83
84
  }
84
85
 
package/dist/toast.css ADDED
@@ -0,0 +1,234 @@
1
+ /* @finhay-pro/leaf-design-system — generated by scripts/build-css.mjs. Do not edit. */
2
+ @layer theme, base, components, utilities;
3
+
4
+ /* --- src/components/Toast/toast.css --- */
5
+
6
+ /*
7
+ * Toast — thông báo ngắn góc màn hình.
8
+ *
9
+ * Status qua data-status: success (viền / icon / progress --text-highlight, nền
10
+ * --system-green-secondary) · error (--system-red / --system-red-secondary) · warning
11
+ * (--system-yellow / --system-yellow-secondary). Thiếu attribute → success.
12
+ *
13
+ * Nền thang 800 ở cả hai theme → toast gắn sẵn `data-theme="dark"` để chữ giữ màu sáng.
14
+ * Thời gian tự đóng = animation của thanh progress (--leaf-toast-duration), dừng khi
15
+ * hover / focus; hết animation thì JS đóng toast. data-state="closing" chạy hiệu ứng ra.
16
+ */
17
+
18
+ @layer components {
19
+ .leaf-toaster {
20
+ --leaf-toast-enter-x: 24px;
21
+ --leaf-toast-enter-y: 0px;
22
+
23
+ position: fixed;
24
+ top: 16px;
25
+ right: 16px;
26
+ z-index: var(--leaf-z-toast, 120);
27
+ display: flex;
28
+ flex-direction: column;
29
+ align-items: flex-end;
30
+ gap: 8px;
31
+ max-width: calc(100vw - 32px);
32
+ margin: 0;
33
+ padding: 0;
34
+ pointer-events: none;
35
+ }
36
+
37
+ .leaf-toaster[data-position="top-left"],
38
+ .leaf-toaster[data-position="bottom-left"] {
39
+ --leaf-toast-enter-x: -24px;
40
+ right: auto;
41
+ left: 16px;
42
+ align-items: flex-start;
43
+ }
44
+
45
+ .leaf-toaster[data-position="top-center"],
46
+ .leaf-toaster[data-position="bottom-center"] {
47
+ --leaf-toast-enter-x: 0px;
48
+ --leaf-toast-enter-y: -12px;
49
+ right: auto;
50
+ left: 50%;
51
+ align-items: center;
52
+ transform: translateX(-50%);
53
+ }
54
+
55
+ .leaf-toaster[data-position^="bottom"] {
56
+ top: auto;
57
+ bottom: 16px;
58
+ }
59
+
60
+ .leaf-toaster[data-position="bottom-center"] {
61
+ --leaf-toast-enter-y: 12px;
62
+ }
63
+
64
+ .leaf-toaster > .leaf-toast {
65
+ pointer-events: auto;
66
+ }
67
+
68
+ .leaf-toast {
69
+ --leaf-toast-accent: var(--text-highlight);
70
+ --leaf-toast-surface: var(--system-green-secondary);
71
+
72
+ position: relative;
73
+ display: flex;
74
+ align-items: center;
75
+ gap: 8px;
76
+ width: 320px;
77
+ max-width: 100%;
78
+ margin: 0;
79
+ padding: 12px;
80
+ box-sizing: border-box;
81
+ overflow: hidden;
82
+ border: 1px solid var(--leaf-toast-accent);
83
+ border-radius: 12px;
84
+ background-color: var(--leaf-toast-surface);
85
+ box-shadow: 0 10px 15px -3px color-mix(in srgb, var(--overlay) 30%, transparent);
86
+ color: var(--text-primary);
87
+ font-family: var(--font-sans);
88
+ animation: leaf-toast-in 300ms ease-out;
89
+ }
90
+
91
+ .leaf-toast[data-status="error"] {
92
+ --leaf-toast-accent: var(--system-red);
93
+ --leaf-toast-surface: var(--system-red-secondary);
94
+ }
95
+
96
+ .leaf-toast[data-status="warning"] {
97
+ --leaf-toast-accent: var(--system-yellow);
98
+ --leaf-toast-surface: var(--system-yellow-secondary);
99
+ }
100
+
101
+ .leaf-toast[data-state="closing"] {
102
+ animation: leaf-toast-out 300ms ease-in forwards;
103
+ pointer-events: none;
104
+ }
105
+
106
+ .leaf-toaster[hidden],
107
+ .leaf-toast[hidden],
108
+ .leaf-toast__icon[hidden],
109
+ .leaf-toast__content[hidden],
110
+ .leaf-toast__close[hidden],
111
+ .leaf-toast__glyph[hidden],
112
+ .leaf-toast__progress[hidden],
113
+ .leaf-toast__progress-bar[hidden] {
114
+ display: none;
115
+ }
116
+
117
+ .leaf-toast__icon {
118
+ display: inline-flex;
119
+ flex-shrink: 0;
120
+ align-items: center;
121
+ justify-content: center;
122
+ padding: 6px;
123
+ border-radius: 9999px;
124
+ background-color: var(--leaf-toast-accent);
125
+ color: var(--text-primary);
126
+ }
127
+
128
+ .leaf-toast__glyph {
129
+ display: block;
130
+ width: 14px;
131
+ height: 14px;
132
+ }
133
+
134
+ .leaf-toast__content {
135
+ display: flex;
136
+ flex: 1 1 auto;
137
+ flex-direction: column;
138
+ min-width: 0;
139
+ }
140
+
141
+ .leaf-toast__title,
142
+ .leaf-toast__description {
143
+ margin: 0;
144
+ color: var(--text-primary);
145
+ overflow-wrap: anywhere;
146
+ }
147
+
148
+ .leaf-toast__title {
149
+ font-size: var(--body-3-size);
150
+ line-height: var(--body-3-line-height);
151
+ font-weight: var(--body-3-highlight-weight);
152
+ }
153
+
154
+ .leaf-toast__description {
155
+ font-size: var(--body-4-size);
156
+ line-height: var(--body-4-line-height);
157
+ font-weight: var(--body-4-weight);
158
+ }
159
+
160
+ .leaf-toast__close {
161
+ display: inline-flex;
162
+ flex-shrink: 0;
163
+ align-items: center;
164
+ justify-content: center;
165
+ margin: 0;
166
+ padding: 0;
167
+ border: none;
168
+ border-radius: 4px;
169
+ background: transparent;
170
+ color: var(--text-primary);
171
+ font: inherit;
172
+ cursor: pointer;
173
+ appearance: none;
174
+ }
175
+
176
+ .leaf-toast__close:focus-visible {
177
+ outline: 2px solid var(--leaf-toast-accent);
178
+ outline-offset: 2px;
179
+ }
180
+
181
+ .leaf-toast__progress {
182
+ position: absolute;
183
+ bottom: 0;
184
+ left: 0;
185
+ width: 100%;
186
+ height: 4px;
187
+ background-color: color-mix(in srgb, var(--text-primary) 10%, transparent);
188
+ }
189
+
190
+ .leaf-toast__progress-bar {
191
+ width: 100%;
192
+ height: 100%;
193
+ background-color: var(--leaf-toast-accent);
194
+ transform-origin: left center;
195
+ animation: leaf-toast-progress var(--leaf-toast-duration, 4000ms) linear forwards;
196
+ }
197
+
198
+ .leaf-toast:is(:hover, :focus-within) .leaf-toast__progress-bar,
199
+ .leaf-toast[data-state="closing"] .leaf-toast__progress-bar {
200
+ animation-play-state: paused;
201
+ }
202
+
203
+ @keyframes leaf-toast-in {
204
+ from {
205
+ opacity: 0;
206
+ transform: translate(var(--leaf-toast-enter-x, 24px), var(--leaf-toast-enter-y, 0px));
207
+ }
208
+ }
209
+
210
+ @keyframes leaf-toast-out {
211
+ to {
212
+ opacity: 0;
213
+ transform: translate(var(--leaf-toast-enter-x, 24px), var(--leaf-toast-enter-y, 0px));
214
+ }
215
+ }
216
+
217
+ @keyframes leaf-toast-progress {
218
+ from {
219
+ transform: scaleX(1);
220
+ }
221
+ to {
222
+ transform: scaleX(0);
223
+ }
224
+ }
225
+
226
+ /* Giảm chuyển động: chỉ mờ dần, không trượt. Progress vẫn chạy vì nó là bộ đếm giờ. */
227
+ @media (prefers-reduced-motion: reduce) {
228
+ .leaf-toaster,
229
+ .leaf-toast {
230
+ --leaf-toast-enter-x: 0px;
231
+ --leaf-toast-enter-y: 0px;
232
+ }
233
+ }
234
+ }
package/dist/toggle.css CHANGED
@@ -25,6 +25,7 @@
25
25
  display: inline-flex;
26
26
  flex-shrink: 0;
27
27
  align-items: center;
28
+ vertical-align: middle;
28
29
  box-sizing: border-box;
29
30
  width: var(--leaf-toggle-width);
30
31
  height: var(--leaf-toggle-height);
@@ -34,7 +35,6 @@
34
35
  border-radius: 12px;
35
36
  background-color: var(--base-quaternary);
36
37
  cursor: pointer;
37
- vertical-align: middle;
38
38
  appearance: none;
39
39
  -webkit-appearance: none;
40
40
  font: inherit;
@@ -42,8 +42,9 @@
42
42
  transition: background-color 0.2s ease;
43
43
  }
44
44
 
45
- /* `display` ở trên thắng `[hidden]` của trình duyệt — khai báo lại để `hidden` luôn ẩn. */
46
- .leaf-toggle[hidden] {
45
+ /* `hidden` luôn ẩn — rule gốc set display; selector `[hidden]` specificity cao hơn nên thắng. */
46
+ .leaf-toggle[hidden],
47
+ .leaf-toggle__thumb[hidden] {
47
48
  display: none;
48
49
  }
49
50
 
package/dist/tokens.css CHANGED
@@ -262,36 +262,3 @@
262
262
  --body-5-weight: 400;
263
263
  --body-5-highlight-weight: 600;
264
264
  }
265
-
266
- /* --- ../tokens/src/spacing.css --- */
267
-
268
- /* Spacing tokens — Figma 34:1034. Dùng cho margin, padding, gap. */
269
-
270
- :root {
271
- --spacing-0: 0px;
272
- --spacing-xs: 4px;
273
- --spacing-s: 8px;
274
- --spacing-m: 12px;
275
- --spacing-l: 16px;
276
- --spacing-xl: 24px;
277
- --spacing-2xl: 36px;
278
- --spacing-3xl: 48px;
279
- --spacing-4xl: 60px;
280
- --spacing-5xl: 84px;
281
- --spacing-6xl: 120px;
282
- --spacing-7xl: 240px;
283
- }
284
-
285
- /* --- ../tokens/src/border.css --- */
286
-
287
- /* Border radius tokens — Figma 700:4390. Map sang spacing cùng bậc. */
288
-
289
- :root {
290
- --radius-0: var(--spacing-0);
291
- --radius-xs: var(--spacing-xs);
292
- --radius-s: var(--spacing-s);
293
- --radius-m: var(--spacing-m);
294
- --radius-l: var(--spacing-l);
295
- --radius-xl: var(--spacing-xl);
296
- --radius-2xl: var(--spacing-2xl);
297
- }
package/dist/tooltip.css CHANGED
@@ -14,13 +14,6 @@
14
14
  */
15
15
 
16
16
  @layer components {
17
- .leaf-tooltip-trigger {
18
- position: relative;
19
- display: inline-flex;
20
- max-width: 100%;
21
- vertical-align: middle;
22
- }
23
-
24
17
  .leaf-tooltip {
25
18
  --leaf-tooltip-pad-y: 8px;
26
19
  --leaf-tooltip-pad-x: 16px;
@@ -48,26 +41,34 @@
48
41
  pointer-events: none;
49
42
  }
50
43
 
44
+ .leaf-tooltip-trigger {
45
+ position: relative;
46
+ display: inline-flex;
47
+ max-width: 100%;
48
+ vertical-align: middle;
49
+ }
50
+
51
51
  .leaf-tooltip--portal {
52
52
  position: fixed;
53
53
  z-index: var(--leaf-z-tooltip, 110);
54
54
  }
55
55
 
56
- /* `display` của .leaf-tooltip thắng `[hidden]` của trình duyệt — bản vanilla ẩn bubble bằng hidden. */
56
+ /* `hidden` luôn ẩn — rule gốc set display; selector `[hidden]` specificity cao hơn nên thắng. */
57
57
  .leaf-tooltip-trigger[hidden],
58
- .leaf-tooltip[hidden] {
58
+ .leaf-tooltip[hidden],
59
+ .leaf-tooltip__caret[hidden] {
59
60
  display: none;
60
61
  }
61
62
 
62
63
  .leaf-tooltip__body {
63
64
  position: relative;
64
- z-index: 1;
65
- box-sizing: border-box;
65
+ z-index: 10;
66
66
  max-width: 100%;
67
+ text-align: left;
68
+ box-sizing: border-box;
67
69
  padding: var(--leaf-tooltip-pad-y) var(--leaf-tooltip-pad-x);
68
70
  border-radius: var(--leaf-tooltip-radius);
69
71
  background-color: var(--base-quaternary);
70
- text-align: left;
71
72
  word-break: break-word;
72
73
  }
73
74
 
@@ -13,9 +13,7 @@
13
13
  * weight (400 / 600 / 700 theo token). Letter spacing, margin, màu chữ không
14
14
  * thuộc stylesheet này — màu dùng class text-* riêng.
15
15
  *
16
- * Toàn bộ nằm trong `@layer components` để utility của Tailwind (`@layer
17
- * utilities`) luôn thắng: `class="heading-1 font-bold"` hay `class="body-3
18
- * text-2xl"` đều override được mà không cần important modifier.
16
+ * Toàn bộ nằm trong `@layer components` — SCSS module (ngoài layer) override được.
19
17
  */
20
18
 
21
19
  @layer components {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finhay-pro/leaf-design-system",
3
- "version": "0.1.6",
3
+ "version": "0.1.8",
4
4
  "description": "React component library của Finhay Leaf Design System",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
@@ -20,8 +20,6 @@
20
20
  "./tokens.css": "./dist/tokens.css",
21
21
  "./typography.css": "./dist/typography.css",
22
22
  "./color.css": "./dist/color.css",
23
- "./spacing.css": "./dist/spacing.css",
24
- "./border.css": "./dist/border.css",
25
23
  "./button.css": "./dist/button.css",
26
24
  "./tabs.css": "./dist/tabs.css",
27
25
  "./dialog.css": "./dist/dialog.css",
@@ -32,6 +30,15 @@
32
30
  "./toggle.css": "./dist/toggle.css",
33
31
  "./slider.css": "./dist/slider.css",
34
32
  "./tooltip.css": "./dist/tooltip.css",
33
+ "./radio.css": "./dist/radio.css",
34
+ "./checkbox.css": "./dist/checkbox.css",
35
+ "./input.css": "./dist/input.css",
36
+ "./input-otp.css": "./dist/input-otp.css",
37
+ "./input-date.css": "./dist/input-date.css",
38
+ "./input-stepper.css": "./dist/input-stepper.css",
39
+ "./calendar.css": "./dist/calendar.css",
40
+ "./toast.css": "./dist/toast.css",
41
+ "./dropdown.css": "./dist/dropdown.css",
35
42
  "./classes.css": "./dist/classes.css",
36
43
  "./styles.css": "./dist/styles.css",
37
44
  "./package.json": "./package.json"
package/dist/border.css DELETED
@@ -1,45 +0,0 @@
1
- /* @finhay-pro/leaf-design-system — generated by scripts/build-css.mjs. Do not edit. */
2
- @layer theme, base, components, utilities;
3
-
4
- /* --- src/styles/border.css --- */
5
-
6
- /*
7
- * Border radius classes — map 1:1 sang --radius-* trong @finhay/leaf-tokens
8
- * (Figma 700:4390).
9
- *
10
- * Tên class `radius-*` (không dùng `rounded-*`) để không đụng utility bo góc mặc
11
- * định của Tailwind (`rounded-xl`…). `border-*` đã dành cho màu viền.
12
- *
13
- * Hậu tố = bậc token: 0 · xs · s · m · l · xl · 2xl.
14
- * Chỉ set border-radius — width / style / color do app tự lo.
15
- */
16
-
17
- @layer utilities {
18
- .radius-0 {
19
- border-radius: var(--radius-0);
20
- }
21
-
22
- .radius-xs {
23
- border-radius: var(--radius-xs);
24
- }
25
-
26
- .radius-s {
27
- border-radius: var(--radius-s);
28
- }
29
-
30
- .radius-m {
31
- border-radius: var(--radius-m);
32
- }
33
-
34
- .radius-l {
35
- border-radius: var(--radius-l);
36
- }
37
-
38
- .radius-xl {
39
- border-radius: var(--radius-xl);
40
- }
41
-
42
- .radius-2xl {
43
- border-radius: var(--radius-2xl);
44
- }
45
- }