@unocss/preset-typography 66.5.10 → 66.5.11

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/dist/index.mjs CHANGED
@@ -1,1478 +1,1228 @@
1
- import { clone, toArray, mergeDeep, definePreset, symbols } from '@unocss/core';
2
- import { colorToString, alphaPlaceholders } from '@unocss/rule-utils';
1
+ import { clone, definePreset, mergeDeep, symbols, toArray } from "@unocss/core";
2
+ import { alphaPlaceholders, colorToString } from "@unocss/rule-utils";
3
3
 
4
+ //#region src/constants.ts
4
5
  const modifiers = [
5
- ["headings", "h1", "h2", "h3", "h4", "h5", "h6", "th"],
6
- ["h1"],
7
- ["h2"],
8
- ["h3"],
9
- ["h4"],
10
- ["h5"],
11
- ["h6"],
12
- ["p"],
13
- ["a"],
14
- ["blockquote"],
15
- ["figure"],
16
- ["figcaption"],
17
- ["strong"],
18
- ["em"],
19
- ["kbd"],
20
- ["code"],
21
- ["pre"],
22
- ["ol"],
23
- ["ul"],
24
- ["li"],
25
- ["table"],
26
- ["thead"],
27
- ["tr"],
28
- ["th"],
29
- ["td"],
30
- ["img"],
31
- ["video"],
32
- ["hr"]
6
+ [
7
+ "headings",
8
+ "h1",
9
+ "h2",
10
+ "h3",
11
+ "h4",
12
+ "h5",
13
+ "h6",
14
+ "th"
15
+ ],
16
+ ["h1"],
17
+ ["h2"],
18
+ ["h3"],
19
+ ["h4"],
20
+ ["h5"],
21
+ ["h6"],
22
+ ["p"],
23
+ ["a"],
24
+ ["blockquote"],
25
+ ["figure"],
26
+ ["figcaption"],
27
+ ["strong"],
28
+ ["em"],
29
+ ["kbd"],
30
+ ["code"],
31
+ ["pre"],
32
+ ["ol"],
33
+ ["ul"],
34
+ ["li"],
35
+ ["table"],
36
+ ["thead"],
37
+ ["tr"],
38
+ ["th"],
39
+ ["td"],
40
+ ["img"],
41
+ ["video"],
42
+ ["hr"]
33
43
  ];
34
44
  const defaultColorScheme = {
35
- "body": [700, 300],
36
- "headings": [900, "white"],
37
- "lead": [600, 400],
38
- "links": [900, "white"],
39
- "bold": [900, "white"],
40
- "counters": [500, 400],
41
- "bullets": [300, 600],
42
- "hr": [200, 700],
43
- "quotes": [900, 100],
44
- "quote-borders": [200, 700],
45
- "captions": [500, 400],
46
- "kbd": [900, "white"],
47
- "kbd-shadows": [900, "white"],
48
- "code": [900, "white"],
49
- "pre-code": [200, 300],
50
- "pre-bg": [800, "rgb(0 0 0 / 50%)"],
51
- "th-borders": [300, 600],
52
- "td-borders": [200, 700]
45
+ "body": [700, 300],
46
+ "headings": [900, "white"],
47
+ "lead": [600, 400],
48
+ "links": [900, "white"],
49
+ "bold": [900, "white"],
50
+ "counters": [500, 400],
51
+ "bullets": [300, 600],
52
+ "hr": [200, 700],
53
+ "quotes": [900, 100],
54
+ "quote-borders": [200, 700],
55
+ "captions": [500, 400],
56
+ "kbd": [900, "white"],
57
+ "kbd-shadows": [900, "white"],
58
+ "code": [900, "white"],
59
+ "pre-code": [200, 300],
60
+ "pre-bg": [800, "rgb(0 0 0 / 50%)"],
61
+ "th-borders": [300, 600],
62
+ "td-borders": [200, 700]
53
63
  };
54
64
  const round = (num) => num.toFixed(7).replace(/0+$/, "").replace(/\.$/, "");
55
65
  const rem = (px) => `${round(px / 16)}rem`;
56
66
  const em = (px, base) => `${round(px / base)}em`;
57
67
  const ProseDefaultCSSObject = {
58
- "color": "var(--un-prose-body)",
59
- "max-width": "65ch",
60
- "p": {},
61
- // Required to maintain correct order when merging
62
- '[class~="lead"]': {
63
- color: "var(--un-prose-lead)"
64
- },
65
- "a": {
66
- "color": "var(--un-prose-links)",
67
- "text-decoration": "underline",
68
- "font-weight": "500"
69
- },
70
- "strong": {
71
- "color": "var(--un-prose-bold)",
72
- "font-weight": "600"
73
- },
74
- "a strong": {
75
- color: "inherit"
76
- },
77
- "blockquote strong": {
78
- color: "inherit"
79
- },
80
- "thead th strong": {
81
- color: "inherit"
82
- },
83
- "ol": {
84
- "list-style-type": "decimal"
85
- },
86
- 'ol[type="A"]': {
87
- "list-style-type": "upper-alpha"
88
- },
89
- 'ol[type="a"]': {
90
- "list-style-type": "lower-alpha"
91
- },
92
- 'ol[type="A" s]': {
93
- "list-style-type": "upper-alpha"
94
- },
95
- 'ol[type="a" s]': {
96
- "list-style-type": "lower-alpha"
97
- },
98
- 'ol[type="I"]': {
99
- "list-style-type": "upper-roman"
100
- },
101
- 'ol[type="i"]': {
102
- "list-style-type": "lower-roman"
103
- },
104
- 'ol[type="I" s]': {
105
- "list-style-type": "upper-roman"
106
- },
107
- 'ol[type="i" s]': {
108
- "list-style-type": "lower-roman"
109
- },
110
- 'ol[type="1"]': {
111
- "list-style-type": "decimal"
112
- },
113
- "ul": {
114
- "list-style-type": "disc"
115
- },
116
- "ol > li::marker": {
117
- "font-weight": "400",
118
- "color": "var(--un-prose-counters)"
119
- },
120
- "ul > li::marker": {
121
- color: "var(--un-prose-bullets)"
122
- },
123
- "dt": {
124
- "color": "var(--un-prose-headings)",
125
- "font-weight": "600"
126
- },
127
- "hr": {
128
- "border-color": "var(--un-prose-hr)",
129
- "border-top-width": "1px"
130
- },
131
- "blockquote": {
132
- "font-weight": "500",
133
- "font-style": "italic",
134
- "color": "var(--un-prose-quotes)",
135
- "border-inline-start-width": "0.25rem",
136
- "border-inline-start-color": "var(--un-prose-quote-borders)",
137
- "quotes": '"\\201C""\\201D""\\2018""\\2019"'
138
- },
139
- "blockquote p:first-of-type::before": {
140
- content: "open-quote"
141
- },
142
- "blockquote p:last-of-type::after": {
143
- content: "close-quote"
144
- },
145
- "h1": {
146
- "color": "var(--un-prose-headings)",
147
- "font-weight": "800"
148
- },
149
- "h1 strong": {
150
- "font-weight": "900",
151
- "color": "inherit"
152
- },
153
- "h2": {
154
- "color": "var(--un-prose-headings)",
155
- "font-weight": "700"
156
- },
157
- "h2 strong": {
158
- "font-weight": "800",
159
- "color": "inherit"
160
- },
161
- "h3": {
162
- "color": "var(--un-prose-headings)",
163
- "font-weight": "600"
164
- },
165
- "h3 strong": {
166
- "font-weight": "700",
167
- "color": "inherit"
168
- },
169
- "h4": {
170
- "color": "var(--un-prose-headings)",
171
- "font-weight": "600"
172
- },
173
- "h4 strong": {
174
- "font-weight": "700",
175
- "color": "inherit"
176
- },
177
- "img": {},
178
- // Required to maintain correct order when merging
179
- "picture": {
180
- display: "block"
181
- },
182
- "video": {},
183
- // Required to maintain correct order when merging
184
- "kbd": {
185
- "font-weight": "500",
186
- "font-family": "inherit",
187
- "color": "var(--un-prose-kbd)",
188
- "box-shadow": "0 0 0 1px rgb(var(--un-prose-kbd-shadows) / 10%), 0 3px 0 rgb(var(--un-prose-kbd-shadows) / 10%)"
189
- },
190
- "code": {
191
- "color": "var(--un-prose-code)",
192
- "font-weight": "600"
193
- },
194
- "code::before": {
195
- content: '"`"'
196
- },
197
- "code::after": {
198
- content: '"`"'
199
- },
200
- "a code": {
201
- color: "inherit"
202
- },
203
- "h1 code": {
204
- color: "inherit"
205
- },
206
- "h2 code": {
207
- color: "inherit"
208
- },
209
- "h3 code": {
210
- color: "inherit"
211
- },
212
- "h4 code": {
213
- color: "inherit"
214
- },
215
- "blockquote code": {
216
- color: "inherit"
217
- },
218
- "thead th code": {
219
- color: "inherit"
220
- },
221
- "pre": {
222
- "color": "var(--un-prose-pre-code)",
223
- "background-color": "var(--un-prose-pre-bg)",
224
- "overflow-x": "auto",
225
- "font-weight": "400"
226
- },
227
- "pre code": {
228
- "background-color": "transparent",
229
- "border-width": "0",
230
- "border-radius": "0",
231
- "padding": "0",
232
- "font-weight": "inherit",
233
- "color": "inherit",
234
- "font-size": "inherit",
235
- "font-family": "inherit",
236
- "line-height": "inherit"
237
- },
238
- "pre code::before": {
239
- content: "none"
240
- },
241
- "pre code::after": {
242
- content: "none"
243
- },
244
- "table": {
245
- "width": "100%",
246
- "table-layout": "auto",
247
- "margin-top": em(32, 16),
248
- "margin-bottom": em(32, 16)
249
- },
250
- "thead": {
251
- "border-bottom-width": "1px",
252
- "border-bottom-color": "var(--un-prose-th-borders)"
253
- },
254
- "thead th": {
255
- "color": "var(--un-prose-headings)",
256
- "font-weight": "600",
257
- "vertical-align": "bottom"
258
- },
259
- "tbody tr": {
260
- "border-bottom-width": "1px",
261
- "border-bottom-color": "var(--un-prose-td-borders)"
262
- },
263
- "tbody tr:last-child": {
264
- "border-bottom-width": "0"
265
- },
266
- "tbody td": {
267
- "vertical-align": "baseline"
268
- },
269
- "tfoot": {
270
- "border-top-width": "1px",
271
- "border-top-color": "var(--un-prose-th-borders)"
272
- },
273
- "tfoot td": {
274
- "vertical-align": "top"
275
- },
276
- "th, td": {
277
- "text-align": "start"
278
- },
279
- "figure > *": {},
280
- // Required to maintain correct order when merging
281
- "figcaption": {
282
- color: "var(--un-prose-captions)"
283
- }
68
+ "color": "var(--un-prose-body)",
69
+ "max-width": "65ch",
70
+ "p": {},
71
+ "[class~=\"lead\"]": { color: "var(--un-prose-lead)" },
72
+ "a": {
73
+ "color": "var(--un-prose-links)",
74
+ "text-decoration": "underline",
75
+ "font-weight": "500"
76
+ },
77
+ "strong": {
78
+ "color": "var(--un-prose-bold)",
79
+ "font-weight": "600"
80
+ },
81
+ "a strong": { color: "inherit" },
82
+ "blockquote strong": { color: "inherit" },
83
+ "thead th strong": { color: "inherit" },
84
+ "ol": { "list-style-type": "decimal" },
85
+ "ol[type=\"A\"]": { "list-style-type": "upper-alpha" },
86
+ "ol[type=\"a\"]": { "list-style-type": "lower-alpha" },
87
+ "ol[type=\"A\" s]": { "list-style-type": "upper-alpha" },
88
+ "ol[type=\"a\" s]": { "list-style-type": "lower-alpha" },
89
+ "ol[type=\"I\"]": { "list-style-type": "upper-roman" },
90
+ "ol[type=\"i\"]": { "list-style-type": "lower-roman" },
91
+ "ol[type=\"I\" s]": { "list-style-type": "upper-roman" },
92
+ "ol[type=\"i\" s]": { "list-style-type": "lower-roman" },
93
+ "ol[type=\"1\"]": { "list-style-type": "decimal" },
94
+ "ul": { "list-style-type": "disc" },
95
+ "ol > li::marker": {
96
+ "font-weight": "400",
97
+ "color": "var(--un-prose-counters)"
98
+ },
99
+ "ul > li::marker": { color: "var(--un-prose-bullets)" },
100
+ "dt": {
101
+ "color": "var(--un-prose-headings)",
102
+ "font-weight": "600"
103
+ },
104
+ "hr": {
105
+ "border-color": "var(--un-prose-hr)",
106
+ "border-top-width": "1px"
107
+ },
108
+ "blockquote": {
109
+ "font-weight": "500",
110
+ "font-style": "italic",
111
+ "color": "var(--un-prose-quotes)",
112
+ "border-inline-start-width": "0.25rem",
113
+ "border-inline-start-color": "var(--un-prose-quote-borders)",
114
+ "quotes": "\"\\201C\"\"\\201D\"\"\\2018\"\"\\2019\""
115
+ },
116
+ "blockquote p:first-of-type::before": { content: "open-quote" },
117
+ "blockquote p:last-of-type::after": { content: "close-quote" },
118
+ "h1": {
119
+ "color": "var(--un-prose-headings)",
120
+ "font-weight": "800"
121
+ },
122
+ "h1 strong": {
123
+ "font-weight": "900",
124
+ "color": "inherit"
125
+ },
126
+ "h2": {
127
+ "color": "var(--un-prose-headings)",
128
+ "font-weight": "700"
129
+ },
130
+ "h2 strong": {
131
+ "font-weight": "800",
132
+ "color": "inherit"
133
+ },
134
+ "h3": {
135
+ "color": "var(--un-prose-headings)",
136
+ "font-weight": "600"
137
+ },
138
+ "h3 strong": {
139
+ "font-weight": "700",
140
+ "color": "inherit"
141
+ },
142
+ "h4": {
143
+ "color": "var(--un-prose-headings)",
144
+ "font-weight": "600"
145
+ },
146
+ "h4 strong": {
147
+ "font-weight": "700",
148
+ "color": "inherit"
149
+ },
150
+ "img": {},
151
+ "picture": { display: "block" },
152
+ "video": {},
153
+ "kbd": {
154
+ "font-weight": "500",
155
+ "font-family": "inherit",
156
+ "color": "var(--un-prose-kbd)",
157
+ "box-shadow": "0 0 0 1px rgb(var(--un-prose-kbd-shadows) / 10%), 0 3px 0 rgb(var(--un-prose-kbd-shadows) / 10%)"
158
+ },
159
+ "code": {
160
+ "color": "var(--un-prose-code)",
161
+ "font-weight": "600"
162
+ },
163
+ "code::before": { content: "\"`\"" },
164
+ "code::after": { content: "\"`\"" },
165
+ "a code": { color: "inherit" },
166
+ "h1 code": { color: "inherit" },
167
+ "h2 code": { color: "inherit" },
168
+ "h3 code": { color: "inherit" },
169
+ "h4 code": { color: "inherit" },
170
+ "blockquote code": { color: "inherit" },
171
+ "thead th code": { color: "inherit" },
172
+ "pre": {
173
+ "color": "var(--un-prose-pre-code)",
174
+ "background-color": "var(--un-prose-pre-bg)",
175
+ "overflow-x": "auto",
176
+ "font-weight": "400"
177
+ },
178
+ "pre code": {
179
+ "background-color": "transparent",
180
+ "border-width": "0",
181
+ "border-radius": "0",
182
+ "padding": "0",
183
+ "font-weight": "inherit",
184
+ "color": "inherit",
185
+ "font-size": "inherit",
186
+ "font-family": "inherit",
187
+ "line-height": "inherit"
188
+ },
189
+ "pre code::before": { content: "none" },
190
+ "pre code::after": { content: "none" },
191
+ "table": {
192
+ "width": "100%",
193
+ "table-layout": "auto",
194
+ "margin-top": em(32, 16),
195
+ "margin-bottom": em(32, 16)
196
+ },
197
+ "thead": {
198
+ "border-bottom-width": "1px",
199
+ "border-bottom-color": "var(--un-prose-th-borders)"
200
+ },
201
+ "thead th": {
202
+ "color": "var(--un-prose-headings)",
203
+ "font-weight": "600",
204
+ "vertical-align": "bottom"
205
+ },
206
+ "tbody tr": {
207
+ "border-bottom-width": "1px",
208
+ "border-bottom-color": "var(--un-prose-td-borders)"
209
+ },
210
+ "tbody tr:last-child": { "border-bottom-width": "0" },
211
+ "tbody td": { "vertical-align": "baseline" },
212
+ "tfoot": {
213
+ "border-top-width": "1px",
214
+ "border-top-color": "var(--un-prose-th-borders)"
215
+ },
216
+ "tfoot td": { "vertical-align": "top" },
217
+ "th, td": { "text-align": "start" },
218
+ "figure > *": {},
219
+ "figcaption": { color: "var(--un-prose-captions)" }
284
220
  };
