@fumadocs/ui 16.4.0 → 16.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/css/colors/ocean.css +1 -5
  2. package/css/colors/vitepress.css +3 -15
  3. package/dist/cn.d.ts +2 -2
  4. package/dist/cn.js +3 -1
  5. package/dist/components/toc/clerk.d.ts +11 -2
  6. package/dist/components/toc/clerk.d.ts.map +1 -1
  7. package/dist/components/toc/clerk.js +105 -69
  8. package/dist/components/toc/clerk.js.map +1 -0
  9. package/dist/components/toc/default.d.ts +11 -2
  10. package/dist/components/toc/default.d.ts.map +1 -1
  11. package/dist/components/toc/default.js +36 -15
  12. package/dist/components/toc/default.js.map +1 -0
  13. package/dist/components/toc/index.d.ts +23 -8
  14. package/dist/components/toc/index.d.ts.map +1 -1
  15. package/dist/components/toc/index.js +74 -56
  16. package/dist/components/toc/index.js.map +1 -0
  17. package/dist/contexts/i18n.d.ts +53 -43
  18. package/dist/contexts/i18n.d.ts.map +1 -1
  19. package/dist/contexts/i18n.js +55 -50
  20. package/dist/contexts/i18n.js.map +1 -0
  21. package/dist/contexts/search.d.ts +62 -49
  22. package/dist/contexts/search.d.ts.map +1 -1
  23. package/dist/contexts/search.js +56 -50
  24. package/dist/contexts/search.js.map +1 -0
  25. package/dist/contexts/tree.d.ts +18 -11
  26. package/dist/contexts/tree.d.ts.map +1 -1
  27. package/dist/contexts/tree.js +36 -26
  28. package/dist/contexts/tree.js.map +1 -0
  29. package/dist/hooks/use-copy-button.d.ts +6 -2
  30. package/dist/hooks/use-copy-button.d.ts.map +1 -1
  31. package/dist/hooks/use-copy-button.js +28 -25
  32. package/dist/hooks/use-copy-button.js.map +1 -0
  33. package/dist/hooks/use-footer-items.d.ts +7 -2
  34. package/dist/hooks/use-footer-items.d.ts.map +1 -1
  35. package/dist/hooks/use-footer-items.js +26 -25
  36. package/dist/hooks/use-footer-items.js.map +1 -0
  37. package/dist/hooks/use-is-scroll-top.d.ts +7 -2
  38. package/dist/hooks/use-is-scroll-top.d.ts.map +1 -1
  39. package/dist/hooks/use-is-scroll-top.js +23 -16
  40. package/dist/hooks/use-is-scroll-top.js.map +1 -0
  41. package/dist/i18n.d.ts +11 -11
  42. package/dist/i18n.d.ts.map +1 -1
  43. package/dist/i18n.js +19 -15
  44. package/dist/i18n.js.map +1 -0
  45. package/dist/link-item.d.ts +74 -66
  46. package/dist/link-item.d.ts.map +1 -1
  47. package/dist/link-item.js +23 -10
  48. package/dist/link-item.js.map +1 -0
  49. package/dist/merge-refs.d.ts +6 -2
  50. package/dist/merge-refs.d.ts.map +1 -1
  51. package/dist/merge-refs.js +12 -11
  52. package/dist/merge-refs.js.map +1 -0
  53. package/dist/og/next.d.ts +20 -12
  54. package/dist/og/next.d.ts.map +1 -1
  55. package/dist/og/next.js +68 -43
  56. package/dist/og/next.js.map +1 -0
  57. package/dist/typography/index.d.ts +10 -8
  58. package/dist/typography/index.d.ts.map +1 -1
  59. package/dist/typography/index.js +1714 -127
  60. package/dist/typography/index.js.map +1 -0
  61. package/dist/typography/styles.d.ts +92 -89
  62. package/dist/typography/styles.d.ts.map +1 -1
  63. package/dist/typography/styles.js +337 -423
  64. package/dist/typography/styles.js.map +1 -0
  65. package/dist/urls.d.ts +5 -2
  66. package/dist/urls.d.ts.map +1 -1
  67. package/dist/urls.js +14 -10
  68. package/dist/urls.js.map +1 -0
  69. package/package.json +20 -20
  70. package/dist/cn.d.ts.map +0 -1
  71. package/dist/icons.d.ts +0 -49
  72. package/dist/icons.d.ts.map +0 -1
  73. package/dist/icons.js +0 -281
