@biza-gov/token-css 0.0.0-stage → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/typography.css ADDED
@@ -0,0 +1,648 @@
1
+ /* ========== 1) BASE: map tag → design tokens ========== */
2
+ @layer base {
3
+ /* BODY TEXT: <p> */
4
+ p {
5
+ font-family: var(--font-alias-mobile-body-fontfamily);
6
+ font-size: var(--font-alias-mobile-body-fontsize);
7
+ line-height: var(--font-alias-mobile-body-lineheight);
8
+ font-weight: var(--font-alias-mobile-body-fontweight);
9
+ letter-spacing: var(--font-alias-mobile-body-letterspacing);
10
+ text-transform: var(--font-alias-mobile-body-textcase);
11
+ text-decoration: var(--font-alias-mobile-body-textdecoration);
12
+ }
13
+ @media (min-width: 768px) {
14
+ p {
15
+ font-family: var(--font-alias-tablet-body-fontfamily);
16
+ font-size: var(--font-alias-tablet-body-fontsize);
17
+ line-height: var(--font-alias-tablet-body-lineheight);
18
+ font-weight: var(--font-alias-tablet-body-fontweight);
19
+ letter-spacing: var(--font-alias-tablet-body-letterspacing);
20
+ text-transform: var(--font-alias-tablet-body-textcase);
21
+ text-decoration: var(--font-alias-tablet-body-textdecoration);
22
+ }
23
+ }
24
+ @media (min-width: 1024px) {
25
+ p {
26
+ font-family: var(--font-alias-desktop-body-fontfamily);
27
+ font-size: var(--font-alias-desktop-body-fontsize);
28
+ line-height: var(--font-alias-desktop-body-lineheight);
29
+ font-weight: var(--font-alias-desktop-body-fontweight);
30
+ letter-spacing: var(--font-alias-desktop-body-letterspacing);
31
+ text-transform: var(--font-alias-desktop-body-textcase);
32
+ text-decoration: var(--font-alias-desktop-body-textdecoration);
33
+ }
34
+ }
35
+
36
+ /* H1 */
37
+ h1 {
38
+ font-family: var(--font-alias-mobile-h1-fontfamily);
39
+ font-size: var(--font-alias-mobile-h1-fontsize);
40
+ line-height: var(--font-alias-mobile-h1-lineheight);
41
+ font-weight: var(--font-alias-mobile-h1-fontweight);
42
+ letter-spacing: var(--font-alias-mobile-h1-letterspacing);
43
+ text-transform: var(--font-alias-mobile-h1-textcase);
44
+ text-decoration: var(--font-alias-mobile-h1-textdecoration);
45
+ }
46
+ @media (min-width: 768px) {
47
+ h1 {
48
+ font-family: var(--font-alias-tablet-h1-fontfamily);
49
+ font-size: var(--font-alias-tablet-h1-fontsize);
50
+ line-height: var(--font-alias-tablet-h1-lineheight);
51
+ font-weight: var(--font-alias-tablet-h1-fontweight);
52
+ letter-spacing: var(--font-alias-tablet-h1-letterspacing);
53
+ text-transform: var(--font-alias-tablet-h1-textcase);
54
+ text-decoration: var(--font-alias-tablet-h1-textdecoration);
55
+ }
56
+ }
57
+ @media (min-width: 1024px) {
58
+ h1 {
59
+ font-family: var(--font-alias-desktop-h1-fontfamily);
60
+ font-size: var(--font-alias-desktop-h1-fontsize);
61
+ line-height: var(--font-alias-desktop-h1-lineheight);
62
+ font-weight: var(--font-alias-desktop-h1-fontweight);
63
+ letter-spacing: var(--font-alias-desktop-h1-letterspacing);
64
+ text-transform: var(--font-alias-desktop-h1-textcase);
65
+ text-decoration: var(--font-alias-desktop-h1-textdecoration);
66
+ }
67
+ }
68
+
69
+ /* H2 */
70
+ h2 {
71
+ font-family: var(--font-alias-mobile-h2-fontfamily);
72
+ font-size: var(--font-alias-mobile-h2-fontsize);
73
+ line-height: var(--font-alias-mobile-h2-lineheight);
74
+ font-weight: var(--font-alias-mobile-h2-fontweight);
75
+ letter-spacing: var(--font-alias-mobile-h2-letterspacing);
76
+ text-transform: var(--font-alias-mobile-h2-textcase);
77
+ text-decoration: var(--font-alias-mobile-h2-textdecoration);
78
+ }
79
+ @media (min-width: 768px) {
80
+ h2 {
81
+ font-family: var(--font-alias-tablet-h2-fontfamily);
82
+ font-size: var(--font-alias-tablet-h2-fontsize);
83
+ line-height: var(--font-alias-tablet-h2-lineheight);
84
+ font-weight: var(--font-alias-tablet-h2-fontweight);
85
+ letter-spacing: var(--font-alias-tablet-h2-letterspacing);
86
+ text-transform: var(--font-alias-tablet-h2-textcase);
87
+ text-decoration: var(--font-alias-tablet-h2-textdecoration);
88
+ }
89
+ }
90
+ @media (min-width: 1024px) {
91
+ h2 {
92
+ font-family: var(--font-alias-desktop-h2-fontfamily);
93
+ font-size: var(--font-alias-desktop-h2-fontsize);
94
+ line-height: var(--font-alias-desktop-h2-lineheight);
95
+ font-weight: var(--font-alias-desktop-h2-fontweight);
96
+ letter-spacing: var(--font-alias-desktop-h2-letterspacing);
97
+ text-transform: var(--font-alias-desktop-h2-textcase);
98
+ text-decoration: var(--font-alias-desktop-h2-textdecoration);
99
+ }
100
+ }
101
+
102
+ /* H3 */
103
+ h3 {
104
+ font-family: var(--font-alias-mobile-h3-fontfamily);
105
+ font-size: var(--font-alias-mobile-h3-fontsize);
106
+ line-height: var(--font-alias-mobile-h3-lineheight);
107
+ font-weight: var(--font-alias-mobile-h3-fontweight);
108
+ letter-spacing: var(--font-alias-mobile-h3-letterspacing);
109
+ text-transform: var(--font-alias-mobile-h3-textcase);
110
+ text-decoration: var(--font-alias-mobile-h3-textdecoration);
111
+ }
112
+ @media (min-width: 768px) {
113
+ h3 {
114
+ font-family: var(--font-alias-tablet-h3-fontfamily);
115
+ font-size: var(--font-alias-tablet-h3-fontsize);
116
+ line-height: var(--font-alias-tablet-h3-lineheight);
117
+ font-weight: var(--font-alias-tablet-h3-fontweight);
118
+ letter-spacing: var(--font-alias-tablet-h3-letterspacing);
119
+ text-transform: var(--font-alias-tablet-h3-textcase);
120
+ text-decoration: var(--font-alias-tablet-h3-textdecoration);
121
+ }
122
+ }
123
+ @media (min-width: 1024px) {
124
+ h3 {
125
+ font-family: var(--font-alias-desktop-h3-fontfamily);
126
+ font-size: var(--font-alias-desktop-h3-fontsize);
127
+ line-height: var(--font-alias-desktop-h3-lineheight);
128
+ font-weight: var(--font-alias-desktop-h3-fontweight);
129
+ letter-spacing: var(--font-alias-desktop-h3-letterspacing);
130
+ text-transform: var(--font-alias-desktop-h3-textcase);
131
+ text-decoration: var(--font-alias-desktop-h3-textdecoration);
132
+ }
133
+ }
134
+
135
+ /* SUBTITLE: ใช้กับ <small> หรือ tag ที่คุณอยากกำหนด */
136
+ small {
137
+ font-family: var(--font-alias-mobile-sub-fontfamily);
138
+ font-size: var(--font-alias-mobile-sub-fontsize);
139
+ line-height: var(--font-alias-mobile-sub-lineheight);
140
+ font-weight: var(--font-alias-mobile-sub-fontweight);
141
+ letter-spacing: var(--font-alias-mobile-sub-letterspacing);
142
+ text-transform: var(--font-alias-mobile-sub-textcase);
143
+ text-decoration: var(--font-alias-mobile-sub-textdecoration);
144
+ }
145
+ @media (min-width: 768px) {
146
+ small {
147
+ font-family: var(--font-alias-tablet-sub-fontfamily);
148
+ font-size: var(--font-alias-tablet-sub-fontsize);
149
+ line-height: var(--font-alias-tablet-sub-lineheight);
150
+ font-weight: var(--font-alias-tablet-sub-fontweight);
151
+ letter-spacing: var(--font-alias-tablet-sub-letterspacing);
152
+ text-transform: var(--font-alias-tablet-sub-textcase);
153
+ text-decoration: var(--font-alias-tablet-sub-textdecoration);
154
+ }
155
+ }
156
+ @media (min-width: 1024px) {
157
+ small {
158
+ font-family: var(--font-alias-desktop-sub-fontfamily);
159
+ font-size: var(--font-alias-desktop-sub-fontsize);
160
+ line-height: var(--font-alias-desktop-sub-lineheight);
161
+ font-weight: var(--font-alias-desktop-sub-fontweight);
162
+ letter-spacing: var(--font-alias-desktop-sub-letterspacing);
163
+ text-transform: var(--font-alias-desktop-sub-textcase);
164
+ text-decoration: var(--font-alias-desktop-sub-textdecoration);
165
+ }
166
+ }
167
+
168
+ /* BUTTON TEXT: ปุ่มทั่วไป */
169
+ button {
170
+ font-family: var(--font-alias-mobile-button-fontfamily);
171
+ font-size: var(--font-alias-mobile-button-fontsize);
172
+ line-height: var(--font-alias-mobile-button-lineheight);
173
+ font-weight: var(--font-alias-mobile-button-fontweight);
174
+ letter-spacing: var(--font-alias-mobile-button-letterspacing);
175
+ text-transform: var(--font-alias-mobile-button-textcase);
176
+ text-decoration: var(--font-alias-mobile-button-textdecoration);
177
+ }
178
+ @media (min-width: 768px) {
179
+ button {
180
+ font-family: var(--font-alias-tablet-button-fontfamily);
181
+ font-size: var(--font-alias-tablet-button-fontsize);
182
+ line-height: var(--font-alias-tablet-button-lineheight);
183
+ font-weight: var(--font-alias-tablet-button-fontweight);
184
+ letter-spacing: var(--font-alias-tablet-button-letterspacing);
185
+ text-transform: var(--font-alias-tablet-button-textcase);
186
+ text-decoration: var(--font-alias-tablet-button-textdecoration);
187
+ }
188
+ }
189
+ @media (min-width: 1024px) {
190
+ button {
191
+ font-family: var(--font-alias-desktop-button-fontfamily);
192
+ font-size: var(--font-alias-desktop-button-fontsize);
193
+ line-height: var(--font-alias-desktop-button-lineheight);
194
+ font-weight: var(--font-alias-desktop-button-fontweight);
195
+ letter-spacing: var(--font-alias-desktop-button-letterspacing);
196
+ text-transform: var(--font-alias-desktop-button-textcase);
197
+ text-decoration: var(--font-alias-desktop-button-textdecoration);
198
+ }
199
+ }
200
+ }
201
+
202
+ /* ========== 2) COMPONENTS: เก็บ .typo-* ไว้ใช้ในเคสพิเศษ (อยากใช้ก็ใช้, ไม่ใช้ก็ลบทิ้งได้) ========== */
203
+
204
+ @layer components {
205
+ /* ========== BODY ========== */
206
+ .typo-body {
207
+ font-family: var(--font-alias-mobile-body-fontfamily);
208
+ font-size: var(--font-alias-mobile-body-fontsize);
209
+ line-height: var(--font-alias-mobile-body-lineheight);
210
+ font-weight: var(--font-alias-mobile-body-fontweight);
211
+ letter-spacing: var(--font-alias-mobile-body-letterspacing);
212
+ text-transform: var(--font-alias-mobile-body-textcase);
213
+ text-decoration: var(--font-alias-mobile-body-textdecoration);
214
+ }
215
+ @media (min-width: 768px) {
216
+ .typo-body {
217
+ font-family: var(--font-alias-tablet-body-fontfamily);
218
+ font-size: var(--font-alias-tablet-body-fontsize);
219
+ line-height: var(--font-alias-tablet-body-lineheight);
220
+ font-weight: var(--font-alias-tablet-body-fontweight);
221
+ letter-spacing: var(--font-alias-tablet-body-letterspacing);
222
+ text-transform: var(--font-alias-tablet-body-textcase);
223
+ text-decoration: var(--font-alias-tablet-body-textdecoration);
224
+ }
225
+ }
226
+ @media (min-width: 1024px) {
227
+ .typo-body {
228
+ font-family: var(--font-alias-desktop-body-fontfamily);
229
+ font-size: var(--font-alias-desktop-body-fontsize);
230
+ line-height: var(--font-alias-desktop-body-lineheight);
231
+ font-weight: var(--font-alias-desktop-body-fontweight);
232
+ letter-spacing: var(--font-alias-desktop-body-letterspacing);
233
+ text-transform: var(--font-alias-desktop-body-textcase);
234
+ text-decoration: var(--font-alias-desktop-body-textdecoration);
235
+ }
236
+ }
237
+
238
+ /* ========== H1 ========== */
239
+ .typo-h1 {
240
+ font-family: var(--font-alias-mobile-h1-fontfamily);
241
+ font-size: var(--font-alias-mobile-h1-fontsize);
242
+ line-height: var(--font-alias-mobile-h1-lineheight);
243
+ font-weight: var(--font-alias-mobile-h1-fontweight);
244
+ letter-spacing: var(--font-alias-mobile-h1-letterspacing);
245
+ text-transform: var(--font-alias-mobile-h1-textcase);
246
+ text-decoration: var(--font-alias-mobile-h1-textdecoration);
247
+ }
248
+ @media (min-width: 768px) {
249
+ .typo-h1 {
250
+ font-family: var(--font-alias-tablet-h1-fontfamily);
251
+ font-size: var(--font-alias-tablet-h1-fontsize);
252
+ line-height: var(--font-alias-tablet-h1-lineheight);
253
+ font-weight: var(--font-alias-tablet-h1-fontweight);
254
+ letter-spacing: var(--font-alias-tablet-h1-letterspacing);
255
+ text-transform: var(--font-alias-tablet-h1-textcase);
256
+ text-decoration: var(--font-alias-tablet-h1-textdecoration);
257
+ }
258
+ }
259
+ @media (min-width: 1024px) {
260
+ .typo-h1 {
261
+ font-family: var(--font-alias-desktop-h1-fontfamily);
262
+ font-size: var(--font-alias-desktop-h1-fontsize);
263
+ line-height: var(--font-alias-desktop-h1-lineheight);
264
+ font-weight: var(--font-alias-desktop-h1-fontweight);
265
+ letter-spacing: var(--font-alias-desktop-h1-letterspacing);
266
+ text-transform: var(--font-alias-desktop-h1-textcase);
267
+ text-decoration: var(--font-alias-desktop-h1-textdecoration);
268
+ }
269
+ }
270
+
271
+ /* ========== H2 ========== */
272
+ .typo-h2 {
273
+ font-family: var(--font-alias-mobile-h2-fontfamily);
274
+ font-size: var(--font-alias-mobile-h2-fontsize);
275
+ line-height: var(--font-alias-mobile-h2-lineheight);
276
+ font-weight: var(--font-alias-mobile-h2-fontweight);
277
+ letter-spacing: var(--font-alias-mobile-h2-letterspacing);
278
+ text-transform: var(--font-alias-mobile-h2-textcase);
279
+ text-decoration: var(--font-alias-mobile-h2-textdecoration);
280
+ }
281
+ @media (min-width: 768px) {
282
+ .typo-h2 {
283
+ font-family: var(--font-alias-tablet-h2-fontfamily);
284
+ font-size: var(--font-alias-tablet-h2-fontsize);
285
+ line-height: var(--font-alias-tablet-h2-lineheight);
286
+ font-weight: var(--font-alias-tablet-h2-fontweight);
287
+ letter-spacing: var(--font-alias-tablet-h2-letterspacing);
288
+ text-transform: var(--font-alias-tablet-h2-textcase);
289
+ text-decoration: var(--font-alias-tablet-h2-textdecoration);
290
+ }
291
+ }
292
+ @media (min-width: 1024px) {
293
+ .typo-h2 {
294
+ font-family: var(--font-alias-desktop-h2-fontfamily);
295
+ font-size: var(--font-alias-desktop-h2-fontsize);
296
+ line-height: var(--font-alias-desktop-h2-lineheight);
297
+ font-weight: var(--font-alias-desktop-h2-fontweight);
298
+ letter-spacing: var(--font-alias-desktop-h2-letterspacing);
299
+ text-transform: var(--font-alias-desktop-h2-textcase);
300
+ text-decoration: var(--font-alias-desktop-h2-textdecoration);
301
+ }
302
+ }
303
+
304
+ /* ========== H3 ========== */
305
+ .typo-h3 {
306
+ font-family: var(--font-alias-mobile-h3-fontfamily);
307
+ font-size: var(--font-alias-mobile-h3-fontsize);
308
+ line-height: var(--font-alias-mobile-h3-lineheight);
309
+ font-weight: var(--font-alias-mobile-h3-fontweight);
310
+ letter-spacing: var(--font-alias-mobile-h3-letterspacing);
311
+ text-transform: var(--font-alias-mobile-h3-textcase);
312
+ text-decoration: var(--font-alias-mobile-h3-textdecoration);
313
+ }
314
+ @media (min-width: 768px) {
315
+ .typo-h3 {
316
+ font-family: var(--font-alias-tablet-h3-fontfamily);
317
+ font-size: var(--font-alias-tablet-h3-fontsize);
318
+ line-height: var(--font-alias-tablet-h3-lineheight);
319
+ font-weight: var(--font-alias-tablet-h3-fontweight);
320
+ letter-spacing: var(--font-alias-tablet-h3-letterspacing);
321
+ text-transform: var(--font-alias-tablet-h3-textcase);
322
+ text-decoration: var(--font-alias-tablet-h3-textdecoration);
323
+ }
324
+ }
325
+ @media (min-width: 1024px) {
326
+ .typo-h3 {
327
+ font-family: var(--font-alias-desktop-h3-fontfamily);
328
+ font-size: var(--font-alias-desktop-h3-fontsize);
329
+ line-height: var(--font-alias-desktop-h3-lineheight);
330
+ font-weight: var(--font-alias-desktop-h3-fontweight);
331
+ letter-spacing: var(--font-alias-desktop-h3-letterspacing);
332
+ text-transform: var(--font-alias-desktop-h3-textcase);
333
+ text-decoration: var(--font-alias-desktop-h3-textdecoration);
334
+ }
335
+ }
336
+
337
+ /* ========== SUBTITLE ========== */
338
+ .typo-sub {
339
+ font-family: var(--font-alias-mobile-sub-fontfamily);
340
+ font-size: var(--font-alias-mobile-sub-fontsize);
341
+ line-height: var(--font-alias-mobile-sub-lineheight);
342
+ font-weight: var(--font-alias-mobile-sub-fontweight);
343
+ letter-spacing: var(--font-alias-mobile-sub-letterspacing);
344
+ text-transform: var(--font-alias-mobile-sub-textcase);
345
+ text-decoration: var(--font-alias-mobile-sub-textdecoration);
346
+ }
347
+ @media (min-width: 768px) {
348
+ .typo-sub {
349
+ font-family: var(--font-alias-tablet-sub-fontfamily);
350
+ font-size: var(--font-alias-tablet-sub-fontsize);
351
+ line-height: var(--font-alias-tablet-sub-lineheight);
352
+ font-weight: var(--font-alias-tablet-sub-fontweight);
353
+ letter-spacing: var(--font-alias-tablet-sub-letterspacing);
354
+ text-transform: var(--font-alias-tablet-sub-textcase);
355
+ text-decoration: var(--font-alias-tablet-sub-textdecoration);
356
+ }
357
+ }
358
+ @media (min-width: 1024px) {
359
+ .typo-sub {
360
+ font-family: var(--font-alias-desktop-sub-fontfamily);
361
+ font-size: var(--font-alias-desktop-sub-fontsize);
362
+ line-height: var(--font-alias-desktop-sub-lineheight);
363
+ font-weight: var(--font-alias-desktop-sub-fontweight);
364
+ letter-spacing: var(--font-alias-desktop-sub-letterspacing);
365
+ text-transform: var(--font-alias-desktop-sub-textcase);
366
+ text-decoration: var(--font-alias-desktop-sub-textdecoration);
367
+ }
368
+ }
369
+
370
+ /* ========== DISCOUNT BADGE TEXT ========== */
371
+ .typo-discount {
372
+ font-family: var(--font-alias-mobile-discount-fontfamily);
373
+ font-size: var(--font-alias-mobile-discount-fontsize);
374
+ line-height: var(--font-alias-mobile-discount-lineheight);
375
+ font-weight: var(--font-alias-mobile-discount-fontweight);
376
+ letter-spacing: var(--font-alias-mobile-discount-letterspacing);
377
+ text-transform: var(--font-alias-mobile-discount-textcase);
378
+ text-decoration: var(--font-alias-mobile-discount-textdecoration);
379
+ }
380
+ @media (min-width: 768px) {
381
+ .typo-discount {
382
+ font-family: var(--font-alias-tablet-discount-fontfamily);
383
+ font-size: var(--font-alias-tablet-discount-fontsize);
384
+ line-height: var(--font-alias-tablet-discount-lineheight);
385
+ font-weight: var(--font-alias-tablet-discount-fontweight);
386
+ letter-spacing: var(--font-alias-tablet-discount-letterspacing);
387
+ text-transform: var(--font-alias-tablet-discount-textcase);
388
+ text-decoration: var(--font-alias-tablet-discount-textdecoration);
389
+ }
390
+ }
391
+ @media (min-width: 1024px) {
392
+ .typo-discount {
393
+ font-family: var(--font-alias-desktop-discount-fontfamily);
394
+ font-size: var(--font-alias-desktop-discount-fontsize);
395
+ line-height: var(--font-alias-desktop-discount-lineheight);
396
+ font-weight: var(--font-alias-desktop-discount-fontweight);
397
+ letter-spacing: var(--font-alias-desktop-discount-letterspacing);
398
+ text-transform: var(--font-alias-desktop-discount-textcase);
399
+ text-decoration: var(--font-alias-desktop-discount-textdecoration);
400
+ }
401
+ }
402
+
403
+ /* ========== TAGS / LABELS ========== */
404
+ .typo-tags {
405
+ font-family: var(--font-alias-mobile-tags-fontfamily);
406
+ font-size: var(--font-alias-mobile-tags-fontsize);
407
+ line-height: var(--font-alias-mobile-tags-lineheight);
408
+ font-weight: var(--font-alias-mobile-tags-fontweight);
409
+ letter-spacing: var(--font-alias-mobile-tags-letterspacing);
410
+ text-transform: var(--font-alias-mobile-tags-textcase);
411
+ text-decoration: var(--font-alias-mobile-tags-textdecoration);
412
+ }
413
+ @media (min-width: 768px) {
414
+ .typo-tags {
415
+ font-family: var(--font-alias-tablet-tags-fontfamily);
416
+ font-size: var(--font-alias-tablet-tags-fontsize);
417
+ line-height: var(--font-alias-tablet-tags-lineheight);
418
+ font-weight: var(--font-alias-tablet-tags-fontweight);
419
+ letter-spacing: var(--font-alias-tablet-tags-letterspacing);
420
+ text-transform: var(--font-alias-tablet-tags-textcase);
421
+ text-decoration: var(--font-alias-tablet-tags-textdecoration);
422
+ }
423
+ }
424
+ @media (min-width: 1024px) {
425
+ .typo-tags {
426
+ font-family: var(--font-alias-desktop-tags-fontfamily);
427
+ font-size: var(--font-alias-desktop-tags-fontsize);
428
+ line-height: var(--font-alias-desktop-tags-lineheight);
429
+ font-weight: var(--font-alias-desktop-tags-fontweight);
430
+ letter-spacing: var(--font-alias-desktop-tags-letterspacing);
431
+ text-transform: var(--font-alias-desktop-tags-textcase);
432
+ text-decoration: var(--font-alias-desktop-tags-textdecoration);
433
+ }
434
+ }
435
+
436
+ /* ========== MENU / NAV TEXT ========== */
437
+ .typo-menu {
438
+ font-family: var(--font-alias-mobile-menu-fontfamily);
439
+ font-size: var(--font-alias-mobile-menu-fontsize);
440
+ line-height: var(--font-alias-mobile-menu-lineheight);
441
+ font-weight: var(--font-alias-mobile-menu-fontweight);
442
+ letter-spacing: var(--font-alias-mobile-menu-letterspacing);
443
+ text-transform: var(--font-alias-mobile-menu-textcase);
444
+ text-decoration: var(--font-alias-mobile-menu-textdecoration);
445
+ }
446
+ @media (min-width: 768px) {
447
+ .typo-menu {
448
+ font-family: var(--font-alias-tablet-menu-fontfamily);
449
+ font-size: var(--font-alias-tablet-menu-fontsize);
450
+ line-height: var(--font-alias-tablet-menu-lineheight);
451
+ font-weight: var(--font-alias-tablet-menu-fontweight);
452
+ letter-spacing: var(--font-alias-tablet-menu-letterspacing);
453
+ text-transform: var(--font-alias-tablet-menu-textcase);
454
+ text-decoration: var(--font-alias-tablet-menu-textdecoration);
455
+ }
456
+ }
457
+ @media (min-width: 1024px) {
458
+ .typo-menu {
459
+ font-family: var(--font-alias-desktop-menu-fontfamily);
460
+ font-size: var(--font-alias-desktop-menu-fontsize);
461
+ line-height: var(--font-alias-desktop-menu-lineheight);
462
+ font-weight: var(--font-alias-desktop-menu-fontweight);
463
+ letter-spacing: var(--font-alias-desktop-menu-letterspacing);
464
+ text-transform: var(--font-alias-desktop-menu-textcase);
465
+ text-decoration: var(--font-alias-desktop-menu-textdecoration);
466
+ }
467
+ }
468
+
469
+ /* ========== TEXT BUTTON (เช่น ลิงก์) ========== */
470
+ .typo-text-button {
471
+ font-family: var(--font-alias-mobile-text-button-fontfamily);
472
+ font-size: var(--font-alias-mobile-text-button-fontsize);
473
+ line-height: var(--font-alias-mobile-text-button-lineheight);
474
+ font-weight: var(--font-alias-mobile-text-button-fontweight);
475
+ letter-spacing: var(--font-alias-mobile-text-button-letterspacing);
476
+ text-transform: var(--font-alias-mobile-text-button-textcase);
477
+ text-decoration: var(--font-alias-mobile-text-button-textdecoration);
478
+ }
479
+ @media (min-width: 768px) {
480
+ .typo-text-button {
481
+ font-family: var(--font-alias-tablet-text-button-fontfamily);
482
+ font-size: var(--font-alias-tablet-text-button-fontsize);
483
+ line-height: var(--font-alias-tablet-text-button-lineheight);
484
+ font-weight: var(--font-alias-tablet-text-button-fontweight);
485
+ letter-spacing: var(--font-alias-tablet-text-button-letterspacing);
486
+ text-transform: var(--font-alias-tablet-text-button-textcase);
487
+ text-decoration: var(--font-alias-tablet-text-button-textdecoration);
488
+ }
489
+ }
490
+ @media (min-width: 1024px) {
491
+ .typo-text-button {
492
+ font-family: var(--font-alias-desktop-text-button-fontfamily);
493
+ font-size: var(--font-alias-desktop-text-button-fontsize);
494
+ line-height: var(--font-alias-desktop-text-button-lineheight);
495
+ font-weight: var(--font-alias-desktop-text-button-fontweight);
496
+ letter-spacing: var(--font-alias-desktop-text-button-letterspacing);
497
+ text-transform: var(--font-alias-desktop-text-button-textcase);
498
+ text-decoration: var(--font-alias-desktop-text-button-textdecoration);
499
+ }
500
+ }
501
+
502
+ /* ========== TEXT BUTTON + UNDERLINE LINE ========== */
503
+ .typo-text-button-line {
504
+ font-family: var(--font-alias-mobile-text-button-line-fontfamily);
505
+ font-size: var(--font-alias-mobile-text-button-line-fontsize);
506
+ line-height: var(--font-alias-mobile-text-button-line-lineheight);
507
+ font-weight: var(--font-alias-mobile-text-button-line-fontweight);
508
+ letter-spacing: var(--font-alias-mobile-text-button-line-letterspacing);
509
+ text-transform: var(--font-alias-mobile-text-button-line-textcase);
510
+ text-decoration: var(--font-alias-mobile-text-button-line-textdecoration);
511
+ }
512
+ @media (min-width: 768px) {
513
+ .typo-text-button-line {
514
+ font-family: var(--font-alias-tablet-text-button-line-fontfamily);
515
+ font-size: var(--font-alias-tablet-text-button-line-fontsize);
516
+ line-height: var(--font-alias-tablet-text-button-line-lineheight);
517
+ font-weight: var(--font-alias-tablet-text-button-line-fontweight);
518
+ letter-spacing: var(--font-alias-tablet-text-button-line-letterspacing);
519
+ text-transform: var(--font-alias-tablet-text-button-line-textcase);
520
+ text-decoration: var(--font-alias-tablet-text-button-line-textdecoration);
521
+ }
522
+ }
523
+ @media (min-width: 1024px) {
524
+ .typo-text-button-line {
525
+ font-family: var(--font-alias-desktop-text-button-line-fontfamily);
526
+ font-size: var(--font-alias-desktop-text-button-line-fontsize);
527
+ line-height: var(--font-alias-desktop-text-button-line-lineheight);
528
+ font-weight: var(--font-alias-desktop-text-button-line-fontweight);
529
+ letter-spacing: var(--font-alias-desktop-text-button-line-letterspacing);
530
+ text-transform: var(--font-alias-desktop-text-button-line-textcase);
531
+ text-decoration: var(
532
+ --font-alias-desktop-text-button-line-textdecoration
533
+ );
534
+ }
535
+ }
536
+
537
+ /* ========== BUTTON (หลัก) ========== */
538
+ .typo-button {
539
+ font-family: var(--font-alias-mobile-button-fontfamily);
540
+ font-size: var(--font-alias-mobile-button-fontsize);
541
+ line-height: var(--font-alias-mobile-button-lineheight);
542
+ font-weight: var(--font-alias-mobile-button-fontweight);
543
+ letter-spacing: var(--font-alias-mobile-button-letterspacing);
544
+ text-transform: var(--font-alias-mobile-button-textcase);
545
+ text-decoration: var(--font-alias-mobile-button-textdecoration);
546
+ }
547
+ @media (min-width: 768px) {
548
+ .typo-button {
549
+ font-family: var(--font-alias-tablet-button-fontfamily);
550
+ font-size: var(--font-alias-tablet-button-fontsize);
551
+ line-height: var(--font-alias-tablet-button-lineheight);
552
+ font-weight: var(--font-alias-tablet-button-fontweight);
553
+ letter-spacing: var(--font-alias-tablet-button-letterspacing);
554
+ text-transform: var(--font-alias-tablet-button-textcase);
555
+ text-decoration: var(--font-alias-tablet-button-textdecoration);
556
+ }
557
+ }
558
+ @media (min-width: 1024px) {
559
+ .typo-button {
560
+ font-family: var(--font-alias-desktop-button-fontfamily);
561
+ font-size: var(--font-alias-desktop-button-fontsize);
562
+ line-height: var(--font-alias-desktop-button-lineheight);
563
+ font-weight: var(--font-alias-desktop-button-fontweight);
564
+ letter-spacing: var(--font-alias-desktop-button-letterspacing);
565
+ text-transform: var(--font-alias-desktop-button-textcase);
566
+ text-decoration: var(--font-alias-desktop-button-textdecoration);
567
+ }
568
+ }
569
+
570
+ /* ========== BUTTON SMALL (ไม่มี mobile, ใช้ tablet เป็น base) ========== */
571
+ .typo-button-sm {
572
+ font-family: var(--font-alias-tablet-button-sm-fontfamily);
573
+ font-size: var(--font-alias-tablet-button-sm-fontsize);
574
+ line-height: var(--font-alias-tablet-button-sm-lineheight);
575
+ font-weight: var(--font-alias-tablet-button-sm-fontweight);
576
+ letter-spacing: var(--font-alias-tablet-button-sm-letterspacing);
577
+ text-transform: var(--font-alias-tablet-button-sm-textcase);
578
+ text-decoration: var(--font-alias-tablet-button-sm-textdecoration);
579
+ }
580
+ @media (min-width: 1024px) {
581
+ .typo-button-sm {
582
+ font-family: var(--font-alias-desktop-button-sm-fontfamily);
583
+ font-size: var(--font-alias-desktop-button-sm-fontsize);
584
+ line-height: var(--font-alias-desktop-button-sm-lineheight);
585
+ font-weight: var(--font-alias-desktop-button-sm-fontweight);
586
+ letter-spacing: var(--font-alias-desktop-button-sm-letterspacing);
587
+ text-transform: var(--font-alias-desktop-button-sm-textcase);
588
+ text-decoration: var(--font-alias-desktop-button-sm-textdecoration);
589
+ }
590
+ }
591
+
592
+ /* ========== LOGO TYPE ========== */
593
+ .typo-logo {
594
+ font-family: var(--font-alias-mobile-logo-fontfamily);
595
+ font-size: var(--font-alias-mobile-logo-fontsize);
596
+ line-height: var(--font-alias-mobile-logo-lineheight);
597
+ font-weight: var(--font-alias-mobile-logo-fontweight);
598
+ letter-spacing: var(--font-alias-mobile-logo-letterspacing);
599
+ text-transform: var(--font-alias-mobile-logo-textcase);
600
+ text-decoration: var(--font-alias-mobile-logo-textdecoration);
601
+ }
602
+ @media (min-width: 768px) {
603
+ .typo-logo {
604
+ font-family: var(--font-alias-tablet-logo-fontfamily);
605
+ font-size: var(--font-alias-tablet-logo-fontsize);
606
+ line-height: var(--font-alias-tablet-logo-lineheight);
607
+ font-weight: var(--font-alias-tablet-logo-fontweight);
608
+ letter-spacing: var(--font-alias-tablet-logo-letterspacing);
609
+ text-transform: var(--font-alias-tablet-logo-textcase);
610
+ text-decoration: var(--font-alias-tablet-logo-textdecoration);
611
+ }
612
+ }
613
+ @media (min-width: 1024px) {
614
+ .typo-logo {
615
+ font-family: var(--font-alias-desktop-logo-fontfamily);
616
+ font-size: var(--font-alias-desktop-logo-fontsize);
617
+ line-height: var(--font-alias-desktop-logo-lineheight);
618
+ font-weight: var(--font-alias-desktop-logo-fontweight);
619
+ letter-spacing: var(--font-alias-desktop-logo-letterspacing);
620
+ text-transform: var(--font-alias-desktop-logo-textcase);
621
+ text-decoration: var(--font-alias-desktop-logo-textdecoration);
622
+ }
623
+ }
624
+ }
625
+
626
+ /* ========================================
627
+ MODERN HEADING FONT — ใช้ Noto Sans Thai (ฟอนต์ไทยไม่มีหัว) สำหรับ h1-h5
628
+ ให้ heading ดูโมเดิร์นและแยกจาก body text
629
+ ======================================== */
630
+ :root {
631
+ /* Override heading font tokens → Noto Sans Thai (ฟอนต์ไทยไม่มีหัว) */
632
+ --font-alias-mobile-h1-fontfamily: 'Noto Sans Thai', sans-serif;
633
+ --font-alias-tablet-h1-fontfamily: 'Noto Sans Thai', sans-serif;
634
+ --font-alias-desktop-h1-fontfamily: 'Noto Sans Thai', sans-serif;
635
+ --font-alias-mobile-h2-fontfamily: 'Noto Sans Thai', sans-serif;
636
+ --font-alias-tablet-h2-fontfamily: 'Noto Sans Thai', sans-serif;
637
+ --font-alias-desktop-h2-fontfamily: 'Noto Sans Thai', sans-serif;
638
+ --font-alias-mobile-h3-fontfamily: 'Noto Sans Thai', sans-serif;
639
+ --font-alias-tablet-h3-fontfamily: 'Noto Sans Thai', sans-serif;
640
+ --font-alias-desktop-h3-fontfamily: 'Noto Sans Thai', sans-serif;
641
+ }
642
+
643
+ /* h4, h5 — ไม่อยู่ใน token system, กำหนดตรงๆ */
644
+ h4, h5 {
645
+ font-family: 'Noto Sans Thai', sans-serif;
646
+ font-weight: 600;
647
+ letter-spacing: -0.01em;
648
+ }