285
221
  const ProseDefaultSize = {
286
- "sm": {
287
- "font-size": rem(14),
288
- "line-height": round(24 / 14),
289
- "p": {
290
- "margin-top": em(16, 14),
291
- "margin-bottom": em(16, 14)
292
- },
293
- '[class~="lead"]': {
294
- "font-size": em(18, 14),
295
- "line-height": round(28 / 18),
296
- "margin-top": em(16, 18),
297
- "margin-bottom": em(16, 18)
298
- },
299
- "blockquote": {
300
- "margin-top": em(24, 18),
301
- "margin-bottom": em(24, 18),
302
- "padding-inline-start": em(20, 18)
303
- },
304
- "h1": {
305
- "font-size": em(30, 14),
306
- "margin-top": "0",
307
- "margin-bottom": em(24, 30),
308
- "line-height": round(36 / 30)
309
- },
310
- "h2": {
311
- "font-size": em(20, 14),
312
- "margin-top": em(32, 20),
313
- "margin-bottom": em(16, 20),
314
- "line-height": round(28 / 20)
315
- },
316
- "h3": {
317
- "font-size": em(18, 14),
318
- "margin-top": em(28, 18),
319
- "margin-bottom": em(8, 18),
320
- "line-height": round(28 / 18)
321
- },
322
- "h4": {
323
- "margin-top": em(20, 14),
324
- "margin-bottom": em(8, 14),
325
- "line-height": round(20 / 14)
326
- },
327
- "img": {
328
- "margin-top": em(24, 14),
329
- "margin-bottom": em(24, 14)
330
- },
331
- "picture": {
332
- "margin-top": em(24, 14),
333
- "margin-bottom": em(24, 14)
334
- },
335
- "picture > img": {
336
- "margin-top": "0",
337
- "margin-bottom": "0"
338
- },
339
- "video": {
340
- "margin-top": em(24, 14),
341
- "margin-bottom": em(24, 14)
342
- },
343
- "kbd": {
344
- "font-size": em(12, 14),
345
- "border-radius": rem(5),
346
- "padding-top": em(2, 14),
347
- "padding-inline-end": em(5, 14),
348
- "padding-bottom": em(2, 14),
349
- "padding-inline-start": em(5, 14)
350
- },
351
- "code": {
352
- "font-size": em(12, 14)
353
- },
354
- "h2 code": {
355
- "font-size": em(18, 20)
356
- },
357
- "h3 code": {
358
- "font-size": em(16, 18)
359
- },
360
- "pre": {
361
- "font-size": em(12, 14),
362
- "line-height": round(20 / 12),
363
- "margin-top": em(20, 12),
364
- "margin-bottom": em(20, 12),
365
- "border-radius": rem(4),
366
- "padding-top": em(8, 12),
367
- "padding-inline-end": em(12, 12),
368
- "padding-bottom": em(8, 12),
369
- "padding-inline-start": em(12, 12)
370
- },
371
- "ol": {
372
- "margin-top": em(16, 14),
373
- "margin-bottom": em(16, 14),
374
- "padding-inline-start": em(22, 14)
375
- },
376
- "ul": {
377
- "margin-top": em(16, 14),
378
- "margin-bottom": em(16, 14),
379
- "padding-inline-start": em(22, 14)
380
- },
381
- "li": {
382
- "margin-top": em(4, 14),
383
- "margin-bottom": em(4, 14)
384
- },
385
- "ol > li": {
386
- "padding-inline-start": em(6, 14)
387
- },
388
- "ul > li": {
389
- "padding-inline-start": em(6, 14)
390
- },
391
- "> ul > li p": {
392
- "margin-top": em(8, 14),
393
- "margin-bottom": em(8, 14)
394
- },
395
- "> ul > li > p:first-child": {
396
- "margin-top": em(16, 14)
397
- },
398
- "> ul > li > p:last-child": {
399
- "margin-bottom": em(16, 14)
400
- },
401
- "> ol > li > p:first-child": {
402
- "margin-top": em(16, 14)
403
- },
404
- "> ol > li > p:last-child": {
405
- "margin-bottom": em(16, 14)
406
- },
407
- "ul ul, ul ol, ol ul, ol ol": {
408
- "margin-top": em(8, 14),
409
- "margin-bottom": em(8, 14)
410
- },
411
- "dl": {
412
- "margin-top": em(16, 14),
413
- "margin-bottom": em(16, 14)
414
- },
415
- "dt": {
416
- "margin-top": em(16, 14)
417
- },
418
- "dd": {
419
- "margin-top": em(4, 14),
420
- "padding-inline-start": em(22, 14)
421
- },
422
- "hr": {
423
- "margin-top": em(40, 14),
424
- "margin-bottom": em(40, 14)
425
- },
426
- "hr + *": {
427
- "margin-top": "0"
428
- },
429
- "h2 + *": {
430
- "margin-top": "0"
431
- },
432
- "h3 + *": {
433
- "margin-top": "0"
434
- },
435
- "h4 + *": {
436
- "margin-top": "0"
437
- },
438
- "table": {
439
- "font-size": em(12, 14),
440
- "line-height": round(18 / 12)
441
- },
442
- "thead th": {
443
- "padding-inline-end": em(12, 12),
444
- "padding-bottom": em(8, 12),
445
- "padding-inline-start": em(12, 12)
446
- },
447
- "thead th:first-child": {
448
- "padding-inline-start": "0"
449
- },
450
- "thead th:last-child": {
451
- "padding-inline-end": "0"
452
- },
453
- "tbody td, tfoot td": {
454
- "padding-top": em(8, 12),
455
- "padding-inline-end": em(12, 12),
456
- "padding-bottom": em(8, 12),
457
- "padding-inline-start": em(12, 12)
458
- },
459
- "tbody td:first-child, tfoot td:first-child": {
460
- "padding-inline-start": "0"
461
- },
462
- "tbody td:last-child, tfoot td:last-child": {
463
- "padding-inline-end": "0"
464
- },
465
- "figure": {
466
- "margin-top": em(24, 14),
467
- "margin-bottom": em(24, 14)
468
- },
469
- "figure > *": {
470
- "margin-top": "0",
471
- "margin-bottom": "0"
472
- },
473
- "figcaption": {
474
- "font-size": em(12, 14),
475
- "line-height": round(16 / 12),
476
- "margin-top": em(8, 12)
477
- },
478
- "> :first-child": {
479
- "margin-top": "0"
480
- },
481
- "> :last-child": {
482
- "margin-bottom": "0"
483
- }
484
- },
485
- "base": {
486
- "font-size": rem(16),
487
- "line-height": round(28 / 16),
488
- "p": {
489
- "margin-top": em(20, 16),
490
- "margin-bottom": em(20, 16)
491
- },
492
- '[class~="lead"]': {
493
- "font-size": em(20, 16),
494
- "line-height": round(32 / 20),
495
- "margin-top": em(24, 20),
496
- "margin-bottom": em(24, 20)
497
- },
498
- "blockquote": {
499
- "margin-top": em(32, 20),
500
- "margin-bottom": em(32, 20),
501
- "padding-inline-start": em(20, 20)
502
- },
503
- "h1": {
504
- "font-size": em(36, 16),
505
- "margin-top": "0",
506
- "margin-bottom": em(32, 36),
507
- "line-height": round(40 / 36)
508
- },
509
- "h2": {
510
- "font-size": em(24, 16),
511
- "margin-top": em(48, 24),
512
- "margin-bottom": em(24, 24),
513
- "line-height": round(32 / 24)
514
- },
515
- "h3": {
516
- "font-size": em(20, 16),
517
- "margin-top": em(32, 20),
518
- "margin-bottom": em(12, 20),
519
- "line-height": round(32 / 20)
520
- },
521
- "h4": {
522
- "margin-top": em(24, 16),
523
- "margin-bottom": em(8, 16),
524
- "line-height": round(24 / 16)
525
- },
526
- "img": {
527
- "margin-top": em(32, 16),
528
- "margin-bottom": em(32, 16)
529
- },
530
- "picture": {
531
- "margin-top": em(32, 16),
532
- "margin-bottom": em(32, 16)
533
- },
534
- "picture > img": {
535
- "margin-top": "0",
536
- "margin-bottom": "0"
537
- },
538
- "video": {
539
- "margin-top": em(32, 16),
540
- "margin-bottom": em(32, 16)
541
- },
542
- "kbd": {
543
- "font-size": em(14, 16),
544
- "border-radius": rem(5),
545
- "padding-top": em(3, 16),
546
- "padding-inline-end": em(6, 16),
547
- "padding-bottom": em(3, 16),
548
- "padding-inline-start": em(6, 16)
549
- },
550
- "code": {
551
- "font-size": em(14, 16)
552
- },
553
- "h2 code": {
554
- "font-size": em(21, 24)
555
- },
556
- "h3 code": {
557
- "font-size": em(18, 20)
558
- },
559
- "pre": {
560
- "font-size": em(14, 16),
561
- "line-height": round(24 / 14),
562
- "margin-top": em(24, 14),
563
- "margin-bottom": em(24, 14),
564
- "border-radius": rem(6),
565
- "padding-top": em(12, 14),
566
- "padding-inline-end": em(16, 14),
567
- "padding-bottom": em(12, 14),
568
- "padding-inline-start": em(16, 14)
569
- },
570
- "ol": {
571
- "margin-top": em(20, 16),
572
- "margin-bottom": em(20, 16),
573
- "padding-inline-start": em(26, 16)
574
- },
575
- "ul": {
576
- "margin-top": em(20, 16),
577
- "margin-bottom": em(20, 16),
578
- "padding-inline-start": em(26, 16)
579
- },
580
- "li": {
581
- "margin-top": em(8, 16),
582
- "margin-bottom": em(8, 16)
583
- },
584
- "ol > li": {
585
- "padding-inline-start": em(6, 16)
586
- },
587
- "ul > li": {
588
- "padding-inline-start": em(6, 16)
589
- },
590
- "> ul > li p": {
591
- "margin-top": em(12, 16),
592
- "margin-bottom": em(12, 16)
593
- },
594
- "> ul > li > p:first-child": {
595
- "margin-top": em(20, 16)
596
- },
597
- "> ul > li > p:last-child": {
598
- "margin-bottom": em(20, 16)
599
- },
600
- "> ol > li > p:first-child": {
601
- "margin-top": em(20, 16)
602
- },
603
- "> ol > li > p:last-child": {
604
- "margin-bottom": em(20, 16)
605
- },
606
- "ul ul, ul ol, ol ul, ol ol": {
607
- "margin-top": em(12, 16),
608
- "margin-bottom": em(12, 16)
609
- },
610
- "dl": {
611
- "margin-top": em(20, 16),
612
- "margin-bottom": em(20, 16)
613
- },
614
- "dt": {
615
- "margin-top": em(20, 16)
616
- },
617
- "dd": {
618
- "margin-top": em(8, 16),
619
- "padding-inline-start": em(26, 16)
620
- },
621
- "hr": {
622
- "margin-top": em(48, 16),
623
- "margin-bottom": em(48, 16)
624
- },
625
- "hr + *": {
626
- "margin-top": "0"
627
- },
628
- "h2 + *": {
629
- "margin-top": "0"
630
- },
631
- "h3 + *": {
632
- "margin-top": "0"
633
- },
634
- "h4 + *": {
635
- "margin-top": "0"
636
- },
637
- "table": {
638
- "font-size": em(14, 16),
639
- "line-height": round(24 / 14)
640
- },
641
- "thead th": {
642
- "padding-inline-end": em(8, 14),
643
- "padding-bottom": em(8, 14),
644
- "padding-inline-start": em(8, 14)
645
- },
646
- "thead th:first-child": {
647
- "padding-inline-start": "0"
648
- },
649
- "thead th:last-child": {
650
- "padding-inline-end": "0"
651
- },
652
- "tbody td, tfoot td": {
653
- "padding-top": em(8, 14),
654
- "padding-inline-end": em(8, 14),
655
- "padding-bottom": em(8, 14),
656
- "padding-inline-start": em(8, 14)
657
- },
658
- "tbody td:first-child, tfoot td:first-child": {
659
- "padding-inline-start": "0"
660
- },
661
- "tbody td:last-child, tfoot td:last-child": {
662
- "padding-inline-end": "0"
663
- },
664
- "figure": {
665
- "margin-top": em(32, 16),
666
- "margin-bottom": em(32, 16)
667
- },
668
- "figure > *": {
669
- "margin-top": "0",
670
- "margin-bottom": "0"
671
- },
672
- "figcaption": {
673
- "font-size": em(14, 16),
674
- "line-height": round(20 / 14),
675
- "margin-top": em(12, 14)
676
- },
677
- "> :first-child": {
678
- "margin-top": "0"
679
- },
680
- "> :last-child": {
681
- "margin-bottom": "0"
682
- }
683
- },
684
- "lg": {
685
- "font-size": rem(18),
686
- "line-height": round(32 / 18),
687
- "p": {
688
- "margin-top": em(24, 18),
689
- "margin-bottom": em(24, 18)
690
- },
691
- '[class~="lead"]': {
692
- "font-size": em(22, 18),
693
- "line-height": round(32 / 22),
694
- "margin-top": em(24, 22),
695
- "margin-bottom": em(24, 22)
696
- },
697
- "blockquote": {
698
- "margin-top": em(40, 24),
699
- "margin-bottom": em(40, 24),
700
- "padding-inline-start": em(24, 24)
701
- },
702
- "h1": {
703
- "font-size": em(48, 18),
704
- "margin-top": "0",
705
- "margin-bottom": em(40, 48),
706
- "line-height": round(48 / 48)
707
- },
708
- "h2": {
709
- "font-size": em(30, 18),
710
- "margin-top": em(56, 30),
711
- "margin-bottom": em(32, 30),
712
- "line-height": round(40 / 30)
713
- },
714
- "h3": {
715
- "font-size": em(24, 18),
716
- "margin-top": em(40, 24),
717
- "margin-bottom": em(16, 24),
718
- "line-height": round(36 / 24)
719
- },
720
- "h4": {
721
- "margin-top": em(32, 18),
722
- "margin-bottom": em(8, 18),
723
- "line-height": round(28 / 18)
724
- },
725
- "img": {
726
- "margin-top": em(32, 18),
727
- "margin-bottom": em(32, 18)
728
- },
729
- "picture": {
730
- "margin-top": em(32, 18),
731
- "margin-bottom": em(32, 18)
732
- },
733
- "picture > img": {
734
- "margin-top": "0",
735
- "margin-bottom": "0"
736
- },
737
- "video": {
738
- "margin-top": em(32, 18),
739
- "margin-bottom": em(32, 18)
740
- },
741
- "kbd": {
742
- "font-size": em(16, 18),
743
- "border-radius": rem(5),
744
- "padding-top": em(4, 18),
745
- "padding-inline-end": em(8, 18),
746
- "padding-bottom": em(4, 18),
747
- "padding-inline-start": em(8, 18)
748
- },
749
- "code": {
750
- "font-size": em(16, 18)
751
- },
752
- "h2 code": {
753
- "font-size": em(26, 30)
754
- },
755
- "h3 code": {
756
- "font-size": em(21, 24)
757
- },
758
- "pre": {
759
- "font-size": em(16, 18),
760
- "line-height": round(28 / 16),
761
- "margin-top": em(32, 16),
762
- "margin-bottom": em(32, 16),
763
- "border-radius": rem(6),
764
- "padding-top": em(16, 16),
765
- "padding-inline-end": em(24, 16),
766
- "padding-bottom": em(16, 16),
767
- "padding-inline-start": em(24, 16)
768
- },
769
- "ol": {
770
- "margin-top": em(24, 18),
771
- "margin-bottom": em(24, 18),
772
- "padding-inline-start": em(28, 18)
773
- },
774
- "ul": {
775
- "margin-top": em(24, 18),
776
- "margin-bottom": em(24, 18),
777
- "padding-inline-start": em(28, 18)
778
- },
779
- "li": {
780
- "margin-top": em(12, 18),
781
- "margin-bottom": em(12, 18)
782
- },
783
- "ol > li": {
784
- "padding-inline-start": em(8, 18)
785
- },
786
- "ul > li": {
787
- "padding-inline-start": em(8, 18)
788
- },
789
- "> ul > li p": {
790
- "margin-top": em(16, 18),
791
- "margin-bottom": em(16, 18)
792
- },
793
- "> ul > li > p:first-child": {
794
- "margin-top": em(24, 18)
795
- },
796
- "> ul > li > p:last-child": {
797
- "margin-bottom": em(24, 18)
798
- },
799
- "> ol > li > p:first-child": {
800
- "margin-top": em(24, 18)
801
- },
802
- "> ol > li > p:last-child": {
803
- "margin-bottom": em(24, 18)
804
- },
805
- "ul ul, ul ol, ol ul, ol ol": {
806
- "margin-top": em(16, 18),
807
- "margin-bottom": em(16, 18)
808
- },
809
- "dl": {
810
- "margin-top": em(24, 18),
811
- "margin-bottom": em(24, 18)
812
- },
813
- "dt": {
814
- "margin-top": em(24, 18)
815
- },
816
- "dd": {
817
- "margin-top": em(12, 18),
818
- "padding-inline-start": em(28, 18)
819
- },
820
- "hr": {
821
- "margin-top": em(56, 18),
822
- "margin-bottom": em(56, 18)
823
- },
824
- "hr + *": {
825
- "margin-top": "0"
826
- },
827
- "h2 + *": {
828
- "margin-top": "0"
829
- },
830
- "h3 + *": {
831
- "margin-top": "0"
832
- },
833
- "h4 + *": {
834
- "margin-top": "0"
835
- },
836
- "table": {
837
- "font-size": em(16, 18),
838
- "line-height": round(24 / 16)
839
- },
840
- "thead th": {
841
- "padding-inline-end": em(12, 16),
842
- "padding-bottom": em(12, 16),
843
- "padding-inline-start": em(12, 16)
844
- },
845
- "thead th:first-child": {
846
- "padding-inline-start": "0"
847
- },
848
- "thead th:last-child": {
849
- "padding-inline-end": "0"
850
- },
851
- "tbody td, tfoot td": {
852
- "padding-top": em(12, 16),
853
- "padding-inline-end": em(12, 16),
854
- "padding-bottom": em(12, 16),
855
- "padding-inline-start": em(12, 16)
856
- },
857
- "tbody td:first-child, tfoot td:first-child": {
858
- "padding-inline-start": "0"
859
- },
860
- "tbody td:last-child, tfoot td:last-child": {
861
- "padding-inline-end": "0"
862
- },
863
- "figure": {
864
- "margin-top": em(32, 18),
865
- "margin-bottom": em(32, 18)
866
- },
867
- "figure > *": {
868
- "margin-top": "0",
869
- "margin-bottom": "0"
870
- },
871
- "figcaption": {
872
- "font-size": em(16, 18),
873
- "line-height": round(24 / 16),
874
- "margin-top": em(16, 16)
875
- },
876
- "> :first-child": {
877
- "margin-top": "0"
878
- },
879
- "> :last-child": {
880
- "margin-bottom": "0"
881
- }
882
- },
883
- "xl": {
884
- "font-size": rem(20),
885
- "line-height": round(36 / 20),
886
- "p": {
887
- "margin-top": em(24, 20),
888
- "margin-bottom": em(24, 20)
889
- },
890
- '[class~="lead"]': {
891
- "font-size": em(24, 20),
892
- "line-height": round(36 / 24),
893
- "margin-top": em(24, 24),
894
- "margin-bottom": em(24, 24)
895
- },
896
- "blockquote": {
897
- "margin-top": em(48, 30),
898
- "margin-bottom": em(48, 30),
899
- "padding-inline-start": em(32, 30)
900
- },
901
- "h1": {
902
- "font-size": em(56, 20),
903
- "margin-top": "0",
904
- "margin-bottom": em(48, 56),
905
- "line-height": round(56 / 56)
906
- },
907
- "h2": {
908
- "font-size": em(36, 20),
909
- "margin-top": em(56, 36),
910
- "margin-bottom": em(32, 36),
911
- "line-height": round(40 / 36)
912
- },
913
- "h3": {
914
- "font-size": em(30, 20),
915
- "margin-top": em(48, 30),
916
- "margin-bottom": em(20, 30),
917
- "line-height": round(40 / 30)
918
- },
919
- "h4": {
920
- "margin-top": em(36, 20),
921
- "margin-bottom": em(12, 20),
922
- "line-height": round(32 / 20)
923
- },
924
- "img": {
925
- "margin-top": em(40, 20),
926
- "margin-bottom": em(40, 20)
927
- },
928
- "picture": {
929
- "margin-top": em(40, 20),
930
- "margin-bottom": em(40, 20)
931
- },
932
- "picture > img": {
933
- "margin-top": "0",
934
- "margin-bottom": "0"
935
- },
936
- "video": {
937
- "margin-top": em(40, 20),
938
- "margin-bottom": em(40, 20)
939
- },
940
- "kbd": {
941
- "font-size": em(18, 20),
942
- "border-radius": rem(5),
943
- "padding-top": em(5, 20),
944
- "padding-inline-end": em(8, 20),
945
- "padding-bottom": em(5, 20),
946
- "padding-inline-start": em(8, 20)
947
- },
948
- "code": {
949
- "font-size": em(18, 20)
950
- },
951
- "h2 code": {
952
- "font-size": em(31, 36)
953
- },
954
- "h3 code": {
955
- "font-size": em(27, 30)
956
- },
957
- "pre": {
958
- "font-size": em(18, 20),
959
- "line-height": round(32 / 18),
960
- "margin-top": em(36, 18),
961
- "margin-bottom": em(36, 18),
962
- "border-radius": rem(8),
963
- "padding-top": em(20, 18),
964
- "padding-inline-end": em(24, 18),
965
- "padding-bottom": em(20, 18),
966
- "padding-inline-start": em(24, 18)
967
- },
968
- "ol": {
969
- "margin-top": em(24, 20),
970
- "margin-bottom": em(24, 20),
971
- "padding-inline-start": em(32, 20)
972
- },
973
- "ul": {
974
- "margin-top": em(24, 20),
975
- "margin-bottom": em(24, 20),
976
- "padding-inline-start": em(32, 20)
977
- },
978
- "li": {
979
- "margin-top": em(12, 20),
980
- "margin-bottom": em(12, 20)
981
- },
982
- "ol > li": {
983
- "padding-inline-start": em(8, 20)
984
- },
985
- "ul > li": {
986
- "padding-inline-start": em(8, 20)
987
- },
988
- "> ul > li p": {
989
- "margin-top": em(16, 20),
990
- "margin-bottom": em(16, 20)
991
- },
992
- "> ul > li > p:first-child": {
993
- "margin-top": em(24, 20)
994
- },
995
- "> ul > li > p:last-child": {
996
- "margin-bottom": em(24, 20)
997
- },
998
- "> ol > li > p:first-child": {
999
- "margin-top": em(24, 20)
1000
- },
1001
- "> ol > li > p:last-child": {
1002
- "margin-bottom": em(24, 20)
1003
- },
1004
- "ul ul, ul ol, ol ul, ol ol": {
1005
- "margin-top": em(16, 20),
1006
- "margin-bottom": em(16, 20)
1007
- },
1008
- "dl": {
1009
- "margin-top": em(24, 20),
1010
- "margin-bottom": em(24, 20)
1011
- },
1012
- "dt": {
1013
- "margin-top": em(24, 20)
1014
- },
1015
- "dd": {
1016
- "margin-top": em(12, 20),
1017
- "padding-inline-start": em(32, 20)
1018
- },
1019
- "hr": {
1020
- "margin-top": em(56, 20),
1021
- "margin-bottom": em(56, 20)
1022
- },
1023
- "hr + *": {
1024
- "margin-top": "0"
1025
- },
1026
- "h2 + *": {
1027
- "margin-top": "0"
1028
- },
1029
- "h3 + *": {
1030
- "margin-top": "0"
1031
- },
1032
- "h4 + *": {
1033
- "margin-top": "0"
1034
- },
1035
- "table": {
1036
- "font-size": em(18, 20),
1037
- "line-height": round(28 / 18)
1038
- },
1039
- "thead th": {
1040
- "padding-inline-end": em(12, 18),
1041
- "padding-bottom": em(16, 18),
1042
- "padding-inline-start": em(12, 18)
1043
- },
1044
- "thead th:first-child": {
1045
- "padding-inline-start": "0"
1046
- },
1047
- "thead th:last-child": {
1048
- "padding-inline-end": "0"
1049
- },
1050
- "tbody td, tfoot td": {
1051
- "padding-top": em(16, 18),
1052
- "padding-inline-end": em(12, 18),
1053
- "padding-bottom": em(16, 18),
1054
- "padding-inline-start": em(12, 18)
1055
- },
1056
- "tbody td:first-child, tfoot td:first-child": {
1057
- "padding-inline-start": "0"
1058
- },
1059
- "tbody td:last-child, tfoot td:last-child": {
1060
- "padding-inline-end": "0"
1061
- },
1062
- "figure": {
1063
- "margin-top": em(40, 20),
1064
- "margin-bottom": em(40, 20)
1065
- },
1066
- "figure > *": {
1067
- "margin-top": "0",
1068
- "margin-bottom": "0"
1069
- },
1070
- "figcaption": {
1071
- "font-size": em(18, 20),
1072
- "line-height": round(28 / 18),
1073
- "margin-top": em(18, 18)
1074
- },
1075
- "> :first-child": {
1076
- "margin-top": "0"
1077
- },
1078
- "> :last-child": {
1079
- "margin-bottom": "0"
1080
- }
1081
- },
1082
- "2xl": {
1083
- "font-size": rem(24),
1084
- "line-height": round(40 / 24),
1085
- "p": {
1086
- "margin-top": em(32, 24),
1087
- "margin-bottom": em(32, 24)
1088
- },
1089
- '[class~="lead"]': {
1090
- "font-size": em(30, 24),
1091
- "line-height": round(44 / 30),
1092
- "margin-top": em(32, 30),
1093
- "margin-bottom": em(32, 30)
1094
- },
1095
- "blockquote": {
1096
- "margin-top": em(64, 36),
1097
- "margin-bottom": em(64, 36),
1098
- "padding-inline-start": em(40, 36)
1099
- },
1100
- "h1": {
1101
- "font-size": em(64, 24),
1102
- "margin-top": "0",
1103
- "margin-bottom": em(56, 64),
1104
- "line-height": round(64 / 64)
1105
- },
1106
- "h2": {
1107
- "font-size": em(48, 24),
1108
- "margin-top": em(72, 48),
1109
- "margin-bottom": em(40, 48),
1110
- "line-height": round(52 / 48)
1111
- },
1112
- "h3": {
1113
- "font-size": em(36, 24),
1114
- "margin-top": em(56, 36),
1115
- "margin-bottom": em(24, 36),
1116
- "line-height": round(44 / 36)
1117
- },
1118
- "h4": {
1119
- "margin-top": em(40, 24),
1120
- "margin-bottom": em(16, 24),
1121
- "line-height": round(36 / 24)
1122
- },
1123
- "img": {
1124
- "margin-top": em(48, 24),
1125
- "margin-bottom": em(48, 24)
1126
- },
1127
- "picture": {
1128
- "margin-top": em(48, 24),
1129
- "margin-bottom": em(48, 24)
1130
- },
1131
- "picture > img": {
1132
- "margin-top": "0",
1133
- "margin-bottom": "0"
1134
- },
1135
- "video": {
1136
- "margin-top": em(48, 24),
1137
- "margin-bottom": em(48, 24)
1138
- },
1139
- "kbd": {
1140
- "font-size": em(20, 24),
1141
- "border-radius": rem(6),
1142
- "padding-top": em(6, 24),
1143
- "padding-inline-end": em(8, 24),
1144
- "padding-bottom": em(6, 24),
1145
- "padding-inline-start": em(8, 24)
1146
- },
1147
- "code": {
1148
- "font-size": em(20, 24)
1149
- },
1150
- "h2 code": {
1151
- "font-size": em(42, 48)
1152
- },
1153
- "h3 code": {
1154
- "font-size": em(32, 36)
1155
- },
1156
- "pre": {
1157
- "font-size": em(20, 24),
1158
- "line-height": round(36 / 20),
1159
- "margin-top": em(40, 20),
1160
- "margin-bottom": em(40, 20),
1161
- "border-radius": rem(8),
1162
- "padding-top": em(24, 20),
1163
- "padding-inline-end": em(32, 20),
1164
- "padding-bottom": em(24, 20),
1165
- "padding-inline-start": em(32, 20)
1166
- },
1167
- "ol": {
1168
- "margin-top": em(32, 24),
1169
- "margin-bottom": em(32, 24),
1170
- "padding-inline-start": em(38, 24)
1171
- },
1172
- "ul": {
1173
- "margin-top": em(32, 24),
1174
- "margin-bottom": em(32, 24),
1175
- "padding-inline-start": em(38, 24)
1176
- },
1177
- "li": {
1178
- "margin-top": em(12, 24),
1179
- "margin-bottom": em(12, 24)
1180
- },
1181
- "ol > li": {
1182
- "padding-inline-start": em(10, 24)
1183
- },
1184
- "ul > li": {
1185
- "padding-inline-start": em(10, 24)
1186
- },
1187
- "> ul > li p": {
1188
- "margin-top": em(20, 24),
1189
- "margin-bottom": em(20, 24)
1190
- },
1191
- "> ul > li > p:first-child": {
1192
- "margin-top": em(32, 24)
1193
- },
1194
- "> ul > li > p:last-child": {
1195
- "margin-bottom": em(32, 24)
1196
- },
1197
- "> ol > li > p:first-child": {
1198
- "margin-top": em(32, 24)
1199
- },
1200
- "> ol > li > p:last-child": {
1201
- "margin-bottom": em(32, 24)
1202
- },
1203
- "ul ul, ul ol, ol ul, ol ol": {
1204
- "margin-top": em(16, 24),
1205
- "margin-bottom": em(16, 24)
1206
- },
1207
- "dl": {
1208
- "margin-top": em(32, 24),
1209
- "margin-bottom": em(32, 24)
1210
- },
1211
- "dt": {
1212
- "margin-top": em(32, 24)
1213
- },
1214
- "dd": {
1215
- "margin-top": em(12, 24),
1216
- "padding-inline-start": em(38, 24)
1217
- },
1218
- "hr": {
1219
- "margin-top": em(72, 24),
1220
- "margin-bottom": em(72, 24)
1221
- },
1222
- "hr + *": {
1223
- "margin-top": "0"
1224
- },
1225
- "h2 + *": {
1226
- "margin-top": "0"
1227
- },
1228
- "h3 + *": {
1229
- "margin-top": "0"
1230
- },
1231
- "h4 + *": {
1232
- "margin-top": "0"
1233
- },
1234
- "table": {
1235
- "font-size": em(20, 24),
1236
- "line-height": round(28 / 20)
1237
- },
1238
- "thead th": {
1239
- "padding-inline-end": em(12, 20),
1240
- "padding-bottom": em(16, 20),
1241
- "padding-inline-start": em(12, 20)
1242
- },
1243
- "thead th:first-child": {
1244
- "padding-inline-start": "0"
1245
- },
1246
- "thead th:last-child": {
1247
- "padding-inline-end": "0"
1248
- },
1249
- "tbody td, tfoot td": {
1250
- "padding-top": em(16, 20),
1251
- "padding-inline-end": em(12, 20),
1252
- "padding-bottom": em(16, 20),
1253
- "padding-inline-start": em(12, 20)
1254
- },
1255
- "tbody td:first-child, tfoot td:first-child": {
1256
- "padding-inline-start": "0"
1257
- },
1258
- "tbody td:last-child, tfoot td:last-child": {
1259
- "padding-inline-end": "0"
1260
- },
1261
- "figure": {
1262
- "margin-top": em(48, 24),
1263
- "margin-bottom": em(48, 24)
1264
- },
1265
- "figure > *": {
1266
- "margin-top": "0",
1267
- "margin-bottom": "0"
1268
- },
1269
- "figcaption": {
1270
- "font-size": em(20, 24),
1271
- "line-height": round(32 / 20),
1272
- "margin-top": em(20, 20)
1273
- },
1274
- "> :first-child": {
1275
- "margin-top": "0"
1276
- },
1277
- "> :last-child": {
1278
- "margin-bottom": "0"
1279
- }
1280
- }
222
+ "sm": {
223
+ "font-size": rem(14),
224
+ "line-height": round(24 / 14),
225
+ "p": {
226
+ "margin-top": em(16, 14),
227
+ "margin-bottom": em(16, 14)
228
+ },
229
+ "[class~=\"lead\"]": {
230
+ "font-size": em(18, 14),
231
+ "line-height": round(28 / 18),
232
+ "margin-top": em(16, 18),
233
+ "margin-bottom": em(16, 18)
234
+ },
235
+ "blockquote": {
236
+ "margin-top": em(24, 18),
237
+ "margin-bottom": em(24, 18),
238
+ "padding-inline-start": em(20, 18)
239
+ },
240
+ "h1": {
241
+ "font-size": em(30, 14),
242
+ "margin-top": "0",
243
+ "margin-bottom": em(24, 30),
244
+ "line-height": round(36 / 30)
245
+ },
246
+ "h2": {
247
+ "font-size": em(20, 14),
248
+ "margin-top": em(32, 20),
249
+ "margin-bottom": em(16, 20),
250
+ "line-height": round(28 / 20)
251
+ },
252
+ "h3": {
253
+ "font-size": em(18, 14),
254
+ "margin-top": em(28, 18),
255
+ "margin-bottom": em(8, 18),
256
+ "line-height": round(28 / 18)
257
+ },
258
+ "h4": {
259
+ "margin-top": em(20, 14),
260
+ "margin-bottom": em(8, 14),
261
+ "line-height": round(20 / 14)
262
+ },
263
+ "img": {
264
+ "margin-top": em(24, 14),
265
+ "margin-bottom": em(24, 14)
266
+ },
267
+ "picture": {
268
+ "margin-top": em(24, 14),
269
+ "margin-bottom": em(24, 14)
270
+ },
271
+ "picture > img": {
272
+ "margin-top": "0",
273
+ "margin-bottom": "0"
274
+ },
275
+ "video": {
276
+ "margin-top": em(24, 14),
277
+ "margin-bottom": em(24, 14)
278
+ },
279
+ "kbd": {
280
+ "font-size": em(12, 14),
281
+ "border-radius": rem(5),
282
+ "padding-top": em(2, 14),
283
+ "padding-inline-end": em(5, 14),
284
+ "padding-bottom": em(2, 14),
285
+ "padding-inline-start": em(5, 14)
286
+ },
287
+ "code": { "font-size": em(12, 14) },
288
+ "h2 code": { "font-size": em(18, 20) },
289
+ "h3 code": { "font-size": em(16, 18) },
290
+ "pre": {
291
+ "font-size": em(12, 14),
292
+ "line-height": round(20 / 12),
293
+ "margin-top": em(20, 12),
294
+ "margin-bottom": em(20, 12),
295
+ "border-radius": rem(4),
296
+ "padding-top": em(8, 12),
297
+ "padding-inline-end": em(12, 12),
298
+ "padding-bottom": em(8, 12),
299
+ "padding-inline-start": em(12, 12)
300
+ },
301
+ "ol": {
302
+ "margin-top": em(16, 14),
303
+ "margin-bottom": em(16, 14),
304
+ "padding-inline-start": em(22, 14)
305
+ },
306
+ "ul": {
307
+ "margin-top": em(16, 14),
308
+ "margin-bottom": em(16, 14),
309
+ "padding-inline-start": em(22, 14)
310
+ },
311
+ "li": {
312
+ "margin-top": em(4, 14),
313
+ "margin-bottom": em(4, 14)
314
+ },
315
+ "ol > li": { "padding-inline-start": em(6, 14) },
316
+ "ul > li": { "padding-inline-start": em(6, 14) },
317
+ "> ul > li p": {
318
+ "margin-top": em(8, 14),
319
+ "margin-bottom": em(8, 14)
320
+ },
321
+ "> ul > li > p:first-child": { "margin-top": em(16, 14) },
322
+ "> ul > li > p:last-child": { "margin-bottom": em(16, 14) },
323
+ "> ol > li > p:first-child": { "margin-top": em(16, 14) },
324
+ "> ol > li > p:last-child": { "margin-bottom": em(16, 14) },
325
+ "ul ul, ul ol, ol ul, ol ol": {
326
+ "margin-top": em(8, 14),
327
+ "margin-bottom": em(8, 14)
328
+ },
329
+ "dl": {
330
+ "margin-top": em(16, 14),
331
+ "margin-bottom": em(16, 14)
332
+ },
333
+ "dt": { "margin-top": em(16, 14) },
334
+ "dd": {
335
+ "margin-top": em(4, 14),
336
+ "padding-inline-start": em(22, 14)
337
+ },
338
+ "hr": {
339
+ "margin-top": em(40, 14),
340
+ "margin-bottom": em(40, 14)
341
+ },
342
+ "hr + *": { "margin-top": "0" },
343
+ "h2 + *": { "margin-top": "0" },
344
+ "h3 + *": { "margin-top": "0" },
345
+ "h4 + *": { "margin-top": "0" },
346
+ "table": {
347
+ "font-size": em(12, 14),
348
+ "line-height": round(18 / 12)
349
+ },
350
+ "thead th": {
351
+ "padding-inline-end": em(12, 12),
352
+ "padding-bottom": em(8, 12),
353
+ "padding-inline-start": em(12, 12)
354
+ },
355
+ "thead th:first-child": { "padding-inline-start": "0" },
356
+ "thead th:last-child": { "padding-inline-end": "0" },
357
+ "tbody td, tfoot td": {
358
+ "padding-top": em(8, 12),
359
+ "padding-inline-end": em(12, 12),
360
+ "padding-bottom": em(8, 12),
361
+ "padding-inline-start": em(12, 12)
362
+ },
363
+ "tbody td:first-child, tfoot td:first-child": { "padding-inline-start": "0" },
364
+ "tbody td:last-child, tfoot td:last-child": { "padding-inline-end": "0" },
365
+ "figure": {
366
+ "margin-top": em(24, 14),
367
+ "margin-bottom": em(24, 14)
368
+ },
369
+ "figure > *": {
370
+ "margin-top": "0",
371
+ "margin-bottom": "0"
372
+ },
373
+ "figcaption": {
374
+ "font-size": em(12, 14),
375
+ "line-height": round(16 / 12),
376
+ "margin-top": em(8, 12)
377
+ },
378
+ "> :first-child": { "margin-top": "0" },
379
+ "> :last-child": { "margin-bottom": "0" }
380
+ },
381
+ "base": {
382
+ "font-size": rem(16),
383
+ "line-height": round(28 / 16),
384
+ "p": {
385
+ "margin-top": em(20, 16),
386
+ "margin-bottom": em(20, 16)
387
+ },
388
+ "[class~=\"lead\"]": {
389
+ "font-size": em(20, 16),
390
+ "line-height": round(32 / 20),
391
+ "margin-top": em(24, 20),
392
+ "margin-bottom": em(24, 20)
393
+ },
394
+ "blockquote": {
395
+ "margin-top": em(32, 20),
396
+ "margin-bottom": em(32, 20),
397
+ "padding-inline-start": em(20, 20)
398
+ },
399
+ "h1": {
400
+ "font-size": em(36, 16),
401
+ "margin-top": "0",
402
+ "margin-bottom": em(32, 36),
403
+ "line-height": round(40 / 36)
404
+ },
405
+ "h2": {
406
+ "font-size": em(24, 16),
407
+ "margin-top": em(48, 24),
408
+ "margin-bottom": em(24, 24),
409
+ "line-height": round(32 / 24)
410
+ },
411
+ "h3": {
412
+ "font-size": em(20, 16),
413
+ "margin-top": em(32, 20),
414
+ "margin-bottom": em(12, 20),
415
+ "line-height": round(32 / 20)
416
+ },
417
+ "h4": {
418
+ "margin-top": em(24, 16),
419
+ "margin-bottom": em(8, 16),
420
+ "line-height": round(24 / 16)
421
+ },
422
+ "img": {
423
+ "margin-top": em(32, 16),
424
+ "margin-bottom": em(32, 16)
425
+ },
426
+ "picture": {
427
+ "margin-top": em(32, 16),
428
+ "margin-bottom": em(32, 16)
429
+ },
430
+ "picture > img": {
431
+ "margin-top": "0",
432
+ "margin-bottom": "0"
433
+ },
434
+ "video": {
435
+ "margin-top": em(32, 16),
436
+ "margin-bottom": em(32, 16)
437
+ },
438
+ "kbd": {
439
+ "font-size": em(14, 16),
440
+ "border-radius": rem(5),
441
+ "padding-top": em(3, 16),
442
+ "padding-inline-end": em(6, 16),
443
+ "padding-bottom": em(3, 16),
444
+ "padding-inline-start": em(6, 16)
445
+ },
446
+ "code": { "font-size": em(14, 16) },
447
+ "h2 code": { "font-size": em(21, 24) },
448
+ "h3 code": { "font-size": em(18, 20) },
449
+ "pre": {
450
+ "font-size": em(14, 16),
451
+ "line-height": round(24 / 14),
452
+ "margin-top": em(24, 14),
453
+ "margin-bottom": em(24, 14),
454
+ "border-radius": rem(6),
455
+ "padding-top": em(12, 14),
456
+ "padding-inline-end": em(16, 14),
457
+ "padding-bottom": em(12, 14),
458
+ "padding-inline-start": em(16, 14)
459
+ },
460
+ "ol": {
461
+ "margin-top": em(20, 16),
462
+ "margin-bottom": em(20, 16),
463
+ "padding-inline-start": em(26, 16)
464
+ },
465
+ "ul": {
466
+ "margin-top": em(20, 16),
467
+ "margin-bottom": em(20, 16),
468
+ "padding-inline-start": em(26, 16)
469
+ },
470
+ "li": {
471
+ "margin-top": em(8, 16),
472
+ "margin-bottom": em(8, 16)
473
+ },
474
+ "ol > li": { "padding-inline-start": em(6, 16) },
475
+ "ul > li": { "padding-inline-start": em(6, 16) },
476
+ "> ul > li p": {
477
+ "margin-top": em(12, 16),
478
+ "margin-bottom": em(12, 16)
479
+ },
480
+ "> ul > li > p:first-child": { "margin-top": em(20, 16) },
481
+ "> ul > li > p:last-child": { "margin-bottom": em(20, 16) },
482
+ "> ol > li > p:first-child": { "margin-top": em(20, 16) },
483
+ "> ol > li > p:last-child": { "margin-bottom": em(20, 16) },
484
+ "ul ul, ul ol, ol ul, ol ol": {
485
+ "margin-top": em(12, 16),
486
+ "margin-bottom": em(12, 16)
487
+ },
488
+ "dl": {
489
+ "margin-top": em(20, 16),
490
+ "margin-bottom": em(20, 16)
491
+ },
492
+ "dt": { "margin-top": em(20, 16) },
493
+ "dd": {
494
+ "margin-top": em(8, 16),
495
+ "padding-inline-start": em(26, 16)
496
+ },
497
+ "hr": {
498
+ "margin-top": em(48, 16),
499
+ "margin-bottom": em(48, 16)
500
+ },
501
+ "hr + *": { "margin-top": "0" },
502
+ "h2 + *": { "margin-top": "0" },
503
+ "h3 + *": { "margin-top": "0" },
504
+ "h4 + *": { "margin-top": "0" },
505
+ "table": {
506
+ "font-size": em(14, 16),
507
+ "line-height": round(24 / 14)
508
+ },
509
+ "thead th": {
510
+ "padding-inline-end": em(8, 14),
511
+ "padding-bottom": em(8, 14),
512
+ "padding-inline-start": em(8, 14)
513
+ },
514
+ "thead th:first-child": { "padding-inline-start": "0" },
515
+ "thead th:last-child": { "padding-inline-end": "0" },
516
+ "tbody td, tfoot td": {
517
+ "padding-top": em(8, 14),
518
+ "padding-inline-end": em(8, 14),
519
+ "padding-bottom": em(8, 14),
520
+ "padding-inline-start": em(8, 14)
521
+ },
522
+ "tbody td:first-child, tfoot td:first-child": { "padding-inline-start": "0" },
523
+ "tbody td:last-child, tfoot td:last-child": { "padding-inline-end": "0" },
524
+ "figure": {
525
+ "margin-top": em(32, 16),
526
+ "margin-bottom": em(32, 16)
527
+ },
528
+ "figure > *": {
529
+ "margin-top": "0",
530
+ "margin-bottom": "0"
531
+ },
532
+ "figcaption": {
533
+ "font-size": em(14, 16),
534
+ "line-height": round(20 / 14),
535
+ "margin-top": em(12, 14)
536
+ },
537
+ "> :first-child": { "margin-top": "0" },
538
+ "> :last-child": { "margin-bottom": "0" }
539
+ },
540
+ "lg": {
541
+ "font-size": rem(18),
542
+ "line-height": round(32 / 18),
543
+ "p": {
544
+ "margin-top": em(24, 18),
545
+ "margin-bottom": em(24, 18)
546
+ },
547
+ "[class~=\"lead\"]": {
548
+ "font-size": em(22, 18),
549
+ "line-height": round(32 / 22),
550
+ "margin-top": em(24, 22),
551
+ "margin-bottom": em(24, 22)
552
+ },
553
+ "blockquote": {
554
+ "margin-top": em(40, 24),
555
+ "margin-bottom": em(40, 24),
556
+ "padding-inline-start": em(24, 24)
557
+ },
558
+ "h1": {
559
+ "font-size": em(48, 18),
560
+ "margin-top": "0",
561
+ "margin-bottom": em(40, 48),
562
+ "line-height": round(48 / 48)
563
+ },
564
+ "h2": {
565
+ "font-size": em(30, 18),
566
+ "margin-top": em(56, 30),
567
+ "margin-bottom": em(32, 30),
568
+ "line-height": round(40 / 30)
569
+ },
570
+ "h3": {
571
+ "font-size": em(24, 18),
572
+ "margin-top": em(40, 24),
573
+ "margin-bottom": em(16, 24),
574
+ "line-height": round(36 / 24)
575
+ },
576
+ "h4": {
577
+ "margin-top": em(32, 18),
578
+ "margin-bottom": em(8, 18),
579
+ "line-height": round(28 / 18)
580
+ },
581
+ "img": {
582
+ "margin-top": em(32, 18),
583
+ "margin-bottom": em(32, 18)
584
+ },
585
+ "picture": {
586
+ "margin-top": em(32, 18),
587
+ "margin-bottom": em(32, 18)
588
+ },
589
+ "picture > img": {
590
+ "margin-top": "0",
591
+ "margin-bottom": "0"
592
+ },
593
+ "video": {
594
+ "margin-top": em(32, 18),
595
+ "margin-bottom": em(32, 18)
596
+ },
597
+ "kbd": {
598
+ "font-size": em(16, 18),
599
+ "border-radius": rem(5),
600
+ "padding-top": em(4, 18),
601
+ "padding-inline-end": em(8, 18),
602
+ "padding-bottom": em(4, 18),
603
+ "padding-inline-start": em(8, 18)
604
+ },
605
+ "code": { "font-size": em(16, 18) },
606
+ "h2 code": { "font-size": em(26, 30) },
607
+ "h3 code": { "font-size": em(21, 24) },
608
+ "pre": {
609
+ "font-size": em(16, 18),
610
+ "line-height": round(28 / 16),
611
+ "margin-top": em(32, 16),
612
+ "margin-bottom": em(32, 16),
613
+ "border-radius": rem(6),
614
+ "padding-top": em(16, 16),
615
+ "padding-inline-end": em(24, 16),
616
+ "padding-bottom": em(16, 16),
617
+ "padding-inline-start": em(24, 16)
618
+ },
619
+ "ol": {
620
+ "margin-top": em(24, 18),
621
+ "margin-bottom": em(24, 18),
622
+ "padding-inline-start": em(28, 18)
623
+ },
624
+ "ul": {
625
+ "margin-top": em(24, 18),
626
+ "margin-bottom": em(24, 18),
627
+ "padding-inline-start": em(28, 18)
628
+ },
629
+ "li": {
630
+ "margin-top": em(12, 18),
631
+ "margin-bottom": em(12, 18)
632
+ },
633
+ "ol > li": { "padding-inline-start": em(8, 18) },
634
+ "ul > li": { "padding-inline-start": em(8, 18) },
635
+ "> ul > li p": {
636
+ "margin-top": em(16, 18),
637
+ "margin-bottom": em(16, 18)
638
+ },
639
+ "> ul > li > p:first-child": { "margin-top": em(24, 18) },
640
+ "> ul > li > p:last-child": { "margin-bottom": em(24, 18) },
641
+ "> ol > li > p:first-child": { "margin-top": em(24, 18) },
642
+ "> ol > li > p:last-child": { "margin-bottom": em(24, 18) },
643
+ "ul ul, ul ol, ol ul, ol ol": {
644
+ "margin-top": em(16, 18),
645
+ "margin-bottom": em(16, 18)
646
+ },
647
+ "dl": {
648
+ "margin-top": em(24, 18),
649
+ "margin-bottom": em(24, 18)
650
+ },
651
+ "dt": { "margin-top": em(24, 18) },
652
+ "dd": {
653
+ "margin-top": em(12, 18),
654
+ "padding-inline-start": em(28, 18)
655
+ },
656
+ "hr": {
657
+ "margin-top": em(56, 18),
658
+ "margin-bottom": em(56, 18)
659
+ },
660
+ "hr + *": { "margin-top": "0" },
661
+ "h2 + *": { "margin-top": "0" },
662
+ "h3 + *": { "margin-top": "0" },
663
+ "h4 + *": { "margin-top": "0" },
664
+ "table": {
665
+ "font-size": em(16, 18),
666
+ "line-height": round(24 / 16)
667
+ },
668
+ "thead th": {
669
+ "padding-inline-end": em(12, 16),
670
+ "padding-bottom": em(12, 16),
671
+ "padding-inline-start": em(12, 16)
672
+ },
673
+ "thead th:first-child": { "padding-inline-start": "0" },
674
+ "thead th:last-child": { "padding-inline-end": "0" },
675
+ "tbody td, tfoot td": {
676
+ "padding-top": em(12, 16),
677
+ "padding-inline-end": em(12, 16),
678
+ "padding-bottom": em(12, 16),
679
+ "padding-inline-start": em(12, 16)
680
+ },
681
+ "tbody td:first-child, tfoot td:first-child": { "padding-inline-start": "0" },
682
+ "tbody td:last-child, tfoot td:last-child": { "padding-inline-end": "0" },
683
+ "figure": {
684
+ "margin-top": em(32, 18),
685
+ "margin-bottom": em(32, 18)
686
+ },
687
+ "figure > *": {
688
+ "margin-top": "0",
689
+ "margin-bottom": "0"
690
+ },
691
+ "figcaption": {
692
+ "font-size": em(16, 18),
693
+ "line-height": round(24 / 16),
694
+ "margin-top": em(16, 16)
695
+ },
696
+ "> :first-child": { "margin-top": "0" },
697
+ "> :last-child": { "margin-bottom": "0" }
698
+ },
699
+ "xl": {
700
+ "font-size": rem(20),
701
+ "line-height": round(36 / 20),
702
+ "p": {
703
+ "margin-top": em(24, 20),
704
+ "margin-bottom": em(24, 20)
705
+ },
706
+ "[class~=\"lead\"]": {
707
+ "font-size": em(24, 20),
708
+ "line-height": round(36 / 24),
709
+ "margin-top": em(24, 24),
710
+ "margin-bottom": em(24, 24)
711
+ },
712
+ "blockquote": {
713
+ "margin-top": em(48, 30),
714
+ "margin-bottom": em(48, 30),
715
+ "padding-inline-start": em(32, 30)
716
+ },
717
+ "h1": {
718
+ "font-size": em(56, 20),
719
+ "margin-top": "0",
720
+ "margin-bottom": em(48, 56),
721
+ "line-height": round(56 / 56)
722
+ },
723
+ "h2": {
724
+ "font-size": em(36, 20),
725
+ "margin-top": em(56, 36),
726
+ "margin-bottom": em(32, 36),
727
+ "line-height": round(40 / 36)
728
+ },
729
+ "h3": {
730
+ "font-size": em(30, 20),
731
+ "margin-top": em(48, 30),
732
+ "margin-bottom": em(20, 30),
733
+ "line-height": round(40 / 30)
734
+ },
735
+ "h4": {
736
+ "margin-top": em(36, 20),
737
+ "margin-bottom": em(12, 20),
738
+ "line-height": round(32 / 20)
739
+ },
740
+ "img": {
741
+ "margin-top": em(40, 20),
742
+ "margin-bottom": em(40, 20)
743
+ },
744
+ "picture": {
745
+ "margin-top": em(40, 20),
746
+ "margin-bottom": em(40, 20)
747
+ },
748
+ "picture > img": {
749
+ "margin-top": "0",
750
+ "margin-bottom": "0"
751
+ },
752
+ "video": {
753
+ "margin-top": em(40, 20),
754
+ "margin-bottom": em(40, 20)
755
+ },
756
+ "kbd": {
757
+ "font-size": em(18, 20),
758
+ "border-radius": rem(5),
759
+ "padding-top": em(5, 20),
760
+ "padding-inline-end": em(8, 20),
761
+ "padding-bottom": em(5, 20),
762
+ "padding-inline-start": em(8, 20)
763
+ },
764
+ "code": { "font-size": em(18, 20) },
765
+ "h2 code": { "font-size": em(31, 36) },
766
+ "h3 code": { "font-size": em(27, 30) },
767
+ "pre": {
768
+ "font-size": em(18, 20),
769
+ "line-height": round(32 / 18),
770
+ "margin-top": em(36, 18),
771
+ "margin-bottom": em(36, 18),
772
+ "border-radius": rem(8),
773
+ "padding-top": em(20, 18),
774
+ "padding-inline-end": em(24, 18),
775
+ "padding-bottom": em(20, 18),
776
+ "padding-inline-start": em(24, 18)
777
+ },
778
+ "ol": {
779
+ "margin-top": em(24, 20),
780
+ "margin-bottom": em(24, 20),
781
+ "padding-inline-start": em(32, 20)
782
+ },
783
+ "ul": {
784
+ "margin-top": em(24, 20),
785
+ "margin-bottom": em(24, 20),
786
+ "padding-inline-start": em(32, 20)
787
+ },
788
+ "li": {
789
+ "margin-top": em(12, 20),
790
+ "margin-bottom": em(12, 20)
791
+ },
792
+ "ol > li": { "padding-inline-start": em(8, 20) },
793
+ "ul > li": { "padding-inline-start": em(8, 20) },
794
+ "> ul > li p": {
795
+ "margin-top": em(16, 20),
796
+ "margin-bottom": em(16, 20)
797
+ },
798
+ "> ul > li > p:first-child": { "margin-top": em(24, 20) },
799
+ "> ul > li > p:last-child": { "margin-bottom": em(24, 20) },
800
+ "> ol > li > p:first-child": { "margin-top": em(24, 20) },
801
+ "> ol > li > p:last-child": { "margin-bottom": em(24, 20) },
802
+ "ul ul, ul ol, ol ul, ol ol": {
803
+ "margin-top": em(16, 20),
804
+ "margin-bottom": em(16, 20)
805
+ },
806
+ "dl": {
807
+ "margin-top": em(24, 20),
808
+ "margin-bottom": em(24, 20)
809
+ },
810
+ "dt": { "margin-top": em(24, 20) },
811
+ "dd": {
812
+ "margin-top": em(12, 20),
813
+ "padding-inline-start": em(32, 20)
814
+ },
815
+ "hr": {
816
+ "margin-top": em(56, 20),
817
+ "margin-bottom": em(56, 20)
818
+ },
819
+ "hr + *": { "margin-top": "0" },
820
+ "h2 + *": { "margin-top": "0" },
821
+ "h3 + *": { "margin-top": "0" },
822
+ "h4 + *": { "margin-top": "0" },
823
+ "table": {
824
+ "font-size": em(18, 20),
825
+ "line-height": round(28 / 18)
826
+ },
827
+ "thead th": {
828
+ "padding-inline-end": em(12, 18),
829
+ "padding-bottom": em(16, 18),
830
+ "padding-inline-start": em(12, 18)
831
+ },
832
+ "thead th:first-child": { "padding-inline-start": "0" },
833
+ "thead th:last-child": { "padding-inline-end": "0" },
834
+ "tbody td, tfoot td": {
835
+ "padding-top": em(16, 18),
836
+ "padding-inline-end": em(12, 18),
837
+ "padding-bottom": em(16, 18),
838
+ "padding-inline-start": em(12, 18)
839
+ },
840
+ "tbody td:first-child, tfoot td:first-child": { "padding-inline-start": "0" },
841
+ "tbody td:last-child, tfoot td:last-child": { "padding-inline-end": "0" },
842
+ "figure": {
843
+ "margin-top": em(40, 20),
844
+ "margin-bottom": em(40, 20)
845
+ },
846
+ "figure > *": {
847
+ "margin-top": "0",
848
+ "margin-bottom": "0"
849
+ },
850
+ "figcaption": {
851
+ "font-size": em(18, 20),
852
+ "line-height": round(28 / 18),
853
+ "margin-top": em(18, 18)
854
+ },
855
+ "> :first-child": { "margin-top": "0" },
856
+ "> :last-child": { "margin-bottom": "0" }
857
+ },
858
+ "2xl": {
859
+ "font-size": rem(24),
860
+ "line-height": round(40 / 24),
861
+ "p": {
862
+ "margin-top": em(32, 24),
863
+ "margin-bottom": em(32, 24)
864
+ },
865
+ "[class~=\"lead\"]": {
866
+ "font-size": em(30, 24),
867
+ "line-height": round(44 / 30),
868
+ "margin-top": em(32, 30),
869
+ "margin-bottom": em(32, 30)
870
+ },
871
+ "blockquote": {
872
+ "margin-top": em(64, 36),
873
+ "margin-bottom": em(64, 36),
874
+ "padding-inline-start": em(40, 36)
875
+ },
876
+ "h1": {
877
+ "font-size": em(64, 24),
878
+ "margin-top": "0",
879
+ "margin-bottom": em(56, 64),
880
+ "line-height": round(64 / 64)
881
+ },
882
+ "h2": {
883
+ "font-size": em(48, 24),
884
+ "margin-top": em(72, 48),
885
+ "margin-bottom": em(40, 48),
886
+ "line-height": round(52 / 48)
887
+ },
888
+ "h3": {
889
+ "font-size": em(36, 24),
890
+ "margin-top": em(56, 36),
891
+ "margin-bottom": em(24, 36),
892
+ "line-height": round(44 / 36)
893
+ },
894
+ "h4": {
895
+ "margin-top": em(40, 24),
896
+ "margin-bottom": em(16, 24),
897
+ "line-height": round(36 / 24)
898
+ },
899
+ "img": {
900
+ "margin-top": em(48, 24),
901
+ "margin-bottom": em(48, 24)
902
+ },
903
+ "picture": {
904
+ "margin-top": em(48, 24),
905
+ "margin-bottom": em(48, 24)
906
+ },
907
+ "picture > img": {
908
+ "margin-top": "0",
909
+ "margin-bottom": "0"
910
+ },
911
+ "video": {
912
+ "margin-top": em(48, 24),
913
+ "margin-bottom": em(48, 24)
914
+ },
915
+ "kbd": {
916
+ "font-size": em(20, 24),
917
+ "border-radius": rem(6),
918
+ "padding-top": em(6, 24),
919
+ "padding-inline-end": em(8, 24),
920
+ "padding-bottom": em(6, 24),
921
+ "padding-inline-start": em(8, 24)
922
+ },
923
+ "code": { "font-size": em(20, 24) },
924
+ "h2 code": { "font-size": em(42, 48) },
925
+ "h3 code": { "font-size": em(32, 36) },
926
+ "pre": {
927
+ "font-size": em(20, 24),
928
+ "line-height": round(36 / 20),
929
+ "margin-top": em(40, 20),
930
+ "margin-bottom": em(40, 20),
931
+ "border-radius": rem(8),
932
+ "padding-top": em(24, 20),
933
+ "padding-inline-end": em(32, 20),
934
+ "padding-bottom": em(24, 20),
935
+ "padding-inline-start": em(32, 20)
936
+ },
937
+ "ol": {
938
+ "margin-top": em(32, 24),
939
+ "margin-bottom": em(32, 24),
940
+ "padding-inline-start": em(38, 24)
941
+ },
942
+ "ul": {
943
+ "margin-top": em(32, 24),
944
+ "margin-bottom": em(32, 24),
945
+ "padding-inline-start": em(38, 24)
946
+ },
947
+ "li": {
948
+ "margin-top": em(12, 24),
949
+ "margin-bottom": em(12, 24)
950
+ },
951
+ "ol > li": { "padding-inline-start": em(10, 24) },
952
+ "ul > li": { "padding-inline-start": em(10, 24) },
953
+ "> ul > li p": {
954
+ "margin-top": em(20, 24),
955
+ "margin-bottom": em(20, 24)
956
+ },
957
+ "> ul > li > p:first-child": { "margin-top": em(32, 24) },
958
+ "> ul > li > p:last-child": { "margin-bottom": em(32, 24) },
959
+ "> ol > li > p:first-child": { "margin-top": em(32, 24) },
960
+ "> ol > li > p:last-child": { "margin-bottom": em(32, 24) },
961
+ "ul ul, ul ol, ol ul, ol ol": {
962
+ "margin-top": em(16, 24),
963
+ "margin-bottom": em(16, 24)
964
+ },
965
+ "dl": {
966
+ "margin-top": em(32, 24),
967
+ "margin-bottom": em(32, 24)
968
+ },
969
+ "dt": { "margin-top": em(32, 24) },
970
+ "dd": {
971
+ "margin-top": em(12, 24),
972
+ "padding-inline-start": em(38, 24)
973
+ },
974
+ "hr": {
975
+ "margin-top": em(72, 24),
976
+ "margin-bottom": em(72, 24)
977
+ },
978
+ "hr + *": { "margin-top": "0" },
979
+ "h2 + *": { "margin-top": "0" },
980
+ "h3 + *": { "margin-top": "0" },
981
+ "h4 + *": { "margin-top": "0" },
982
+ "table": {
983
+ "font-size": em(20, 24),
984
+ "line-height": round(28 / 20)
985
+ },
986
+ "thead th": {
987
+ "padding-inline-end": em(12, 20),
988
+ "padding-bottom": em(16, 20),
989
+ "padding-inline-start": em(12, 20)
990
+ },
991
+ "thead th:first-child": { "padding-inline-start": "0" },
992
+ "thead th:last-child": { "padding-inline-end": "0" },
993
+ "tbody td, tfoot td": {
994
+ "padding-top": em(16, 20),
995
+ "padding-inline-end": em(12, 20),
996
+ "padding-bottom": em(16, 20),
997
+ "padding-inline-start": em(12, 20)
998
+ },
999
+ "tbody td:first-child, tfoot td:first-child": { "padding-inline-start": "0" },
1000
+ "tbody td:last-child, tfoot td:last-child": { "padding-inline-end": "0" },
1001
+ "figure": {
1002
+ "margin-top": em(48, 24),
1003
+ "margin-bottom": em(48, 24)
1004
+ },
1005
+ "figure > *": {
1006
+ "margin-top": "0",
1007
+ "margin-bottom": "0"
1008
+ },
1009
+ "figcaption": {
1010
+ "font-size": em(20, 24),
1011
+ "line-height": round(32 / 20),
1012
+ "margin-top": em(20, 20)
1013
+ },
1014
+ "> :first-child": { "margin-top": "0" },
1015
+ "> :last-child": { "margin-bottom": "0" }
1016
+ }
1281
1017
  };