@@ -1,433 +1,347 @@
1
+ //#region src/typography/styles.ts
1
2
  function round(num) {
2
- return num
3
- .toFixed(7)
4
- .replace(/(\.[0-9]+?)0+$/, '$1')
5
- .replace(/\.0$/, '');
3
+ return num.toFixed(7).replace(/(\.[0-9]+?)0+$/, "$1").replace(/\.0$/, "");
6
4
  }
7
5
  function rem(px) {
8
- return `${round(px / 16)}rem`;
6
+ return `${round(px / 16)}rem`;
9
7
  }
10
8
  function em(px, base) {
11
- return `${round(px / base)}em`;
9
+ return `${round(px / base)}em`;
12
10
  }
13
11
  const colors = {
14
- '--tw-prose-body': 'color-mix(in oklab, var(--color-fd-foreground) 90%, transparent)',
15
- '--tw-prose-headings': 'var(--color-fd-foreground)',
16
- '--tw-prose-lead': `var(--color-fd-foreground)`,
17
- '--tw-prose-links': `var(--color-fd-foreground)`,
18
- '--tw-prose-bold': `var(--color-fd-foreground)`,
19
- '--tw-prose-counters': `var(--color-fd-muted-foreground)`,
20
- '--tw-prose-bullets': `var(--color-fd-muted-foreground)`,
21
- '--tw-prose-hr': `var(--color-fd-border)`,
22
- '--tw-prose-quotes': `var(--color-fd-foreground)`,
23
- '--tw-prose-quote-borders': `var(--color-fd-border)`,
24
- '--tw-prose-captions': `var(--color-fd-foreground)`,
25
- '--tw-prose-code': `var(--color-fd-foreground)`,
26
- '--tw-prose-th-borders': `var(--color-fd-border)`,
27
- '--tw-prose-td-borders': `var(--color-fd-border)`,
28
- '--tw-prose-kbd': `var(--color-fd-foreground)`,
29
- '--tw-prose-kbd-shadows': `color-mix(in oklab, var(--color-fd-primary) 50%, transparent)`,
12
+ "--tw-prose-body": "color-mix(in oklab, var(--color-fd-foreground) 90%, transparent)",
13
+ "--tw-prose-headings": "var(--color-fd-foreground)",
14
+ "--tw-prose-lead": `var(--color-fd-foreground)`,
15
+ "--tw-prose-links": `var(--color-fd-foreground)`,
16
+ "--tw-prose-bold": `var(--color-fd-foreground)`,
17
+ "--tw-prose-counters": `var(--color-fd-muted-foreground)`,
18
+ "--tw-prose-bullets": `var(--color-fd-muted-foreground)`,
19
+ "--tw-prose-hr": `var(--color-fd-border)`,
20
+ "--tw-prose-quotes": `var(--color-fd-foreground)`,
21
+ "--tw-prose-quote-borders": `var(--color-fd-border)`,
22
+ "--tw-prose-captions": `var(--color-fd-foreground)`,
23
+ "--tw-prose-code": `var(--color-fd-foreground)`,
24
+ "--tw-prose-th-borders": `var(--color-fd-border)`,
25
+ "--tw-prose-td-borders": `var(--color-fd-border)`,
26
+ "--tw-prose-kbd": `var(--color-fd-foreground)`,
27
+ "--tw-prose-kbd-shadows": `color-mix(in oklab, var(--color-fd-primary) 50%, transparent)`
30
28
  };
