@finhay-pro/leaf-design-system 0.1.1
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.
- package/README.md +342 -0
- package/dist/button.css +174 -0
- package/dist/cdn/leaf-0.1.1.min.css +2 -0
- package/dist/cdn/leaf-0.1.1.min.js +2 -0
- package/dist/classes.css +681 -0
- package/dist/color.css +191 -0
- package/dist/components/Button/Button.d.ts +33 -0
- package/dist/components/Button/Button.d.ts.map +1 -0
- package/dist/components/Button/Button.js +26 -0
- package/dist/components/Button/Button.js.map +1 -0
- package/dist/components/Button/index.d.ts +2 -0
- package/dist/components/Button/index.d.ts.map +1 -0
- package/dist/components/Button/index.js +2 -0
- package/dist/components/Button/index.js.map +1 -0
- package/dist/components/Tabs/Tabs.d.ts +37 -0
- package/dist/components/Tabs/Tabs.d.ts.map +1 -0
- package/dist/components/Tabs/Tabs.js +44 -0
- package/dist/components/Tabs/Tabs.js.map +1 -0
- package/dist/components/Tabs/index.d.ts +2 -0
- package/dist/components/Tabs/index.d.ts.map +1 -0
- package/dist/components/Tabs/index.js +2 -0
- package/dist/components/Tabs/index.js.map +1 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -0
- package/dist/styles.css +914 -0
- package/dist/tabs.css +189 -0
- package/dist/tokens.css +234 -0
- package/dist/typography.css +130 -0
- package/dist/utils/joinClass.d.ts +3 -0
- package/dist/utils/joinClass.d.ts.map +1 -0
- package/dist/utils/joinClass.js +5 -0
- package/dist/utils/joinClass.js.map +1 -0
- package/package.json +55 -0
package/dist/styles.css
ADDED
|
@@ -0,0 +1,914 @@
|
|
|
1
|
+
/* @finhay-pro/leaf-design-system — generated by scripts/build-css.mjs. Do not edit. */
|
|
2
|
+
|
|
3
|
+
/* --- ../tokens/src/primitive.css --- */
|
|
4
|
+
|
|
5
|
+
/* Primitive color tokens — internal source of truth (Figma 13:2181). Do not use directly in UI. */
|
|
6
|
+
|
|
7
|
+
:root {
|
|
8
|
+
--neutral-white: #ffffff;
|
|
9
|
+
--neutral-100: #f8f8f8;
|
|
10
|
+
--neutral-200: #f0f0f0;
|
|
11
|
+
--neutral-300: #d9d9d9;
|
|
12
|
+
--neutral-400: #999999;
|
|
13
|
+
--neutral-500: #666666;
|
|
14
|
+
--neutral-600: #313235;
|
|
15
|
+
--neutral-700: #28292b;
|
|
16
|
+
--neutral-800: #171719;
|
|
17
|
+
--neutral-900: #0d0e10;
|
|
18
|
+
|
|
19
|
+
--brand-100: #dbf7d5;
|
|
20
|
+
--brand-200: #b6efac;
|
|
21
|
+
--brand-300: #92e882;
|
|
22
|
+
--brand-400: #6de059;
|
|
23
|
+
--brand-500: #49d82f;
|
|
24
|
+
--brand-600: #3aad26;
|
|
25
|
+
--brand-700: #2c821c;
|
|
26
|
+
--brand-800: #1d5613;
|
|
27
|
+
--brand-900: #0f2b09;
|
|
28
|
+
|
|
29
|
+
--purple-100: #f0ddf9;
|
|
30
|
+
--purple-200: #e1bbf4;
|
|
31
|
+
--purple-300: #d198ee;
|
|
32
|
+
--purple-400: #c276e9;
|
|
33
|
+
--purple-500: #b354e3;
|
|
34
|
+
--purple-600: #8f43b6;
|
|
35
|
+
--purple-700: #6b3288;
|
|
36
|
+
--purple-800: #48225b;
|
|
37
|
+
--purple-900: #24112d;
|
|
38
|
+
|
|
39
|
+
--red-100: #fbd9d7;
|
|
40
|
+
--red-200: #f7b4af;
|
|
41
|
+
--red-300: #f38e87;
|
|
42
|
+
--red-400: #ef695f;
|
|
43
|
+
--red-500: #eb4337;
|
|
44
|
+
--red-600: #bc362c;
|
|
45
|
+
--red-700: #8d2821;
|
|
46
|
+
--red-800: #5e1b16;
|
|
47
|
+
--red-900: #2f0d0b;
|
|
48
|
+
|
|
49
|
+
--orange-100: #fbe8cc;
|
|
50
|
+
--orange-200: #f6d299;
|
|
51
|
+
--orange-300: #f2bb66;
|
|
52
|
+
--orange-400: #eda533;
|
|
53
|
+
--orange-500: #e98e00;
|
|
54
|
+
--orange-600: #ba7200;
|
|
55
|
+
--orange-700: #8c5500;
|
|
56
|
+
--orange-800: #5d3900;
|
|
57
|
+
--orange-900: #2f1c00;
|
|
58
|
+
|
|
59
|
+
--yellow-100: #fbf5d7;
|
|
60
|
+
--yellow-200: #f6eaaf;
|
|
61
|
+
--yellow-300: #f2e086;
|
|
62
|
+
--yellow-400: #edd55e;
|
|
63
|
+
--yellow-500: #e9cb36;
|
|
64
|
+
--yellow-600: #baa22b;
|
|
65
|
+
--yellow-700: #8c7a20;
|
|
66
|
+
--yellow-800: #5d5116;
|
|
67
|
+
--yellow-900: #2f290b;
|
|
68
|
+
|
|
69
|
+
--green-100: #d8f3de;
|
|
70
|
+
--green-200: #b0e7be;
|
|
71
|
+
--green-300: #89dc9d;
|
|
72
|
+
--green-400: #61d07d;
|
|
73
|
+
--green-500: #3ac45c;
|
|
74
|
+
--green-600: #2e9d4a;
|
|
75
|
+
--green-700: #237637;
|
|
76
|
+
--green-800: #174e25;
|
|
77
|
+
--green-900: #0c2712;
|
|
78
|
+
|
|
79
|
+
--blue-100: #d4eaff;
|
|
80
|
+
--blue-200: #a9d4ff;
|
|
81
|
+
--blue-300: #7fbfff;
|
|
82
|
+
--blue-400: #54a9ff;
|
|
83
|
+
--blue-500: #2994ff;
|
|
84
|
+
--blue-600: #2176cc;
|
|
85
|
+
--blue-700: #195999;
|
|
86
|
+
--blue-800: #103b66;
|
|
87
|
+
--blue-900: #081e33;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/* --- ../tokens/src/semantic.css --- */
|
|
91
|
+
|
|
92
|
+
/*
|
|
93
|
+
* Semantic color tokens — Figma 699:3784. Map to primitives only. Dark = default.
|
|
94
|
+
*
|
|
95
|
+
* `[data-theme]` khai báo ở cả hai chiều nên attribute đặt được ở bất kỳ đâu:
|
|
96
|
+
* trên `<html>` để đổi cả trang, hoặc trên một khối để đảo theme riêng khối đó
|
|
97
|
+
* (vd. một card sáng nằm trong trang tối).
|
|
98
|
+
*/
|
|
99
|
+
|
|
100
|
+
:root,
|
|
101
|
+
[data-theme="dark"] {
|
|
102
|
+
/* Base */
|
|
103
|
+
--base-primary: var(--neutral-900);
|
|
104
|
+
--base-secondary: var(--neutral-800);
|
|
105
|
+
--base-tertiary: var(--neutral-700);
|
|
106
|
+
--base-quaternary: var(--neutral-600);
|
|
107
|
+
--base-quinary: var(--neutral-white);
|
|
108
|
+
|
|
109
|
+
/* Content / Text */
|
|
110
|
+
--text-highlight: var(--brand-500);
|
|
111
|
+
--text-primary: var(--neutral-100);
|
|
112
|
+
--text-secondary: var(--neutral-300);
|
|
113
|
+
--text-tertiary: var(--neutral-500);
|
|
114
|
+
--text-quaternary: var(--neutral-900);
|
|
115
|
+
|
|
116
|
+
/* System */
|
|
117
|
+
--system-blue: var(--blue-500);
|
|
118
|
+
--system-green: var(--green-500);
|
|
119
|
+
--system-yellow: var(--yellow-500);
|
|
120
|
+
--system-orange: var(--orange-500);
|
|
121
|
+
--system-red: var(--red-500);
|
|
122
|
+
--system-purple: var(--purple-500);
|
|
123
|
+
|
|
124
|
+
/* Button — Figma 246:1135. Brand/red giữ nguyên qua theme. */
|
|
125
|
+
--button-base-primary: var(--brand-500);
|
|
126
|
+
--button-base-destruction: var(--red-500);
|
|
127
|
+
--button-base-disable: var(--neutral-600);
|
|
128
|
+
--button-base-secondary: var(--brand-800);
|
|
129
|
+
--button-base-secondary-destruction: var(--red-800);
|
|
130
|
+
--button-base-tertiary: var(--neutral-600);
|
|
131
|
+
--button-content-primary: var(--neutral-900);
|
|
132
|
+
--button-content-secondary: var(--brand-500);
|
|
133
|
+
--button-content-destruction: var(--red-500);
|
|
134
|
+
--button-content-disable: var(--neutral-500);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
[data-theme="light"] {
|
|
138
|
+
--base-primary: var(--neutral-white);
|
|
139
|
+
--base-secondary: var(--neutral-100);
|
|
140
|
+
--base-tertiary: var(--neutral-200);
|
|
141
|
+
--base-quaternary: var(--neutral-300);
|
|
142
|
+
--base-quinary: var(--neutral-900);
|
|
143
|
+
|
|
144
|
+
--text-highlight: var(--brand-500);
|
|
145
|
+
--text-primary: var(--neutral-900);
|
|
146
|
+
--text-secondary: var(--neutral-500);
|
|
147
|
+
/*
|
|
148
|
+
* Không map gương theo dark (neutral-300): trên nền sáng thì neutral-300
|
|
149
|
+
* chỉ còn 1.41:1, gần như vô hình. neutral-400 cho 2.85:1 — ngang với
|
|
150
|
+
* tertiary ở dark (3.36:1) — mà vẫn tách bậc khỏi secondary (neutral-500).
|
|
151
|
+
*/
|
|
152
|
+
--text-tertiary: var(--neutral-400);
|
|
153
|
+
--text-quaternary: var(--neutral-white);
|
|
154
|
+
|
|
155
|
+
--system-blue: var(--blue-500);
|
|
156
|
+
--system-green: var(--green-500);
|
|
157
|
+
--system-yellow: var(--yellow-500);
|
|
158
|
+
--system-orange: var(--orange-500);
|
|
159
|
+
--system-red: var(--red-500);
|
|
160
|
+
--system-purple: var(--purple-500);
|
|
161
|
+
|
|
162
|
+
--button-base-primary: var(--brand-500);
|
|
163
|
+
--button-base-destruction: var(--red-500);
|
|
164
|
+
--button-base-disable: var(--neutral-300);
|
|
165
|
+
--button-base-secondary: var(--brand-100);
|
|
166
|
+
--button-base-secondary-destruction: var(--red-100);
|
|
167
|
+
--button-base-tertiary: var(--neutral-200);
|
|
168
|
+
--button-content-primary: var(--neutral-900);
|
|
169
|
+
--button-content-secondary: var(--brand-700);
|
|
170
|
+
--button-content-destruction: var(--red-600);
|
|
171
|
+
--button-content-disable: var(--neutral-400);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
/* --- ../tokens/src/typography.css --- */
|
|
175
|
+
|
|
176
|
+
/* Typography tokens — Desktop Figma 749:414. Inter; letter-spacing 0. */
|
|
177
|
+
|
|
178
|
+
:root {
|
|
179
|
+
/*
|
|
180
|
+
* `--font-inter` do next/font đặt trong app Next.js. Trang khác (HTML tĩnh) không có
|
|
181
|
+
* biến này → phải có fallback, nếu không cả `--font-sans` thành invalid và rơi về font
|
|
182
|
+
* mặc định của trình duyệt.
|
|
183
|
+
*/
|
|
184
|
+
--font-sans: var(--font-inter, "Inter"), ui-sans-serif, system-ui, sans-serif;
|
|
185
|
+
|
|
186
|
+
--display-1-size: 122px;
|
|
187
|
+
--display-1-line-height: 134px;
|
|
188
|
+
--display-1-weight: 700;
|
|
189
|
+
|
|
190
|
+
--display-2-size: 76px;
|
|
191
|
+
--display-2-line-height: 88px;
|
|
192
|
+
--display-2-weight: 600;
|
|
193
|
+
|
|
194
|
+
--display-3-size: 60px;
|
|
195
|
+
--display-3-line-height: 72px;
|
|
196
|
+
--display-3-weight: 600;
|
|
197
|
+
|
|
198
|
+
--heading-1-size: 36px;
|
|
199
|
+
--heading-1-line-height: 48px;
|
|
200
|
+
--heading-1-weight: 600;
|
|
201
|
+
|
|
202
|
+
--heading-2-size: 28px;
|
|
203
|
+
--heading-2-line-height: 36px;
|
|
204
|
+
--heading-2-weight: 600;
|
|
205
|
+
|
|
206
|
+
--heading-3-size: 24px;
|
|
207
|
+
--heading-3-line-height: 32px;
|
|
208
|
+
--heading-3-weight: 600;
|
|
209
|
+
|
|
210
|
+
--body-1-size: 20px;
|
|
211
|
+
--body-1-line-height: 30px;
|
|
212
|
+
--body-1-weight: 400;
|
|
213
|
+
--body-1-highlight-weight: 600;
|
|
214
|
+
|
|
215
|
+
--body-2-size: 18px;
|
|
216
|
+
--body-2-line-height: 28px;
|
|
217
|
+
--body-2-weight: 400;
|
|
218
|
+
--body-2-highlight-weight: 600;
|
|
219
|
+
|
|
220
|
+
--body-3-size: 16px;
|
|
221
|
+
--body-3-line-height: 24px;
|
|
222
|
+
--body-3-weight: 400;
|
|
223
|
+
--body-3-highlight-weight: 600;
|
|
224
|
+
|
|
225
|
+
--body-4-size: 14px;
|
|
226
|
+
--body-4-line-height: 20px;
|
|
227
|
+
--body-4-weight: 400;
|
|
228
|
+
--body-4-highlight-weight: 600;
|
|
229
|
+
|
|
230
|
+
--body-5-size: 12px;
|
|
231
|
+
--body-5-line-height: 16px;
|
|
232
|
+
--body-5-weight: 400;
|
|
233
|
+
--body-5-highlight-weight: 600;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
/* --- src/components/Button/button.css --- */
|
|
237
|
+
|
|
238
|
+
/*
|
|
239
|
+
* Button — Figma 246:1135.
|
|
240
|
+
*
|
|
241
|
+
* Variant màu qua data-priority / data-status; size qua data-size; icon-only
|
|
242
|
+
* qua data-icon-only. Disabled dùng attribute native `:disabled` (và
|
|
243
|
+
* `aria-disabled`) nên không cần class riêng.
|
|
244
|
+
*
|
|
245
|
+
* Toàn bộ hình thức (kể cả typography của label) nằm ở đây — React chỉ gắn
|
|
246
|
+
* attribute, nên HTML tĩnh viết cùng markup là ra cùng kết quả. Thiếu attribute
|
|
247
|
+
* nào thì lấy mặc định giống prop của React: lg · primary · normal.
|
|
248
|
+
*
|
|
249
|
+
* Variant chỉ đổi custom property `--leaf-button-*`; thuộc tính thật chỉ khai
|
|
250
|
+
* báo một lần ở `.leaf-button`.
|
|
251
|
+
*/
|
|
252
|
+
|
|
253
|
+
@layer components {
|
|
254
|
+
.leaf-button {
|
|
255
|
+
/* Mặc định: size lg */
|
|
256
|
+
--leaf-button-height: 56px;
|
|
257
|
+
--leaf-button-padding: 8px 24px;
|
|
258
|
+
--leaf-button-icon-only-padding: 8px;
|
|
259
|
+
--leaf-button-gap: 16px;
|
|
260
|
+
--leaf-button-icon-size: 30px;
|
|
261
|
+
--leaf-button-font-size: var(--body-1-size);
|
|
262
|
+
--leaf-button-line-height: var(--body-1-line-height);
|
|
263
|
+
--leaf-button-font-weight: var(--body-1-highlight-weight);
|
|
264
|
+
|
|
265
|
+
/* Mặc định: priority primary, status normal */
|
|
266
|
+
--leaf-button-bg: var(--button-base-primary);
|
|
267
|
+
--leaf-button-fg: var(--button-content-primary);
|
|
268
|
+
|
|
269
|
+
display: inline-flex;
|
|
270
|
+
align-items: center;
|
|
271
|
+
justify-content: center;
|
|
272
|
+
height: var(--leaf-button-height);
|
|
273
|
+
gap: var(--leaf-button-gap);
|
|
274
|
+
border: none;
|
|
275
|
+
margin: 0;
|
|
276
|
+
padding: var(--leaf-button-padding);
|
|
277
|
+
cursor: pointer;
|
|
278
|
+
border-radius: 1000px;
|
|
279
|
+
background-color: var(--leaf-button-bg);
|
|
280
|
+
color: var(--leaf-button-fg);
|
|
281
|
+
text-align: center;
|
|
282
|
+
white-space: nowrap;
|
|
283
|
+
font: inherit;
|
|
284
|
+
font-size: var(--leaf-button-font-size);
|
|
285
|
+
line-height: var(--leaf-button-line-height);
|
|
286
|
+
font-weight: var(--leaf-button-font-weight);
|
|
287
|
+
text-decoration: none;
|
|
288
|
+
box-sizing: border-box;
|
|
289
|
+
vertical-align: middle;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
.leaf-button__icon {
|
|
293
|
+
display: inline-flex;
|
|
294
|
+
flex-shrink: 0;
|
|
295
|
+
align-items: center;
|
|
296
|
+
justify-content: center;
|
|
297
|
+
width: var(--leaf-button-icon-size);
|
|
298
|
+
height: var(--leaf-button-icon-size);
|
|
299
|
+
font-size: var(--leaf-button-icon-size);
|
|
300
|
+
line-height: 1;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
.leaf-button__icon > svg {
|
|
304
|
+
display: block;
|
|
305
|
+
width: 1em;
|
|
306
|
+
height: 1em;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
/* ── Size ────────────────────────────────────────────────────────────── */
|
|
310
|
+
|
|
311
|
+
.leaf-button[data-size="md"] {
|
|
312
|
+
--leaf-button-height: 40px;
|
|
313
|
+
--leaf-button-padding: 8px 16px;
|
|
314
|
+
--leaf-button-gap: 8px;
|
|
315
|
+
--leaf-button-icon-size: 24px;
|
|
316
|
+
--leaf-button-font-size: var(--body-3-size);
|
|
317
|
+
--leaf-button-line-height: var(--body-3-line-height);
|
|
318
|
+
--leaf-button-font-weight: var(--body-3-highlight-weight);
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
.leaf-button[data-size="sm"] {
|
|
322
|
+
--leaf-button-height: 28px;
|
|
323
|
+
--leaf-button-padding: 4px 8px;
|
|
324
|
+
--leaf-button-icon-only-padding: 4px;
|
|
325
|
+
--leaf-button-gap: 4px;
|
|
326
|
+
--leaf-button-icon-size: 20px;
|
|
327
|
+
--leaf-button-font-size: var(--body-4-size);
|
|
328
|
+
--leaf-button-line-height: var(--body-4-line-height);
|
|
329
|
+
--leaf-button-font-weight: var(--body-4-highlight-weight);
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
/* Icon-only: khung vuông (tròn nhờ border-radius) cạnh = height. */
|
|
333
|
+
.leaf-button[data-icon-only="true"] {
|
|
334
|
+
width: var(--leaf-button-height);
|
|
335
|
+
padding: var(--leaf-button-icon-only-padding);
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
/* Ghost không có khung — bỏ height/padding cố định. Đứng sau size để thắng. */
|
|
339
|
+
.leaf-button[data-priority="ghost"] {
|
|
340
|
+
--leaf-button-height: auto;
|
|
341
|
+
--leaf-button-padding: 0;
|
|
342
|
+
--leaf-button-icon-only-padding: 0;
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
.leaf-button[data-priority="ghost"][data-icon-only="true"] {
|
|
346
|
+
border-radius: 0;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
/* ── Priority × status ───────────────────────────────────────────────── */
|
|
350
|
+
|
|
351
|
+
/* Không có data-priority = primary. */
|
|
352
|
+
.leaf-button[data-status="destruction"] {
|
|
353
|
+
--leaf-button-bg: var(--button-base-destruction);
|
|
354
|
+
--leaf-button-fg: var(--button-content-primary);
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
.leaf-button[data-priority="secondary"] {
|
|
358
|
+
--leaf-button-bg: var(--button-base-secondary);
|
|
359
|
+
--leaf-button-fg: var(--button-content-secondary);
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
.leaf-button[data-priority="secondary"][data-status="destruction"] {
|
|
363
|
+
--leaf-button-bg: var(--button-base-secondary-destruction);
|
|
364
|
+
--leaf-button-fg: var(--button-content-destruction);
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
.leaf-button[data-priority="tertiary"] {
|
|
368
|
+
--leaf-button-bg: var(--button-base-tertiary);
|
|
369
|
+
--leaf-button-fg: var(--button-content-secondary);
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
.leaf-button[data-priority="tertiary"][data-status="destruction"] {
|
|
373
|
+
--leaf-button-bg: var(--button-base-tertiary);
|
|
374
|
+
--leaf-button-fg: var(--button-content-destruction);
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
.leaf-button[data-priority="ghost"] {
|
|
378
|
+
--leaf-button-bg: transparent;
|
|
379
|
+
--leaf-button-fg: var(--button-content-secondary);
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
.leaf-button[data-priority="ghost"][data-status="destruction"] {
|
|
383
|
+
--leaf-button-bg: transparent;
|
|
384
|
+
--leaf-button-fg: var(--button-content-destruction);
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
/*
|
|
388
|
+
* Disabled — Primary / Ghost có trong Figma; Secondary/Tertiary dùng cùng token.
|
|
389
|
+
* Specificity (0,3,0) và đứng cuối để thắng mọi tổ hợp priority × status.
|
|
390
|
+
*/
|
|
391
|
+
.leaf-button:disabled:not([data-priority="ghost"]),
|
|
392
|
+
.leaf-button[aria-disabled="true"]:not([data-priority="ghost"]) {
|
|
393
|
+
--leaf-button-bg: var(--button-base-disable);
|
|
394
|
+
--leaf-button-fg: var(--button-content-disable);
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
.leaf-button[data-priority="ghost"]:disabled,
|
|
398
|
+
.leaf-button[data-priority="ghost"][aria-disabled="true"] {
|
|
399
|
+
--leaf-button-bg: transparent;
|
|
400
|
+
--leaf-button-fg: var(--button-content-disable);
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
.leaf-button:disabled,
|
|
404
|
+
.leaf-button[aria-disabled="true"] {
|
|
405
|
+
cursor: not-allowed;
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
/* --- src/components/Tabs/tabs.css --- */
|
|
410
|
+
|
|
411
|
+
/*
|
|
412
|
+
* Tabs — Figma 712:6996 (Tabs Items).
|
|
413
|
+
*
|
|
414
|
+
* `variant` map type trong Figma: subcontent | title | functional | buy | sell.
|
|
415
|
+
* Size: xl | lg | md | sm (tuỳ variant — Title chỉ S, Functional chỉ M, Buy/Sell chỉ L).
|
|
416
|
+
*
|
|
417
|
+
* Variant / size đặt trên tablist (`.leaf-tabs[data-variant][data-size]`), từng
|
|
418
|
+
* `.leaf-tab` chỉ cần `aria-selected`. Toàn bộ hình thức (kể cả typography của
|
|
419
|
+
* label) nằm ở đây — React và `leaf.js` chỉ gắn attribute, nên HTML tĩnh viết
|
|
420
|
+
* cùng markup là ra cùng kết quả.
|
|
421
|
+
*
|
|
422
|
+
* Mặc định khi thiếu attribute: variant subcontent, size xl. Chỉ Subcontent đổi
|
|
423
|
+
* theo size; các variant khác có một size duy nhất nên không đọc `data-size`.
|
|
424
|
+
*/
|
|
425
|
+
|
|
426
|
+
@layer components {
|
|
427
|
+
.leaf-tabs {
|
|
428
|
+
/* Kích thước của Subcontent — mặc định xl, đổi theo data-size bên dưới. */
|
|
429
|
+
--leaf-tab-padding: 12px 16px;
|
|
430
|
+
--leaf-tab-gap: 8px;
|
|
431
|
+
--leaf-tab-font-size: var(--body-3-size);
|
|
432
|
+
--leaf-tab-line-height: var(--body-3-line-height);
|
|
433
|
+
--leaf-tab-font-weight: var(--body-3-highlight-weight);
|
|
434
|
+
|
|
435
|
+
display: flex;
|
|
436
|
+
flex-wrap: wrap;
|
|
437
|
+
align-items: center;
|
|
438
|
+
gap: 12px;
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
.leaf-tabs[data-size="lg"] {
|
|
442
|
+
--leaf-tab-padding: 8px 16px;
|
|
443
|
+
--leaf-tab-gap: 8px;
|
|
444
|
+
--leaf-tab-font-size: var(--body-4-size);
|
|
445
|
+
--leaf-tab-line-height: var(--body-4-line-height);
|
|
446
|
+
--leaf-tab-font-weight: var(--body-4-highlight-weight);
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
.leaf-tabs[data-size="md"] {
|
|
450
|
+
--leaf-tab-padding: 4px 12px;
|
|
451
|
+
--leaf-tab-gap: normal;
|
|
452
|
+
--leaf-tab-font-size: var(--body-4-size);
|
|
453
|
+
--leaf-tab-line-height: var(--body-4-line-height);
|
|
454
|
+
--leaf-tab-font-weight: var(--body-4-weight);
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
.leaf-tabs[data-size="sm"] {
|
|
458
|
+
--leaf-tab-padding: 4px 12px;
|
|
459
|
+
--leaf-tab-gap: normal;
|
|
460
|
+
--leaf-tab-font-size: var(--body-5-size);
|
|
461
|
+
--leaf-tab-line-height: var(--body-5-line-height);
|
|
462
|
+
--leaf-tab-font-weight: var(--body-5-weight);
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
.leaf-tab {
|
|
466
|
+
display: inline-flex;
|
|
467
|
+
align-items: center;
|
|
468
|
+
justify-content: center;
|
|
469
|
+
border: none;
|
|
470
|
+
margin: 0;
|
|
471
|
+
padding: 0;
|
|
472
|
+
cursor: pointer;
|
|
473
|
+
background-color: transparent;
|
|
474
|
+
color: inherit;
|
|
475
|
+
font: inherit;
|
|
476
|
+
text-align: center;
|
|
477
|
+
white-space: nowrap;
|
|
478
|
+
box-sizing: border-box;
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
.leaf-tab:disabled,
|
|
482
|
+
.leaf-tab[aria-disabled="true"] {
|
|
483
|
+
cursor: not-allowed;
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
/* ── Subcontent (pill) — cũng là mặc định khi không có data-variant ──── */
|
|
487
|
+
|
|
488
|
+
.leaf-tabs:is(:not([data-variant]), [data-variant="subcontent"]) .leaf-tab {
|
|
489
|
+
gap: var(--leaf-tab-gap);
|
|
490
|
+
padding: var(--leaf-tab-padding);
|
|
491
|
+
border-radius: 1000px;
|
|
492
|
+
background-color: var(--base-tertiary);
|
|
493
|
+
color: var(--text-secondary);
|
|
494
|
+
font-size: var(--leaf-tab-font-size);
|
|
495
|
+
line-height: var(--leaf-tab-line-height);
|
|
496
|
+
font-weight: var(--leaf-tab-font-weight);
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
.leaf-tabs:is(:not([data-variant]), [data-variant="subcontent"])
|
|
500
|
+
.leaf-tab[aria-selected="true"] {
|
|
501
|
+
background-color: var(--base-quinary);
|
|
502
|
+
color: var(--text-quaternary);
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
/* ── Title (underline) ───────────────────────────────────────────────── */
|
|
506
|
+
|
|
507
|
+
.leaf-tabs[data-variant="title"] .leaf-tab {
|
|
508
|
+
flex-direction: column;
|
|
509
|
+
gap: 4px;
|
|
510
|
+
min-width: 100px;
|
|
511
|
+
color: var(--text-secondary);
|
|
512
|
+
font-size: var(--body-4-size);
|
|
513
|
+
line-height: var(--body-4-line-height);
|
|
514
|
+
font-weight: var(--body-4-weight);
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
.leaf-tabs[data-variant="title"] .leaf-tab[aria-selected="true"] {
|
|
518
|
+
color: var(--text-primary);
|
|
519
|
+
font-weight: var(--body-4-highlight-weight);
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
.leaf-tabs[data-variant="title"] .leaf-tab::after {
|
|
523
|
+
content: "";
|
|
524
|
+
display: block;
|
|
525
|
+
width: 100%;
|
|
526
|
+
height: 2px;
|
|
527
|
+
background-color: var(--text-primary);
|
|
528
|
+
opacity: 0;
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
.leaf-tabs[data-variant="title"] .leaf-tab[aria-selected="true"]::after {
|
|
532
|
+
opacity: 1;
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
/* ── Functional ──────────────────────────────────────────────────────── */
|
|
536
|
+
|
|
537
|
+
.leaf-tabs[data-variant="functional"] .leaf-tab {
|
|
538
|
+
height: 24px;
|
|
539
|
+
min-width: 100px;
|
|
540
|
+
padding: 4px 24px;
|
|
541
|
+
border-radius: 100px;
|
|
542
|
+
background-color: var(--base-tertiary);
|
|
543
|
+
color: var(--button-content-disable);
|
|
544
|
+
font-size: var(--body-5-size);
|
|
545
|
+
line-height: var(--body-5-line-height);
|
|
546
|
+
font-weight: var(--body-5-weight);
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
.leaf-tabs[data-variant="functional"] .leaf-tab[aria-selected="true"] {
|
|
550
|
+
background-color: var(--button-base-primary);
|
|
551
|
+
color: var(--button-content-primary);
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
/* ── Buy / Sell ──────────────────────────────────────────────────────── */
|
|
555
|
+
|
|
556
|
+
.leaf-tabs:is([data-variant="buy"], [data-variant="sell"]) .leaf-tab {
|
|
557
|
+
min-width: 100px;
|
|
558
|
+
width: auto;
|
|
559
|
+
gap: 4px;
|
|
560
|
+
padding: 6px 4px;
|
|
561
|
+
border-radius: 100px;
|
|
562
|
+
color: var(--text-primary);
|
|
563
|
+
font-size: var(--body-5-size);
|
|
564
|
+
line-height: var(--body-5-line-height);
|
|
565
|
+
font-weight: var(--body-5-weight);
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
.leaf-tabs:is([data-variant="buy"], [data-variant="sell"]) .leaf-tab[aria-selected="true"] {
|
|
569
|
+
font-weight: var(--body-5-highlight-weight);
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
.leaf-tabs[data-variant="buy"] .leaf-tab[aria-selected="true"] {
|
|
573
|
+
background-color: var(--button-base-secondary);
|
|
574
|
+
color: var(--text-highlight);
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
.leaf-tabs[data-variant="sell"] .leaf-tab[aria-selected="true"] {
|
|
578
|
+
background-color: var(--button-base-secondary-destruction);
|
|
579
|
+
color: var(--button-content-destruction);
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
.leaf-tab__label,
|
|
583
|
+
.leaf-tab__addon {
|
|
584
|
+
display: inline-flex;
|
|
585
|
+
align-items: center;
|
|
586
|
+
justify-content: center;
|
|
587
|
+
line-height: inherit;
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
.leaf-tab__addon > svg {
|
|
591
|
+
display: block;
|
|
592
|
+
width: 1em;
|
|
593
|
+
height: 1em;
|
|
594
|
+
}
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
/* --- src/styles/color.css --- */
|
|
598
|
+
|
|
599
|
+
/*
|
|
600
|
+
* Color classes — map 1:1 sang semantic token trong @finhay/leaf-tokens.
|
|
601
|
+
*
|
|
602
|
+
* Quy tắc tên: **tiền tố nói thuộc tính, phần sau nói vai trò của token**.
|
|
603
|
+
*
|
|
604
|
+
* text-* → color (text-primary, text-red)
|
|
605
|
+
* base-* → background-color (base-primary, base-red)
|
|
606
|
+
* border-* → border-color (border-primary, border-red)
|
|
607
|
+
*
|
|
608
|
+
* Ba bộ dùng chung một hậu tố nên đọc là đoán được: `text-red` / `base-red` /
|
|
609
|
+
* `border-red`, `text-primary` / `base-primary` / `border-primary`. Nhóm system
|
|
610
|
+
* bỏ chữ `system` trong tên class (token vẫn là `--system-red`), còn `border-*`
|
|
611
|
+
* lấy màu từ thang base vì viền luôn là màu bề mặt.
|
|
612
|
+
*
|
|
613
|
+
* Mỗi class chỉ set đúng 1 thuộc tính (color / background-color / border-color)
|
|
614
|
+
* — border-width và border-style do app tự lo. Class tự đổi giá trị theo
|
|
615
|
+
* `[data-theme="light"]` vì nó trỏ vào var, không hard-code màu.
|
|
616
|
+
*
|
|
617
|
+
* Chỉ semantic token mới có class. Primitive (--neutral-500, --brand-300…) là
|
|
618
|
+
* nguồn nội bộ, không dùng thẳng trong UI.
|
|
619
|
+
*
|
|
620
|
+
* ─ Vì sao `@layer utilities` ─────────────────────────────────────────────────
|
|
621
|
+
*
|
|
622
|
+
* Màu của Leaf là token gốc, trùng tên thì phải thắng. Đặt chung layer với
|
|
623
|
+
* utility của Tailwind, và app import file này SAU `@import "tailwindcss"`, nên
|
|
624
|
+
* khi app cũng khai báo `--color-primary` / `--color-red` trong `@theme` thì
|
|
625
|
+
* `.text-primary` của Leaf (cùng specificity, đứng sau) là cái có hiệu lực.
|
|
626
|
+
*
|
|
627
|
+
* Biến thể trạng thái vẫn override được vì pseudo-class cộng thêm specificity:
|
|
628
|
+
* `hover:text-[var(--text-highlight)]`, `focus:…` thắng bình thường. Riêng biến
|
|
629
|
+
* thể responsive (`md:`, `lg:`) cùng specificity và được Tailwind ghi ra trước
|
|
630
|
+
* file này nên phải thêm important modifier: `md:text-[var(--text-secondary)]!`.
|
|
631
|
+
*/
|
|
632
|
+
|
|
633
|
+
@layer utilities {
|
|
634
|
+
/* Text color — content */
|
|
635
|
+
|
|
636
|
+
.text-highlight {
|
|
637
|
+
color: var(--text-highlight);
|
|
638
|
+
}
|
|
639
|
+
|
|
640
|
+
.text-primary {
|
|
641
|
+
color: var(--text-primary);
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
.text-secondary {
|
|
645
|
+
color: var(--text-secondary);
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
.text-tertiary {
|
|
649
|
+
color: var(--text-tertiary);
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
.text-quaternary {
|
|
653
|
+
color: var(--text-quaternary);
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
/* Text color — system */
|
|
657
|
+
|
|
658
|
+
.text-blue {
|
|
659
|
+
color: var(--system-blue);
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
.text-green {
|
|
663
|
+
color: var(--system-green);
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
.text-yellow {
|
|
667
|
+
color: var(--system-yellow);
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
.text-orange {
|
|
671
|
+
color: var(--system-orange);
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
.text-red {
|
|
675
|
+
color: var(--system-red);
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
.text-purple {
|
|
679
|
+
color: var(--system-purple);
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
/* Background — base */
|
|
683
|
+
|
|
684
|
+
.base-highlight {
|
|
685
|
+
background-color: var(--text-highlight);
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
.base-primary {
|
|
689
|
+
background-color: var(--base-primary);
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
.base-secondary {
|
|
693
|
+
background-color: var(--base-secondary);
|
|
694
|
+
}
|
|
695
|
+
|
|
696
|
+
.base-tertiary {
|
|
697
|
+
background-color: var(--base-tertiary);
|
|
698
|
+
}
|
|
699
|
+
|
|
700
|
+
.base-quaternary {
|
|
701
|
+
background-color: var(--base-quaternary);
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
.base-quinary {
|
|
705
|
+
background-color: var(--base-quinary);
|
|
706
|
+
}
|
|
707
|
+
|
|
708
|
+
/* Background — system */
|
|
709
|
+
|
|
710
|
+
.base-blue {
|
|
711
|
+
background-color: var(--system-blue);
|
|
712
|
+
}
|
|
713
|
+
|
|
714
|
+
.base-green {
|
|
715
|
+
background-color: var(--system-green);
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
.base-yellow {
|
|
719
|
+
background-color: var(--system-yellow);
|
|
720
|
+
}
|
|
721
|
+
|
|
722
|
+
.base-orange {
|
|
723
|
+
background-color: var(--system-orange);
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
.base-red {
|
|
727
|
+
background-color: var(--system-red);
|
|
728
|
+
}
|
|
729
|
+
|
|
730
|
+
.base-purple {
|
|
731
|
+
background-color: var(--system-purple);
|
|
732
|
+
}
|
|
733
|
+
|
|
734
|
+
/* Border color — base */
|
|
735
|
+
|
|
736
|
+
.border-highlight {
|
|
737
|
+
border-color: var(--text-highlight);
|
|
738
|
+
}
|
|
739
|
+
|
|
740
|
+
.border-primary {
|
|
741
|
+
border-color: var(--base-primary);
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
.border-secondary {
|
|
745
|
+
border-color: var(--base-secondary);
|
|
746
|
+
}
|
|
747
|
+
|
|
748
|
+
.border-tertiary {
|
|
749
|
+
border-color: var(--base-tertiary);
|
|
750
|
+
}
|
|
751
|
+
|
|
752
|
+
.border-quaternary {
|
|
753
|
+
border-color: var(--base-quaternary);
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
.border-quinary {
|
|
757
|
+
border-color: var(--base-quinary);
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
/* Border color — system */
|
|
761
|
+
|
|
762
|
+
.border-blue {
|
|
763
|
+
border-color: var(--system-blue);
|
|
764
|
+
}
|
|
765
|
+
|
|
766
|
+
.border-green {
|
|
767
|
+
border-color: var(--system-green);
|
|
768
|
+
}
|
|
769
|
+
|
|
770
|
+
.border-yellow {
|
|
771
|
+
border-color: var(--system-yellow);
|
|
772
|
+
}
|
|
773
|
+
|
|
774
|
+
.border-orange {
|
|
775
|
+
border-color: var(--system-orange);
|
|
776
|
+
}
|
|
777
|
+
|
|
778
|
+
.border-red {
|
|
779
|
+
border-color: var(--system-red);
|
|
780
|
+
}
|
|
781
|
+
|
|
782
|
+
.border-purple {
|
|
783
|
+
border-color: var(--system-purple);
|
|
784
|
+
}
|
|
785
|
+
}
|
|
786
|
+
|
|
787
|
+
/* --- src/styles/typography.css --- */
|
|
788
|
+
|
|
789
|
+
/*
|
|
790
|
+
* Typography classes — map 1:1 sang token trong @finhay/leaf-tokens.
|
|
791
|
+
*
|
|
792
|
+
* Tên class trùng đúng tên token trong Figma, không có prefix: đọc DOM là biết
|
|
793
|
+
* ngay style đang dùng, và không cần import gì trong JS để dùng được.
|
|
794
|
+
*
|
|
795
|
+
* Mỗi class chỉ set đúng 3 thuộc tính: font-size, line-height, font-weight.
|
|
796
|
+
* Font family, letter spacing, margin, màu chữ… không thuộc phạm vi của
|
|
797
|
+
* stylesheet này — app tự setup ở tầng global nếu cần.
|
|
798
|
+
*
|
|
799
|
+
* Toàn bộ nằm trong `@layer components` để utility của Tailwind (`@layer
|
|
800
|
+
* utilities`) luôn thắng: `class="heading-1 font-bold"` hay `class="body-3
|
|
801
|
+
* text-2xl"` đều override được mà không cần important modifier.
|
|
802
|
+
*/
|
|
803
|
+
|
|
804
|
+
@layer components {
|
|
805
|
+
/* Display */
|
|
806
|
+
|
|
807
|
+
.display-1 {
|
|
808
|
+
font-size: var(--display-1-size);
|
|
809
|
+
line-height: var(--display-1-line-height);
|
|
810
|
+
font-weight: var(--display-1-weight);
|
|
811
|
+
}
|
|
812
|
+
|
|
813
|
+
.display-2 {
|
|
814
|
+
font-size: var(--display-2-size);
|
|
815
|
+
line-height: var(--display-2-line-height);
|
|
816
|
+
font-weight: var(--display-2-weight);
|
|
817
|
+
}
|
|
818
|
+
|
|
819
|
+
.display-3 {
|
|
820
|
+
font-size: var(--display-3-size);
|
|
821
|
+
line-height: var(--display-3-line-height);
|
|
822
|
+
font-weight: var(--display-3-weight);
|
|
823
|
+
}
|
|
824
|
+
|
|
825
|
+
/* Heading */
|
|
826
|
+
|
|
827
|
+
.heading-1 {
|
|
828
|
+
font-size: var(--heading-1-size);
|
|
829
|
+
line-height: var(--heading-1-line-height);
|
|
830
|
+
font-weight: var(--heading-1-weight);
|
|
831
|
+
}
|
|
832
|
+
|
|
833
|
+
.heading-2 {
|
|
834
|
+
font-size: var(--heading-2-size);
|
|
835
|
+
line-height: var(--heading-2-line-height);
|
|
836
|
+
font-weight: var(--heading-2-weight);
|
|
837
|
+
}
|
|
838
|
+
|
|
839
|
+
.heading-3 {
|
|
840
|
+
font-size: var(--heading-3-size);
|
|
841
|
+
line-height: var(--heading-3-line-height);
|
|
842
|
+
font-weight: var(--heading-3-weight);
|
|
843
|
+
}
|
|
844
|
+
|
|
845
|
+
/* Body 1 */
|
|
846
|
+
|
|
847
|
+
.body-1 {
|
|
848
|
+
font-size: var(--body-1-size);
|
|
849
|
+
line-height: var(--body-1-line-height);
|
|
850
|
+
font-weight: var(--body-1-weight);
|
|
851
|
+
}
|
|
852
|
+
|
|
853
|
+
.body-1-highlight {
|
|
854
|
+
font-size: var(--body-1-size);
|
|
855
|
+
line-height: var(--body-1-line-height);
|
|
856
|
+
font-weight: var(--body-1-highlight-weight);
|
|
857
|
+
}
|
|
858
|
+
|
|
859
|
+
/* Body 2 */
|
|
860
|
+
|
|
861
|
+
.body-2 {
|
|
862
|
+
font-size: var(--body-2-size);
|
|
863
|
+
line-height: var(--body-2-line-height);
|
|
864
|
+
font-weight: var(--body-2-weight);
|
|
865
|
+
}
|
|
866
|
+
|
|
867
|
+
.body-2-highlight {
|
|
868
|
+
font-size: var(--body-2-size);
|
|
869
|
+
line-height: var(--body-2-line-height);
|
|
870
|
+
font-weight: var(--body-2-highlight-weight);
|
|
871
|
+
}
|
|
872
|
+
|
|
873
|
+
/* Body 3 */
|
|
874
|
+
|
|
875
|
+
.body-3 {
|
|
876
|
+
font-size: var(--body-3-size);
|
|
877
|
+
line-height: var(--body-3-line-height);
|
|
878
|
+
font-weight: var(--body-3-weight);
|
|
879
|
+
}
|
|
880
|
+
|
|
881
|
+
.body-3-highlight {
|
|
882
|
+
font-size: var(--body-3-size);
|
|
883
|
+
line-height: var(--body-3-line-height);
|
|
884
|
+
font-weight: var(--body-3-highlight-weight);
|
|
885
|
+
}
|
|
886
|
+
|
|
887
|
+
/* Body 4 */
|
|
888
|
+
|
|
889
|
+
.body-4 {
|
|
890
|
+
font-size: var(--body-4-size);
|
|
891
|
+
line-height: var(--body-4-line-height);
|
|
892
|
+
font-weight: var(--body-4-weight);
|
|
893
|
+
}
|
|
894
|
+
|
|
895
|
+
.body-4-highlight {
|
|
896
|
+
font-size: var(--body-4-size);
|
|
897
|
+
line-height: var(--body-4-line-height);
|
|
898
|
+
font-weight: var(--body-4-highlight-weight);
|
|
899
|
+
}
|
|
900
|
+
|
|
901
|
+
/* Body 5 */
|
|
902
|
+
|
|
903
|
+
.body-5 {
|
|
904
|
+
font-size: var(--body-5-size);
|
|
905
|
+
line-height: var(--body-5-line-height);
|
|
906
|
+
font-weight: var(--body-5-weight);
|
|
907
|
+
}
|
|
908
|
+
|
|
909
|
+
.body-5-highlight {
|
|
910
|
+
font-size: var(--body-5-size);
|
|
911
|
+
line-height: var(--body-5-line-height);
|
|
912
|
+
font-weight: var(--body-5-highlight-weight);
|
|
913
|
+
}
|
|
914
|
+
}
|