1282
1018
 
1019
+ //#endregion
1020
+ //#region src/resolve.ts
1283
1021
  function resolveColorScheme(userColorScheme) {
1284
- const scheme = clone(defaultColorScheme);
1285
- if (userColorScheme) {
1286
- for (const key in userColorScheme) {
1287
- const [color, invertColor] = toArray(userColorScheme[key]);
1288
- const [defaultColor, defaultInvertColor] = scheme[key];
1289
- scheme[key] = [color ?? defaultColor, invertColor ?? defaultInvertColor];
1290
- }
1291
- }
1292
- return scheme;
1022
+ const scheme = clone(defaultColorScheme);
1023
+ if (userColorScheme) for (const key in userColorScheme) {
1024
+ const [color, invertColor] = toArray(userColorScheme[key]);
1025
+ const [defaultColor, defaultInvertColor] = scheme[key];
1026
+ scheme[key] = [color ?? defaultColor, invertColor ?? defaultInvertColor];
1027
+ }
1028
+ return scheme;
1293
1029
  }
1294
1030
  function resolveSizeScheme(userSizeScheme) {
1295
- if (userSizeScheme) {
1296
- return mergeDeep(ProseDefaultSize, userSizeScheme);
1297
- }
1298
- return ProseDefaultSize;
1031
+ if (userSizeScheme) return mergeDeep(ProseDefaultSize, userSizeScheme);
1032
+ return ProseDefaultSize;
1299
1033
  }