31
- export const roundedTable = {
32
- table: {
33
- borderCollapse: 'separate',
34
- borderSpacing: '0',
35
- background: 'var(--color-fd-card)',
36
- borderRadius: 'var(--radius-lg)',
37
- border: '1px solid var(--color-fd-border)',
38
- overflow: 'hidden',
39
- },
40
- th: {
41
- textAlign: 'start',
42
- padding: 'calc(var(--spacing) * 2.5)',
43
- 'border-inline-start': '1px solid var(--color-fd-border)',
44
- background: 'var(--color-fd-muted)',
45
- },
46
- 'th:first-child': {
47
- 'border-inline-start': 'none',
48
- },
49
- 'th:not(tr:last-child *), td:not(tr:last-child *)': {
50
- 'border-bottom': '1px solid var(--color-fd-border)',
51
- },
52
- td: {
53
- textAlign: 'start',
54
- 'border-inline-start': '1px solid var(--color-fd-border)',
55
- padding: 'calc(var(--spacing) * 2.5)',
56
- },
57
- 'td:first-child': {
58
- 'border-inline-start': 'none',
59
- },
60
- 'tfoot th, tfoot td': {
61
- borderTopWidth: '1px',
62
- borderTopColor: 'var(--tw-prose-th-borders)',
63
- },
64
- 'thead th, thead td': {
65
- borderBottomWidth: '1px',
66
- borderBottomColor: 'var(--tw-prose-th-borders)',
67
- },
29
+ const roundedTable = {
30
+ table: {
31
+ borderCollapse: "separate",
32
+ borderSpacing: "0",
33
+ background: "var(--color-fd-card)",
34
+ borderRadius: "var(--radius-lg)",
35
+ border: "1px solid var(--color-fd-border)",
36
+ overflow: "hidden"
37
+ },
38
+ th: {
39
+ textAlign: "start",
40
+ padding: "calc(var(--spacing) * 2.5)",
41
+ "border-inline-start": "1px solid var(--color-fd-border)",
42
+ background: "var(--color-fd-muted)"
43
+ },
44
+ "th:first-child": { "border-inline-start": "none" },
45
+ "th:not(tr:last-child *), td:not(tr:last-child *)": { "border-bottom": "1px solid var(--color-fd-border)" },
46
+ td: {
47
+ textAlign: "start",
48
+ "border-inline-start": "1px solid var(--color-fd-border)",
49
+ padding: "calc(var(--spacing) * 2.5)"
50
+ },
51
+ "td:first-child": { "border-inline-start": "none" },
52
+ "tfoot th, tfoot td": {
53
+ borderTopWidth: "1px",
54
+ borderTopColor: "var(--tw-prose-th-borders)"
55
+ },
56
+ "thead th, thead td": {
57
+ borderBottomWidth: "1px",
58
+ borderBottomColor: "var(--tw-prose-th-borders)"
59
+ }
68
60
  };
69
- export const normalTable = {
70
- thead: {
71
- borderBottomWidth: '1px',
72
- borderBottomColor: 'var(--tw-prose-th-borders)',
73
- },
74
- 'thead th': {
75
- verticalAlign: 'bottom',
76
- paddingInlineEnd: em(8, 14),
77
- paddingBottom: em(8, 14),
78
- paddingInlineStart: em(8, 14),
79
- },
80
- 'thead th:first-child': {
81
- paddingInlineStart: '0',
82
- },
83
- 'thead th:last-child': {
84
- paddingInlineEnd: '0',
85
- },
86
- 'tbody td, tfoot td': {
87
- paddingTop: em(8, 14),
88
- paddingInlineEnd: em(8, 14),
89
- paddingBottom: em(8, 14),
90
- paddingInlineStart: em(8, 14),
91
- },
92
- 'tbody td:first-child, tfoot td:first-child': {
93
- paddingInlineStart: '0',
94
- },
95
- 'tbody td:last-child, tfoot td:last-child': {
96
- paddingInlineEnd: '0',
97
- },
98
- 'tbody tr': {
99
- borderBottomWidth: '1px',
100
- borderBottomColor: 'var(--tw-prose-td-borders)',
101
- },
102
- 'tbody tr:last-child': {
103
- borderBottomWidth: '0',
104
- },
105
- 'tbody td': {
106
- verticalAlign: 'baseline',
107
- },
108
- tfoot: {
109
- borderTopWidth: '1px',
110
- borderTopColor: 'var(--tw-prose-th-borders)',
111
- },
112
- 'tfoot td': {
113
- verticalAlign: 'top',
114
- },
115
- 'th, td': {
116
- textAlign: 'start',
117
- },
118
- };
119
- export const DEFAULT = {
120
- css: [
121
- {
122
- color: 'var(--tw-prose-body)',
123
- maxWidth: 'none',
124
- fontSize: rem(16),
125
- lineHeight: '1.75rem',
126
- '[class~="lead"]': {
127
- fontSize: em(20, 16),
128
- lineHeight: round(32 / 20),
129
- marginTop: em(24, 20),
130
- marginBottom: em(24, 20),
131
- color: 'var(--tw-prose-lead)',
132
- },
133
- ul: {
134
- paddingInlineStart: '1rem',
135
- listStyleType: 'disc',
136
- marginTop: em(20, 16),
137
- marginBottom: em(20, 16),
138
- },
139
- li: {
140
- marginTop: em(8, 16),
141
- marginBottom: em(8, 16),
142
- },
143
- 'ol > li': {
144
- paddingInlineStart: em(6, 16),
145
- },
146
- 'ul > li': {
147
- paddingInlineStart: '0',
148
- },
149
- '> ul > li p': {
150
- marginTop: em(12, 16),
151
- marginBottom: em(12, 16),
152
- },
153
- '> ul > li > p:first-child': {
154
- marginTop: em(20, 16),
155
- },
156
- '> ul > li > p:last-child': {
157
- marginBottom: em(20, 16),
158
- },
159
- '> ol > li > p:first-child': {
160
- marginTop: em(20, 16),
161
- },
162
- '> ol > li > p:last-child': {
163
- marginBottom: em(20, 16),
164
- },
165
- 'ul ul, ul ol, ol ul, ol ol': {
166
- marginTop: em(12, 16),
167
- marginBottom: em(12, 16),
168
- },
169
- dl: {
170
- marginTop: em(20, 16),
171
- marginBottom: em(20, 16),
172
- },
173
- dt: {
174
- color: 'var(--tw-prose-headings)',
175
- fontWeight: '600',
176
- marginTop: em(20, 16),
177
- },
178
- dd: {
179
- marginTop: em(8, 16),
180
- paddingInlineStart: em(26, 16),
181
- },
182
- hr: {
183
- borderColor: 'var(--tw-prose-hr)',
184
- borderTopWidth: '1px',
185
- marginTop: em(48, 16),
186
- marginBottom: em(48, 16),
187
- },
188
- p: {
189
- marginTop: em(20, 16),
190
- marginBottom: em(20, 16),
191
- },
192
- strong: {
193
- color: 'var(--tw-prose-bold)',
194
- fontWeight: '500',
195
- },
196
- 'a strong': {
197
- color: 'inherit',
198
- },
199
- 'blockquote strong': {
200
- color: 'inherit',
201
- },
202
- 'thead th strong': {
203
- color: 'inherit',
204
- },
205
- ol: {
206
- listStyleType: 'decimal',
207
- marginTop: em(20, 16),
208
- marginBottom: em(20, 16),
209
- paddingInlineStart: em(26, 16),
210
- },
211
- 'ol[type="A"]': {
212
- listStyleType: 'upper-alpha',
213
- },
214
- 'ol[type="a"]': {
215
- listStyleType: 'lower-alpha',
216
- },
217
- 'ol[type="A" s]': {
218
- listStyleType: 'upper-alpha',
219
- },
220
- 'ol[type="a" s]': {
221
- listStyleType: 'lower-alpha',
222
- },
223
- 'ol[type="I"]': {
224
- listStyleType: 'upper-roman',
225
- },
226
- 'ol[type="i"]': {
227
- listStyleType: 'lower-roman',
228
- },
229
- 'ol[type="I" s]': {
230
- listStyleType: 'upper-roman',
231
- },
232
- 'ol[type="i" s]': {
233
- listStyleType: 'lower-roman',
234
- },
235
- 'ol[type="1"]': {
236
- listStyleType: 'decimal',
237
- },
238
- 'ol > li::marker': {
239
- fontWeight: '400',
240
- color: 'var(--tw-prose-counters)',
241
- },
242
- 'ul > li::marker': {
243
- color: 'var(--tw-prose-bullets)',
244
- },
245
- blockquote: {
246
- marginTop: em(32, 20),
247
- marginBottom: em(32, 20),
248
- paddingInlineStart: em(20, 20),
249
- fontWeight: '500',
250
- fontStyle: 'italic',
251
- color: 'var(--tw-prose-quotes)',
252
- borderInlineStartWidth: '0.25rem',
253
- borderInlineStartColor: 'var(--tw-prose-quote-borders)',
254
- quotes: '"\\201C""\\201D""\\2018""\\2019"',
255
- },
256
- 'blockquote p:first-of-type::before': {
257
- content: 'open-quote',
258
- },
259
- 'blockquote p:last-of-type::after': {
260
- content: 'close-quote',
261
- },
262
- h1: {
263
- color: 'var(--tw-prose-headings)',
264
- fontWeight: '800',
265
- fontSize: 'var(--text-3xl)',
266
- marginTop: '0',
267
- marginBottom: em(32, 36),
268
- lineHeight: round(40 / 36),
269
- },
270
- 'h1 strong': {
271
- fontWeight: '900',
272
- color: 'inherit',
273
- },
274
- h2: {
275
- color: 'var(--tw-prose-headings)',
276
- fontSize: em(24, 16),
277
- marginTop: em(48, 24),
278
- marginBottom: em(24, 24),
279
- lineHeight: round(32 / 24),
280
- fontWeight: '600',
281
- },
282
- 'h2 strong': {
283
- fontWeight: '800',
284
- color: 'inherit',
285
- },
286
- h3: {
287
- color: 'var(--tw-prose-headings)',
288
- fontWeight: '600',
289
- fontSize: em(20, 16),
290
- marginTop: em(32, 20),
291
- marginBottom: em(12, 20),
292
- lineHeight: round(32 / 20),
293
- },
294
- 'h3 strong': {
295
- fontWeight: '700',
296
- color: 'inherit',
297
- },
298
- h4: {
299
- color: 'var(--tw-prose-headings)',
300
- fontWeight: '600',
301
- marginTop: em(24, 16),
302
- marginBottom: em(8, 16),
303
- lineHeight: round(24 / 16),
304
- },
305
- 'h4 strong': {
306
- fontWeight: '700',
307
- color: 'inherit',
308
- },
309
- 'hr + *': {
310
- marginTop: '0',
311
- },
312
- 'h2 + *': {
313
- marginTop: '0',
314
- },
315
- 'h3 + *': {
316
- marginTop: '0',
317
- },
318
- 'h4 + *': {
319
- marginTop: '0',
320
- },
321
- img: {
322
- marginTop: em(32, 16),
323
- marginBottom: em(32, 16),
324
- },
325
- picture: {
326
- display: 'block',
327
- marginTop: em(32, 16),
328
- marginBottom: em(32, 16),
329
- },
330
- 'picture > img': {
331
- marginTop: '0',
332
- marginBottom: '0',
333
- },
334
- video: {
335
- marginTop: em(32, 16),
336
- marginBottom: em(32, 16),
337
- },
338
- kbd: {
339
- fontSize: em(14, 16),
340
- borderRadius: rem(5),
341
- paddingTop: em(3, 16),
342
- paddingInlineEnd: em(6, 16),
343
- paddingBottom: em(3, 16),
344
- paddingInlineStart: em(6, 16),
345
- fontWeight: '500',
346
- fontFamily: 'inherit',
347
- color: 'var(--tw-prose-kbd)',
348
- boxShadow: '0 0 0 1px var(--tw-prose-kbd-shadows),0 3px 0 var(--tw-prose-kbd-shadows)',
349
- },
350
- code: {
351
- padding: '3px',
352
- border: 'solid 1px',
353
- fontSize: '13px',
354
- borderColor: `var(--color-fd-border)`,
355
- borderRadius: '5px',
356
- fontWeight: '400',
357
- background: `var(--color-fd-muted)`,
358
- color: 'var(--tw-prose-code)',
359
- },
360
- 'a code': {
361
- color: 'inherit',
362
- },
363
- 'h1 code': {
364
- color: 'inherit',
365
- fontSize: 'var(--text-2xl)',
366
- },
367
- 'h2 code': {
368
- color: 'inherit',
369
- fontSize: em(21, 24),
370
- },
371
- 'h3 code': {
372
- color: 'inherit',
373
- fontSize: em(18, 20),
374
- },
375
- 'h4 code': {
376
- color: 'inherit',
377
- },
378
- 'blockquote code': {
379
- color: 'inherit',
380
- },
381
- 'thead th code': {
382
- color: 'inherit',
383
- },
384
- table: {
385
- fontSize: em(14, 16),
386
- lineHeight: round(24 / 14),
387
- width: '100%',
388
- tableLayout: 'auto',
389
- marginTop: em(32, 16),
390
- marginBottom: em(32, 16),
391
- },
392
- 'thead th': {
393
- color: 'var(--tw-prose-headings)',
394
- fontWeight: '600',
395
- },
396
- figure: {
397
- marginTop: em(32, 16),
398
- marginBottom: em(32, 16),
399
- },
400
- 'figure > *': {
401
- marginTop: '0',
402
- marginBottom: '0',
403
- },
404
- figcaption: {
405
- color: 'var(--tw-prose-captions)',
406
- fontSize: em(14, 16),
407
- lineHeight: round(20 / 14),
408
- marginTop: em(12, 14),
409
- },
410
- 'a:not([data-card])': {
411
- color: 'var(--tw-prose-links)',
412
- transition: 'opacity .2s',
413
- fontWeight: '500',
414
- textDecoration: 'underline',
415
- textUnderlineOffset: '3.5px',
416
- textDecorationColor: 'var(--color-fd-primary)',
417
- textDecorationThickness: '1.5px',
418
- },
419
- 'a:not([data-card]):hover': {
420
- opacity: '80%',
421
- },
422
- },
423
- colors,
424
- {
425
- '> :first-child': {
426
- marginTop: '0',
427
- },
428
- '> :last-child': {
429
- marginBottom: '0',
430
- },
431
- },
432
- ],
61
+ const normalTable = {
62
+ thead: {
63
+ borderBottomWidth: "1px",
64
+ borderBottomColor: "var(--tw-prose-th-borders)"
65
+ },
66
+ "thead th": {
67
+ verticalAlign: "bottom",
68
+ paddingInlineEnd: em(8, 14),
69
+ paddingBottom: em(8, 14),
70
+ paddingInlineStart: em(8, 14)
71
+ },
72
+ "thead th:first-child": { paddingInlineStart: "0" },
73
+ "thead th:last-child": { paddingInlineEnd: "0" },
74
+ "tbody td, tfoot td": {
75
+ paddingTop: em(8, 14),
76
+ paddingInlineEnd: em(8, 14),
77
+ paddingBottom: em(8, 14),
78
+ paddingInlineStart: em(8, 14)
79
+ },
80
+ "tbody td:first-child, tfoot td:first-child": { paddingInlineStart: "0" },
81
+ "tbody td:last-child, tfoot td:last-child": { paddingInlineEnd: "0" },
82
+ "tbody tr": {
83
+ borderBottomWidth: "1px",
84
+ borderBottomColor: "var(--tw-prose-td-borders)"
85
+ },
86
+ "tbody tr:last-child": { borderBottomWidth: "0" },
87
+ "tbody td": { verticalAlign: "baseline" },
88
+ tfoot: {
89
+ borderTopWidth: "1px",
90
+ borderTopColor: "var(--tw-prose-th-borders)"
91
+ },
92
+ "tfoot td": { verticalAlign: "top" },
93
+ "th, td": { textAlign: "start" }
433
94
  };
95
+ const DEFAULT = { css: [
96
+ {
97
+ color: "var(--tw-prose-body)",
98
+ maxWidth: "none",
99
+ fontSize: rem(16),
100
+ lineHeight: "1.75rem",
101
+ "[class~=\"lead\"]": {
102
+ fontSize: em(20, 16),
103
+ lineHeight: round(32 / 20),
104
+ marginTop: em(24, 20),
105
+ marginBottom: em(24, 20),
106
+ color: "var(--tw-prose-lead)"
107
+ },
108
+ ul: {
109
+ paddingInlineStart: "1rem",
110
+ listStyleType: "disc",
111
+ marginTop: em(20, 16),
112
+ marginBottom: em(20, 16)
113
+ },
114
+ li: {
115
+ marginTop: em(8, 16),
116
+ marginBottom: em(8, 16)
117
+ },
118
+ "ol > li": { paddingInlineStart: em(6, 16) },
119
+ "ul > li": { paddingInlineStart: "0" },
120
+ "> ul > li p": {
121
+ marginTop: em(12, 16),
122
+ marginBottom: em(12, 16)
123
+ },
124
+ "> ul > li > p:first-child": { marginTop: em(20, 16) },
125
+ "> ul > li > p:last-child": { marginBottom: em(20, 16) },
126
+ "> ol > li > p:first-child": { marginTop: em(20, 16) },
127
+ "> ol > li > p:last-child": { marginBottom: em(20, 16) },
128
+ "ul ul, ul ol, ol ul, ol ol": {
129
+ marginTop: em(12, 16),
130
+ marginBottom: em(12, 16)
131
+ },
132
+ dl: {
133
+ marginTop: em(20, 16),
134
+ marginBottom: em(20, 16)
135
+ },
136
+ dt: {
137
+ color: "var(--tw-prose-headings)",
138
+ fontWeight: "600",
139
+ marginTop: em(20, 16)
140
+ },
141
+ dd: {
142
+ marginTop: em(8, 16),
143
+ paddingInlineStart: em(26, 16)
144
+ },
145
+ hr: {
146
+ borderColor: "var(--tw-prose-hr)",
147
+ borderTopWidth: "1px",
148
+ marginTop: em(48, 16),
149
+ marginBottom: em(48, 16)
150
+ },
151
+ p: {
152
+ marginTop: em(20, 16),
153
+ marginBottom: em(20, 16)
154
+ },
155
+ strong: {
156
+ color: "var(--tw-prose-bold)",
157
+ fontWeight: "500"
158
+ },
159
+ "a strong": { color: "inherit" },
160
+ "blockquote strong": { color: "inherit" },
161
+ "thead th strong": { color: "inherit" },
162
+ ol: {
163
+ listStyleType: "decimal",
164
+ marginTop: em(20, 16),
165
+ marginBottom: em(20, 16),
166
+ paddingInlineStart: em(26, 16)
167
+ },
168
+ "ol[type=\"A\"]": { listStyleType: "upper-alpha" },
169
+ "ol[type=\"a\"]": { listStyleType: "lower-alpha" },
170
+ "ol[type=\"A\" s]": { listStyleType: "upper-alpha" },
171
+ "ol[type=\"a\" s]": { listStyleType: "lower-alpha" },
172
+ "ol[type=\"I\"]": { listStyleType: "upper-roman" },
173
+ "ol[type=\"i\"]": { listStyleType: "lower-roman" },
174
+ "ol[type=\"I\" s]": { listStyleType: "upper-roman" },
175
+ "ol[type=\"i\" s]": { listStyleType: "lower-roman" },
176
+ "ol[type=\"1\"]": { listStyleType: "decimal" },
177
+ "ol > li::marker": {
178
+ fontWeight: "400",
179
+ color: "var(--tw-prose-counters)"
180
+ },
181
+ "ul > li::marker": { color: "var(--tw-prose-bullets)" },
182
+ blockquote: {
183
+ marginTop: em(32, 20),
184
+ marginBottom: em(32, 20),
185
+ paddingInlineStart: em(20, 20),
186
+ fontWeight: "500",
187
+ fontStyle: "italic",
188
+ color: "var(--tw-prose-quotes)",
189
+ borderInlineStartWidth: "0.25rem",
190
+ borderInlineStartColor: "var(--tw-prose-quote-borders)",
191
+ quotes: "\"\\201C\"\"\\201D\"\"\\2018\"\"\\2019\""
192
+ },
193
+ "blockquote p:first-of-type::before": { content: "open-quote" },
194
+ "blockquote p:last-of-type::after": { content: "close-quote" },
195
+ h1: {
196
+ color: "var(--tw-prose-headings)",
197
+ fontWeight: "800",
198
+ fontSize: "var(--text-3xl)",
199
+ marginTop: "0",
200
+ marginBottom: em(32, 36),
201
+ lineHeight: round(40 / 36)
202
+ },
203
+ "h1 strong": {
204
+ fontWeight: "900",
205
+ color: "inherit"
206
+ },
207
+ h2: {
208
+ color: "var(--tw-prose-headings)",
209
+ fontSize: em(24, 16),
210
+ marginTop: em(48, 24),
211
+ marginBottom: em(24, 24),
212
+ lineHeight: round(32 / 24),
213
+ fontWeight: "600"
214
+ },
215
+ "h2 strong": {
216
+ fontWeight: "800",
217
+ color: "inherit"
218
+ },
219
+ h3: {
220
+ color: "var(--tw-prose-headings)",
221
+ fontWeight: "600",
222
+ fontSize: em(20, 16),
223
+ marginTop: em(32, 20),
224
+ marginBottom: em(12, 20),
225
+ lineHeight: round(32 / 20)
226
+ },
227
+ "h3 strong": {
228
+ fontWeight: "700",
229
+ color: "inherit"
230
+ },
231
+ h4: {
232
+ color: "var(--tw-prose-headings)",
233
+ fontWeight: "600",
234
+ marginTop: em(24, 16),
235
+ marginBottom: em(8, 16),
236
+ lineHeight: round(24 / 16)
237
+ },
238
+ "h4 strong": {
239
+ fontWeight: "700",
240
+ color: "inherit"
241
+ },
242
+ "hr + *": { marginTop: "0" },
243
+ "h2 + *": { marginTop: "0" },
244
+ "h3 + *": { marginTop: "0" },
245
+ "h4 + *": { marginTop: "0" },
246
+ img: {
247
+ marginTop: em(32, 16),
248
+ marginBottom: em(32, 16)
249
+ },
250
+ picture: {
251
+ display: "block",
252
+ marginTop: em(32, 16),
253
+ marginBottom: em(32, 16)
254
+ },
255
+ "picture > img": {
256
+ marginTop: "0",
257
+ marginBottom: "0"
258
+ },
259
+ video: {
260
+ marginTop: em(32, 16),
261
+ marginBottom: em(32, 16)
262
+ },
263
+ kbd: {
264
+ fontSize: em(14, 16),
265
+ borderRadius: rem(5),
266
+ paddingTop: em(3, 16),
267
+ paddingInlineEnd: em(6, 16),
268
+ paddingBottom: em(3, 16),
269
+ paddingInlineStart: em(6, 16),
270
+ fontWeight: "500",
271
+ fontFamily: "inherit",
272
+ color: "var(--tw-prose-kbd)",
273
+ boxShadow: "0 0 0 1px var(--tw-prose-kbd-shadows),0 3px 0 var(--tw-prose-kbd-shadows)"
274
+ },
275
+ code: {
276
+ padding: "3px",
277
+ border: "solid 1px",
278
+ fontSize: "13px",
279
+ borderColor: `var(--color-fd-border)`,
280
+ borderRadius: "5px",
281
+ fontWeight: "400",
282
+ background: `var(--color-fd-muted)`,
283
+ color: "var(--tw-prose-code)"
284
+ },
285
+ "a code": { color: "inherit" },
286
+ "h1 code": {
287
+ color: "inherit",
288
+ fontSize: "var(--text-2xl)"
289
+ },
290
+ "h2 code": {
291
+ color: "inherit",
292
+ fontSize: em(21, 24)
293
+ },
294
+ "h3 code": {
295
+ color: "inherit",
296
+ fontSize: em(18, 20)
297
+ },
298
+ "h4 code": { color: "inherit" },
299
+ "blockquote code": { color: "inherit" },
300
+ "thead th code": { color: "inherit" },
301
+ table: {
302
+ fontSize: em(14, 16),
303
+ lineHeight: round(24 / 14),
304
+ width: "100%",
305
+ tableLayout: "auto",
306
+ marginTop: em(32, 16),
307
+ marginBottom: em(32, 16)
308
+ },
309
+ "thead th": {
310
+ color: "var(--tw-prose-headings)",
311
+ fontWeight: "600"
312
+ },
313
+ figure: {
314
+ marginTop: em(32, 16),
315
+ marginBottom: em(32, 16)
316
+ },
317
+ "figure > *": {
318
+ marginTop: "0",
319
+ marginBottom: "0"
320
+ },
321
+ figcaption: {
322
+ color: "var(--tw-prose-captions)",
323
+ fontSize: em(14, 16),
324
+ lineHeight: round(20 / 14),
325
+ marginTop: em(12, 14)
326
+ },
327
+ "a:not([data-card])": {
328
+ color: "var(--tw-prose-links)",
329
+ transition: "opacity .2s",
330
+ fontWeight: "500",
331
+ textDecoration: "underline",
332
+ textUnderlineOffset: "3.5px",
333
+ textDecorationColor: "var(--color-fd-primary)",
334
+ textDecorationThickness: "1.5px"
335
+ },
336
+ "a:not([data-card]):hover": { opacity: "80%" }
337
+ },
338
+ colors,
339
+ {
340
+ "> :first-child": { marginTop: "0" },
341
+ "> :last-child": { marginBottom: "0" }
342
+ }
343
+ ] };
344
+
345
+ //#endregion
346
+ export { DEFAULT, normalTable, roundedTable };
347
+ //# sourceMappingURL=styles.js.map