1300
1034
  function getCSS(preflights, options) {
1301
- const selectorName = options.selectorName || "prose";
1302
- const notProseSelector = `:not(:where([class~="not-${selectorName}"],[class~="not-${selectorName}"] *))`;
1303
- const important = options.important === true;
1304
- let css = "";
1305
- for (const [selectorOrKey, cssObjectOrValue] of Object.entries(preflights)) {
1306
- if (typeof cssObjectOrValue !== "object") {
1307
- css += `${selectorOrKey}:${cssObjectOrValue}${important ? " !important" : ""};`;
1308
- } else {
1309
- const [selectorOrGroup, pseudo] = selectorOrKey.split("::");
1310
- const _selector = `:where(${selectorOrGroup})${notProseSelector}${pseudo ? `::${pseudo}` : ""}`;
1311
- css += `${_selector} {`;
1312
- for (const [key, value] of Object.entries(cssObjectOrValue)) {
1313
- css += `${key}:${value}${important ? " !important" : ""};`;
1314
- }
1315
- css += `}`;
1316
- }
1317
- }
1318
- return css;
1035
+ const selectorName = options.selectorName || "prose";
1036
+ const notProseSelector = `:not(:where([class~="not-${selectorName}"],[class~="not-${selectorName}"] *))`;
1037
+ const important = options.important === true;
1038
+ let css = "";
1039
+ for (const [selectorOrKey, cssObjectOrValue] of Object.entries(preflights)) if (typeof cssObjectOrValue !== "object") css += `${selectorOrKey}:${cssObjectOrValue}${important ? " !important" : ""};`;
1040
+ else {
1041
+ const [selectorOrGroup, pseudo] = selectorOrKey.split("::");
1042
+ const _selector = `:where(${selectorOrGroup})${notProseSelector}${pseudo ? `::${pseudo}` : ""}`;
1043
+ css += `${_selector} {`;
1044
+ for (const [key, value] of Object.entries(cssObjectOrValue)) css += `${key}:${value}${important ? " !important" : ""};`;
1045
+ css += `}`;
1046
+ }
1047
+ return css;
1319
1048
  }
1320
1049
  function getElements(modifier) {
1321
- for (const [name, ...selectors] of modifiers) {
1322
- if (name === modifier)
1323
- return selectors.length > 0 ? selectors : [name];
1324
- }
1050
+ for (const [name, ...selectors] of modifiers) if (name === modifier) return selectors.length > 0 ? selectors : [name];
1325
1051
  }
1326
1052
 
1053
+ //#endregion
1054
+ //#region src/index.ts
1055
+ /**
1056
+ * UnoCSS Preset for Typography
1057
+ *
1058
+ * ```js
1059
+ * // uno.config.ts
1060
+ * import { presetAttributify, presetWind3/4, defineConfig, presetTypography } from 'unocss'
1061
+ *
1062
+ * export default defineConfig({
1063
+ * presets: [
1064
+ * presetWind3/4(), // required!
1065
+ * presetAttributify(), // required if using attributify mode
1066
+ * presetTypography()
1067
+ * ]
1068
+ * })
1069
+ * ```
1070
+ *
1071
+ * @see https://unocss.dev/presets/typography
1072
+ * @returns typography preset
1073
+ * @public
1074
+ */
1327
1075
  const presetTypography = definePreset((options) => {
1328
- const selectorName = options?.selectorName ?? "prose";
1329
- const disableNotUtility = options?.compatibility?.noColonNot || options?.compatibility?.noColonWhere;
1330
- const cssVarPrefix = options?.cssVarPrefix ?? "--un-prose";
1331
- const resolvedColorScheme = resolveColorScheme(options?.colorScheme);
1332
- const resolvedSizeScheme = resolveSizeScheme(options?.sizeScheme);
1333
- const extended = (entries, theme) => {
1334
- const extend = typeof options?.cssExtend === "function" ? options?.cssExtend(theme) : options?.cssExtend;
1335
- return mergeDeep(entries, extend ?? {});
1336
- };
1337
- const normalizeSelector = (s) => {
1338
- if (typeof options?.important === "string") {
1339
- s = `${options.important} ${s}`;
1340
- }
1341
- if (!options?.compatibility?.noColonIs) {
1342
- s = `:is(${s})`;
1343
- }
1344
- return s;
1345
- };
1346
- const defaultRE = new RegExp(`^${selectorName}-default$`);
1347
- const colorsRE = new RegExp(`^${selectorName}-([-\\w]+)$`);
1348
- const sizeRE = new RegExp(`^${selectorName}-(${Object.keys(resolvedSizeScheme).join("|")})$`);
1349
- return {
1350
- name: "@unocss/preset-typography",
1351
- enforce: "post",
1352
- layers: { typography: -20 },
1353
- shortcuts: [
1354
- [
1355
- selectorName,
1356
- [`${selectorName}-default`, `${selectorName}-gray`],
1357
- { layer: "typography" }
1358
- ]
1359
- ],
1360
- rules: [
1361
- [
1362
- defaultRE,
1363
- (_, { symbols: symbols2, theme }) => {
1364
- const entries = extended(mergeDeep(ProseDefaultCSSObject, ProseDefaultSize.base), theme);
1365
- const css = getCSS(entries, options ?? {});
1366
- return {
1367
- [symbols2.body]: css,
1368
- [symbols2.selector]: normalizeSelector
1369
- };
1370
- },
1371
- { layer: "typography", autocomplete: "prose", internal: true }
1372
- ],
1373
- // Colors
1374
- [
1375
- colorsRE,
1376
- ([, color], { theme, symbols: symbols2 }) => {
1377
- const baseColor = theme.colors?.[color];
1378
- if (!baseColor || typeof baseColor !== "object")
1379
- return;
1380
- const ACCENT_COLORS = ["red", "orange", "amber", "yellow", "lime", "green", "emerald", "teal", "cyan", "sky", "blue", "indigo", "violet", "purple", "fuchsia", "pink", "rose"];
1381
- if (ACCENT_COLORS.includes(color)) {
1382
- return {
1383
- [`${cssVarPrefix}-links`]: baseColor["600"],
1384
- [`${cssVarPrefix}-invert-links`]: baseColor["500"],
1385
- [symbols2.selector]: normalizeSelector
1386
- };
1387
- } else {
1388
- return Object.entries(resolvedColorScheme).reduce((acc, [key, value]) => {
1389
- const [colorKey, invertKey] = value;
1390
- const resolve = (key2) => baseColor[key2] ?? theme[key2] ?? key2;
1391
- const color2 = resolve(colorKey);
1392
- const invertColor = resolve(invertKey);
1393
- const cssVarColorKey = `${cssVarPrefix}-${key}`;
1394
- const cssVarInvertColorKey = `${cssVarPrefix}-invert-${key}`;
1395
- acc[cssVarColorKey] = colorToString(color2, `var(${cssVarColorKey}-opacity)`);
1396
- acc[cssVarInvertColorKey] = colorToString(invertColor, `var(${cssVarInvertColorKey}-opacity)`);
1397
- for (const [c, k] of [[color2, `${cssVarColorKey}-opacity`], [invertColor, `${cssVarInvertColorKey}-opacity`]]) {
1398
- if (alphaPlaceholders.some((p) => c.includes(p)))
1399
- acc[k] = "1";
1400
- }
1401
- return acc;
1402
- }, {
1403
- [symbols2.selector]: normalizeSelector
1404
- });
1405
- }
1406
- },
1407
- { layer: "typography", autocomplete: `${selectorName}-$colors` }
1408
- ],
1409
- // Size
1410
- [
1411
- sizeRE,
1412
- ([, size], { symbols: symbols2, theme }) => {
1413
- const css = getCSS(extended(resolvedSizeScheme[size], theme), options ?? {});
1414
- return {
1415
- [symbols2.body]: css,
1416
- [symbols2.selector]: normalizeSelector
1417
- };
1418
- },
1419
- { layer: "typography", autocomplete: `${selectorName}-(${Object.keys(resolvedSizeScheme).join("|")})` }
1420
- ],
1421
- // Invert
1422
- [
1423
- `${selectorName}-invert`,
1424
- [
1425
- {
1426
- [`${cssVarPrefix}-body`]: `var(${cssVarPrefix}-invert-body)`,
1427
- [`${cssVarPrefix}-headings`]: `var(${cssVarPrefix}-invert-headings)`,
1428
- [`${cssVarPrefix}-lead`]: `var(${cssVarPrefix}-invert-lead)`,
1429
- [`${cssVarPrefix}-links`]: `var(${cssVarPrefix}-invert-links)`,
1430
- [`${cssVarPrefix}-bold`]: `var(${cssVarPrefix}-invert-bold)`,
1431
- [`${cssVarPrefix}-counters`]: `var(${cssVarPrefix}-invert-counters)`,
1432
- [`${cssVarPrefix}-bullets`]: `var(${cssVarPrefix}-invert-bullets)`,
1433
- [`${cssVarPrefix}-hr`]: `var(${cssVarPrefix}-invert-hr)`,
1434
- [`${cssVarPrefix}-quotes`]: `var(${cssVarPrefix}-invert-quotes)`,
1435
- [`${cssVarPrefix}-quote-borders`]: `var(${cssVarPrefix}-invert-quote-borders)`,
1436
- [`${cssVarPrefix}-captions`]: `var(${cssVarPrefix}-invert-captions)`,
1437
- [`${cssVarPrefix}-kbd`]: `var(${cssVarPrefix}-invert-kbd)`,
1438
- [`${cssVarPrefix}-kbd-shadows`]: `var(${cssVarPrefix}-invert-kbd-shadows)`,
1439
- [`${cssVarPrefix}-code`]: `var(${cssVarPrefix}-invert-code)`,
1440
- [`${cssVarPrefix}-pre-code`]: `var(${cssVarPrefix}-invert-pre-code)`,
1441
- [`${cssVarPrefix}-pre-bg`]: `var(${cssVarPrefix}-invert-pre-bg)`,
1442
- [`${cssVarPrefix}-th-borders`]: `var(${cssVarPrefix}-invert-th-borders)`,
1443
- [`${cssVarPrefix}-td-borders`]: `var(${cssVarPrefix}-invert-td-borders)`,
1444
- [symbols.selector]: normalizeSelector
1445
- }
1446
- ],
1447
- { layer: "typography" }
1448
- ]
1449
- ],
1450
- variants: [
1451
- {
1452
- name: "typography element modifiers",
1453
- match: (matcher) => {
1454
- if (matcher.startsWith(`${selectorName}-`)) {
1455
- const modifyRe = new RegExp(`^${selectorName}-(\\w+)[:-].+$`);
1456
- const modifier = matcher.match(modifyRe)?.[1];
1457
- if (modifier) {
1458
- const elements = getElements(modifier);
1459
- if (elements?.length) {
1460
- return {
1461
- matcher: matcher.slice(selectorName.length + modifier.length + 2),
1462
- selector: (s) => {
1463
- const notProseSelector = `:not(:where([class~="not-${selectorName}"],[class~="not-${selectorName}"] *))`;
1464
- const escapedSelector = disableNotUtility ? elements.map((e) => `${s} ${e}`).join(",") : `${s} :is(:where(${elements})${notProseSelector})`;
1465
- return escapedSelector;
1466
- }
1467
- };
1468
- }
1469
- }
1470
- }
1471
- },
1472
- autocomplete: `${selectorName}-(${modifiers.map((m) => `${m[0]}:`).join("|")})`
1473
- }
1474
- ]
1475
- };
1076
+ const selectorName = options?.selectorName ?? "prose";
1077
+ const disableNotUtility = options?.compatibility?.noColonNot || options?.compatibility?.noColonWhere;
1078
+ const cssVarPrefix = options?.cssVarPrefix ?? "--un-prose";
1079
+ const resolvedColorScheme = resolveColorScheme(options?.colorScheme);
1080
+ const resolvedSizeScheme = resolveSizeScheme(options?.sizeScheme);
1081
+ const extended = (entries, theme) => {
1082
+ return mergeDeep(entries, (typeof options?.cssExtend === "function" ? options?.cssExtend(theme) : options?.cssExtend) ?? {});
1083
+ };
1084
+ const normalizeSelector = (s) => {
1085
+ if (typeof options?.important === "string") s = `${options.important} ${s}`;
1086
+ if (!options?.compatibility?.noColonIs) s = `:is(${s})`;
1087
+ return s;
1088
+ };
1089
+ const defaultRE = /* @__PURE__ */ new RegExp(`^${selectorName}-default$`);
1090
+ const colorsRE = /* @__PURE__ */ new RegExp(`^${selectorName}-([-\\w]+)$`);
1091
+ const sizeRE = /* @__PURE__ */ new RegExp(`^${selectorName}-(${Object.keys(resolvedSizeScheme).join("|")})$`);
1092
+ return {
1093
+ name: "@unocss/preset-typography",
1094
+ enforce: "post",
1095
+ layers: { typography: -20 },
1096
+ shortcuts: [[
1097
+ selectorName,
1098
+ [`${selectorName}-default`, `${selectorName}-gray`],
1099
+ { layer: "typography" }
1100
+ ]],
1101
+ rules: [
1102
+ [
1103
+ defaultRE,
1104
+ (_, { symbols: symbols$1, theme }) => {
1105
+ const css = getCSS(extended(mergeDeep(ProseDefaultCSSObject, ProseDefaultSize.base), theme), options ?? {});
1106
+ return {
1107
+ [symbols$1.body]: css,
1108
+ [symbols$1.selector]: normalizeSelector
1109
+ };
1110
+ },
1111
+ {
1112
+ layer: "typography",
1113
+ autocomplete: "prose",
1114
+ internal: true
1115
+ }
1116
+ ],
1117
+ [
1118
+ colorsRE,
1119
+ ([, color], { theme, symbols: symbols$1 }) => {
1120
+ const baseColor = theme.colors?.[color];
1121
+ if (!baseColor || typeof baseColor !== "object") return;
1122
+ if ([
1123
+ "red",
1124
+ "orange",
1125
+ "amber",
1126
+ "yellow",
1127
+ "lime",
1128
+ "green",
1129
+ "emerald",
1130
+ "teal",
1131
+ "cyan",
1132
+ "sky",
1133
+ "blue",
1134
+ "indigo",
1135
+ "violet",
1136
+ "purple",
1137
+ "fuchsia",
1138
+ "pink",
1139
+ "rose"
1140
+ ].includes(color)) return {
1141
+ [`${cssVarPrefix}-links`]: baseColor["600"],
1142
+ [`${cssVarPrefix}-invert-links`]: baseColor["500"],
1143
+ [symbols$1.selector]: normalizeSelector
1144
+ };
1145
+ else return Object.entries(resolvedColorScheme).reduce((acc, [key, value]) => {
1146
+ const [colorKey, invertKey] = value;
1147
+ const resolve = (key$1) => baseColor[key$1] ?? theme[key$1] ?? key$1;
1148
+ const color$1 = resolve(colorKey);
1149
+ const invertColor = resolve(invertKey);
1150
+ const cssVarColorKey = `${cssVarPrefix}-${key}`;
1151
+ const cssVarInvertColorKey = `${cssVarPrefix}-invert-${key}`;
1152
+ acc[cssVarColorKey] = colorToString(color$1, `var(${cssVarColorKey}-opacity)`);
1153
+ acc[cssVarInvertColorKey] = colorToString(invertColor, `var(${cssVarInvertColorKey}-opacity)`);
1154
+ for (const [c, k] of [[color$1, `${cssVarColorKey}-opacity`], [invertColor, `${cssVarInvertColorKey}-opacity`]]) if (alphaPlaceholders.some((p) => c.includes(p))) acc[k] = "1";
1155
+ return acc;
1156
+ }, { [symbols$1.selector]: normalizeSelector });
1157
+ },
1158
+ {
1159
+ layer: "typography",
1160
+ autocomplete: `${selectorName}-$colors`
1161
+ }
1162
+ ],
1163
+ [
1164
+ sizeRE,
1165
+ ([, size], { symbols: symbols$1, theme }) => {
1166
+ const css = getCSS(extended(resolvedSizeScheme[size], theme), options ?? {});
1167
+ return {
1168
+ [symbols$1.body]: css,
1169
+ [symbols$1.selector]: normalizeSelector
1170
+ };
1171
+ },
1172
+ {
1173
+ layer: "typography",
1174
+ autocomplete: `${selectorName}-(${Object.keys(resolvedSizeScheme).join("|")})`
1175
+ }
1176
+ ],
1177
+ [
1178
+ `${selectorName}-invert`,
1179
+ [{
1180
+ [`${cssVarPrefix}-body`]: `var(${cssVarPrefix}-invert-body)`,
1181
+ [`${cssVarPrefix}-headings`]: `var(${cssVarPrefix}-invert-headings)`,
1182
+ [`${cssVarPrefix}-lead`]: `var(${cssVarPrefix}-invert-lead)`,
1183
+ [`${cssVarPrefix}-links`]: `var(${cssVarPrefix}-invert-links)`,
1184
+ [`${cssVarPrefix}-bold`]: `var(${cssVarPrefix}-invert-bold)`,
1185
+ [`${cssVarPrefix}-counters`]: `var(${cssVarPrefix}-invert-counters)`,
1186
+ [`${cssVarPrefix}-bullets`]: `var(${cssVarPrefix}-invert-bullets)`,
1187
+ [`${cssVarPrefix}-hr`]: `var(${cssVarPrefix}-invert-hr)`,
1188
+ [`${cssVarPrefix}-quotes`]: `var(${cssVarPrefix}-invert-quotes)`,
1189
+ [`${cssVarPrefix}-quote-borders`]: `var(${cssVarPrefix}-invert-quote-borders)`,
1190
+ [`${cssVarPrefix}-captions`]: `var(${cssVarPrefix}-invert-captions)`,
1191
+ [`${cssVarPrefix}-kbd`]: `var(${cssVarPrefix}-invert-kbd)`,
1192
+ [`${cssVarPrefix}-kbd-shadows`]: `var(${cssVarPrefix}-invert-kbd-shadows)`,
1193
+ [`${cssVarPrefix}-code`]: `var(${cssVarPrefix}-invert-code)`,
1194
+ [`${cssVarPrefix}-pre-code`]: `var(${cssVarPrefix}-invert-pre-code)`,
1195
+ [`${cssVarPrefix}-pre-bg`]: `var(${cssVarPrefix}-invert-pre-bg)`,
1196
+ [`${cssVarPrefix}-th-borders`]: `var(${cssVarPrefix}-invert-th-borders)`,
1197
+ [`${cssVarPrefix}-td-borders`]: `var(${cssVarPrefix}-invert-td-borders)`,
1198
+ [symbols.selector]: normalizeSelector
1199
+ }],
1200
+ { layer: "typography" }
1201
+ ]
1202
+ ],
1203
+ variants: [{
1204
+ name: "typography element modifiers",
1205
+ match: (matcher) => {
1206
+ if (matcher.startsWith(`${selectorName}-`)) {
1207
+ const modifyRe = /* @__PURE__ */ new RegExp(`^${selectorName}-(\\w+)[:-].+$`);
1208
+ const modifier = matcher.match(modifyRe)?.[1];
1209
+ if (modifier) {
1210
+ const elements = getElements(modifier);
1211
+ if (elements?.length) return {
1212
+ matcher: matcher.slice(selectorName.length + modifier.length + 2),
1213
+ selector: (s) => {
1214
+ const notProseSelector = `:not(:where([class~="not-${selectorName}"],[class~="not-${selectorName}"] *))`;
1215
+ return disableNotUtility ? elements.map((e) => `${s} ${e}`).join(",") : `${s} :is(:where(${elements})${notProseSelector})`;
1216
+ }
1217
+ };
1218
+ }
1219
+ }
1220
+ },
1221
+ autocomplete: `${selectorName}-(${modifiers.map((m) => `${m[0]}:`).join("|")})`
1222
+ }]
1223
+ };
1476
1224
  });
1225
+ var src_default = presetTypography;
1477
1226
 
1478
- export { presetTypography as default, presetTypography };
1227
+ //#endregion
1228
+ export { src_default as default, presetTypography };