fumadocs-ui 14.4.2 → 14.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,8 @@
1
1
  import type { CSSRuleObject, PresetsConfig } from 'tailwindcss/types/config';
2
2
  import { presets } from './theme/colors';
3
- export interface DocsUIOptions {
3
+ import { type Options as TypographyOptions, typography } from './theme/typography';
4
+ import type { StyleOptions } from './theme/typography/styles';
5
+ export interface DocsUIOptions extends Pick<StyleOptions, 'disableRoundedTable'> {
4
6
  /**
5
7
  * Prefix to the variable name of colors
6
8
  *
@@ -29,10 +31,7 @@ export interface DocsUIOptions {
29
31
  * Color preset
30
32
  */
31
33
  preset?: keyof typeof presets | Preset;
32
- /**
33
- * Disable custom table styles
34
- */
35
- disableRoundedTable?: boolean;
34
+ typography?: TypographyOptions;
36
35
  }
37
36
  type Keys = 'background' | 'foreground' | 'muted' | 'muted-foreground' | 'popover' | 'popover-foreground' | 'card' | 'card-foreground' | 'border' | 'primary' | 'primary-foreground' | 'secondary' | 'secondary-foreground' | 'accent' | 'accent-foreground' | 'ring';
38
37
  type Theme = Record<Keys, string>;
@@ -49,5 +48,6 @@ export declare const docsUi: {
49
48
  __isOptionsFunction: true;
50
49
  };
51
50
  export declare function createPreset(options?: DocsUIOptions): PresetsConfig;
51
+ export { typography };
52
52
  export { presets } from './theme/colors';
53
53
  //# sourceMappingURL=tailwind-plugin.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tailwind-plugin.d.ts","sourceRoot":"","sources":["../src/tailwind-plugin.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAC7E,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAIzC,MAAM,WAAW,aAAa;IAC5B;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;;OAIG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B;;;;OAIG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,OAAO,OAAO,GAAG,MAAM,CAAC;IAEvC;;OAEG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B;AAED,KAAK,IAAI,GACL,YAAY,GACZ,YAAY,GACZ,OAAO,GACP,kBAAkB,GAClB,SAAS,GACT,oBAAoB,GACpB,MAAM,GACN,iBAAiB,GACjB,QAAQ,GACR,SAAS,GACT,oBAAoB,GACpB,WAAW,GACX,sBAAsB,GACtB,QAAQ,GACR,mBAAmB,GACnB,MAAM,CAAC;AAEX,KAAK,KAAK,GAAG,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;AAElC,MAAM,WAAW,MAAM;IACrB,KAAK,EAAE,KAAK,CAAC;IACb,IAAI,EAAE,KAAK,CAAC;IACZ,GAAG,CAAC,EAAE,aAAa,CAAC;CACrB;AAkDD,eAAO,MAAM,MAAM;;;cArHK,CAAC;;;CAyQxB,CAAC;AAEF,wBAAgB,YAAY,CAAC,OAAO,GAAE,aAAkB,GAAG,aAAa,CAYvE;AAED,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC"}
1
+ {"version":3,"file":"tailwind-plugin.d.ts","sourceRoot":"","sources":["../src/tailwind-plugin.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAC7E,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAEzC,OAAO,EACL,KAAK,OAAO,IAAI,iBAAiB,EACjC,UAAU,EACX,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAE9D,MAAM,WAAW,aACf,SAAQ,IAAI,CAAC,YAAY,EAAE,qBAAqB,CAAC;IACjD;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;;OAIG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B;;;;OAIG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,OAAO,OAAO,GAAG,MAAM,CAAC;IAEvC,UAAU,CAAC,EAAE,iBAAiB,CAAC;CAChC;AAED,KAAK,IAAI,GACL,YAAY,GACZ,YAAY,GACZ,OAAO,GACP,kBAAkB,GAClB,SAAS,GACT,oBAAoB,GACpB,MAAM,GACN,iBAAiB,GACjB,QAAQ,GACR,SAAS,GACT,oBAAoB,GACpB,WAAW,GACX,sBAAsB,GACtB,QAAQ,GACR,mBAAmB,GACnB,MAAM,CAAC;AAEX,KAAK,KAAK,GAAG,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;AAElC,MAAM,WAAW,MAAM;IACrB,KAAK,EAAE,KAAK,CAAC;IACb,IAAI,EAAE,KAAK,CAAC;IACZ,GAAG,CAAC,EAAE,aAAa,CAAC;CACrB;AAkDD,eAAO,MAAM,MAAM;;;cArHH,CAAC;;;CAyQhB,CAAC;AAEF,wBAAgB,YAAY,CAAC,OAAO,GAAE,aAAkB,GAAG,aAAa,CAWvE;AAED,OAAO,EAAE,UAAU,EAAE,CAAC;AACtB,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC"}
@@ -1,8 +1,7 @@
1
- import typography from '@tailwindcss/typography';
2
1
  import plugin from 'tailwindcss/plugin';
3
2
  import { presets } from './theme/colors';
4
3
  import { animations } from './theme/animations';
5
- import { typography as typographyConfig } from './theme/typography';
4
+ import { typography, } from './theme/typography';
6
5
  function getThemeStyles(prefix, theme) {
7
6
  return Object.fromEntries(Object.entries(theme).map(([k, v]) => [variableName(prefix, k), v]));
8
7
  }
@@ -176,14 +175,14 @@ export const docsUi = plugin.withOptions(({ cssPrefix = '', preset = 'default',
176
175
  export function createPreset(options = {}) {
177
176
  return {
178
177
  darkMode: 'class',
179
- plugins: [typography, docsUi(options)],
180
- theme: {
181
- extend: {
182
- typography: {
183
- DEFAULT: typographyConfig(options),
184
- },
185
- },
186
- },
178
+ plugins: [
179
+ typography({
180
+ disableRoundedTable: options.disableRoundedTable,
181
+ ...options.typography,
182
+ }),
183
+ docsUi(options),
184
+ ],
187
185
  };
188
186
  }
187
+ export { typography };
189
188
  export { presets } from './theme/colors';
@@ -0,0 +1,12 @@
1
+ import * as styles from './styles';
2
+ export interface Options extends styles.StyleOptions {
3
+ className?: string;
4
+ }
5
+ export declare const typography: {
6
+ (options: Options): {
7
+ handler: import("tailwindcss/types/config").PluginCreator;
8
+ config?: Partial<import("tailwindcss/types/config").Config>;
9
+ };
10
+ __isOptionsFunction: true;
11
+ };
12
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/theme/typography/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AAKnC,MAAM,WAAW,OAAQ,SAAQ,MAAM,CAAC,YAAY;IAClD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAmJD,eAAO,MAAM,UAAU;;;cApJlB,CAAC;;;CAqLL,CAAC"}
@@ -0,0 +1,133 @@
1
+ import * as styles from './styles';
2
+ import plugin from 'tailwindcss/plugin';
3
+ import merge from 'lodash.merge';
4
+ import parser from 'postcss-selector-parser';
5
+ function inWhere(selector, { className, prefix, modifier }) {
6
+ const prefixedNot = prefix(`.not-${className}`).slice(1);
7
+ const selectorPrefix = selector.startsWith('>')
8
+ ? `${modifier === 'DEFAULT' ? `.${className}` : `.${className}-${modifier}`} `
9
+ : '';
10
+ // Parse the selector, if every component ends in the same pseudo element(s) then move it to the end
11
+ const [trailingPseudo, rebuiltSelector] = commonTrailingPseudos(selector);
12
+ if (trailingPseudo) {
13
+ return `:where(${selectorPrefix}${rebuiltSelector}):not(:where([class~="${prefixedNot}"],[class~="${prefixedNot}"] *))${trailingPseudo}`;
14
+ }
15
+ return `:where(${selectorPrefix}${selector}):not(:where([class~="${prefixedNot}"],[class~="${prefixedNot}"] *))`;
16
+ }
17
+ function configToCss(config = {}, { className, modifier, prefix }) {
18
+ function updateSelector(k, v) {
19
+ if (Array.isArray(v)) {
20
+ return [k, v];
21
+ }
22
+ if (typeof v === 'object' && v !== null) {
23
+ const nested = Object.values(v).some((prop) => typeof prop === 'object');
24
+ if (nested) {
25
+ return [
26
+ inWhere(k, { className, modifier, prefix }),
27
+ v,
28
+ Object.fromEntries(Object.entries(v).map(([k, v]) => updateSelector(k, v))),
29
+ ];
30
+ }
31
+ return [inWhere(k, { className, modifier, prefix }), v];
32
+ }
33
+ return [k, v];
34
+ }
35
+ const css = 'css' in config ? config.css : [];
36
+ return Object.fromEntries(Object.entries(merge({}, ...(Array.isArray(css) ? css : [css]))).map(([k, v]) => updateSelector(k, v)));
37
+ }
38
+ const parseSelector = parser();
39
+ function commonTrailingPseudos(selector) {
40
+ const ast = parseSelector.astSync(selector);
41
+ const matrix = [];
42
+ // Put the pseudo elements in reverse order in a sparse, column-major 2D array
43
+ for (const [i, sel] of ast.nodes.entries()) {
44
+ for (const [j, child] of [...sel.nodes].reverse().entries()) {
45
+ // We only care about pseudo elements
46
+ if (child.type !== 'pseudo' || !child.value.startsWith('::')) {
47
+ break;
48
+ }
49
+ matrix[j] = matrix[j] || [];
50
+ matrix[j][i] = child;
51
+ }
52
+ }
53
+ const trailingPseudos = parser.selector({
54
+ value: '',
55
+ });
56
+ // At this point the pseudo elements are in a column-major 2D array
57
+ // This means each row contains one "column" of pseudo elements from each selector
58
+ // We can compare all the pseudo elements in a row to see if they are the same
59
+ for (const pseudos of matrix) {
60
+ // It's a sparse 2D array so there are going to be holes in the rows
61
+ // We skip those
62
+ if (!pseudos) {
63
+ continue;
64
+ }
65
+ const values = new Set(pseudos.map((p) => p.value));
66
+ // The pseudo elements are not the same
67
+ if (values.size > 1) {
68
+ break;
69
+ }
70
+ pseudos.forEach((pseudo) => pseudo.remove());
71
+ trailingPseudos.prepend(pseudos[0]);
72
+ }
73
+ if (trailingPseudos.nodes.length) {
74
+ return [trailingPseudos.toString(), ast.toString()];
75
+ }
76
+ return [null, selector];
77
+ }
78
+ const SELECTORS = [
79
+ ['headings', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'th'],
80
+ ['h1'],
81
+ ['h2'],
82
+ ['h3'],
83
+ ['h4'],
84
+ ['h5'],
85
+ ['h6'],
86
+ ['p'],
87
+ ['a'],
88
+ ['blockquote'],
89
+ ['figure'],
90
+ ['figcaption'],
91
+ ['strong'],
92
+ ['em'],
93
+ ['kbd'],
94
+ ['code'],
95
+ ['pre'],
96
+ ['ol'],
97
+ ['ul'],
98
+ ['li'],
99
+ ['table'],
100
+ ['thead'],
101
+ ['tr'],
102
+ ['th'],
103
+ ['td'],
104
+ ['img'],
105
+ ['video'],
106
+ ['hr'],
107
+ ['lead', '[class~="lead"]'],
108
+ ];
109
+ export const typography = plugin.withOptions(({ className = 'prose', ...styleOptions } = {}) => {
110
+ return ({ addVariant, addComponents, theme, ...rest }) => {
111
+ const prefix = rest.prefix;
112
+ const modifiers = theme('typography');
113
+ for (const [name, ...values] of SELECTORS) {
114
+ const selectors = values.length === 0 ? [name] : values;
115
+ const selector = selectors.join(', ');
116
+ addVariant(`${className}-${name}`, `& :is(${inWhere(selector, {
117
+ prefix,
118
+ className,
119
+ })})`);
120
+ }
121
+ addComponents({
122
+ [`.${className}`]: configToCss(modifiers.DEFAULT(styleOptions), {
123
+ className,
124
+ modifier: 'DEFAULT',
125
+ prefix,
126
+ }),
127
+ });
128
+ };
129
+ }, () => {
130
+ return {
131
+ theme: { typography: styles },
132
+ };
133
+ });
@@ -0,0 +1,486 @@
1
+ export interface StyleOptions {
2
+ /**
3
+ * Disable custom table styles
4
+ */
5
+ disableRoundedTable?: boolean;
6
+ }
7
+ export declare const DEFAULT: ({ disableRoundedTable }: StyleOptions) => {
8
+ css: ({
9
+ '--tw-prose-body': string;
10
+ '--tw-prose-headings': string;
11
+ '--tw-prose-lead': string;
12
+ '--tw-prose-links': string;
13
+ '--tw-prose-bold': string;
14
+ '--tw-prose-counters': string;
15
+ '--tw-prose-bullets': string;
16
+ '--tw-prose-hr': string;
17
+ '--tw-prose-quotes': string;
18
+ '--tw-prose-quote-borders': string;
19
+ '--tw-prose-captions': string;
20
+ '--tw-prose-code': string;
21
+ '--tw-prose-th-borders': string;
22
+ '--tw-prose-td-borders': string;
23
+ '--tw-prose-kbd': string;
24
+ '--tw-prose-kbd-shadows': string;
25
+ } | {
26
+ table: {
27
+ borderCollapse: string;
28
+ borderSpacing: string;
29
+ '@apply bg-fd-card rounded-lg border overflow-hidden': string;
30
+ };
31
+ th: {
32
+ textAlign: string;
33
+ '@apply p-2.5 border-s bg-fd-muted': string;
34
+ };
35
+ 'th:first-child': {
36
+ '@apply border-s-0': string;
37
+ };
38
+ 'th:not(tr:last-child *), td:not(tr:last-child *)': {
39
+ '@apply border-b': string;
40
+ };
41
+ td: {
42
+ textAlign: string;
43
+ '@apply border-s p-2.5': string;
44
+ };
45
+ 'td:first-child': {
46
+ '@apply border-s-0': string;
47
+ };
48
+ 'tfoot th, tfoot td': {
49
+ borderTopWidth: string;
50
+ borderTopColor: string;
51
+ };
52
+ 'thead th, thead td': {
53
+ borderBottomWidth: string;
54
+ borderBottomColor: string;
55
+ };
56
+ } | {
57
+ thead: {
58
+ borderBottomWidth: string;
59
+ borderBottomColor: string;
60
+ };
61
+ 'thead th': {
62
+ verticalAlign: string;
63
+ paddingInlineEnd: string;
64
+ paddingBottom: string;
65
+ paddingInlineStart: string;
66
+ };
67
+ 'thead th:first-child': {
68
+ paddingInlineStart: string;
69
+ };
70
+ 'thead th:last-child': {
71
+ paddingInlineEnd: string;
72
+ };
73
+ 'tbody td, tfoot td': {
74
+ paddingTop: string;
75
+ paddingInlineEnd: string;
76
+ paddingBottom: string;
77
+ paddingInlineStart: string;
78
+ };
79
+ 'tbody td:first-child, tfoot td:first-child': {
80
+ paddingInlineStart: string;
81
+ };
82
+ 'tbody td:last-child, tfoot td:last-child': {
83
+ paddingInlineEnd: string;
84
+ };
85
+ 'tbody tr': {
86
+ borderBottomWidth: string;
87
+ borderBottomColor: string;
88
+ };
89
+ 'tbody tr:last-child': {
90
+ borderBottomWidth: string;
91
+ };
92
+ 'tbody td': {
93
+ verticalAlign: string;
94
+ };
95
+ tfoot: {
96
+ borderTopWidth: string;
97
+ borderTopColor: string;
98
+ };
99
+ 'tfoot td': {
100
+ verticalAlign: string;
101
+ };
102
+ 'th, td': {
103
+ textAlign: string;
104
+ };
105
+ } | {
106
+ color: string;
107
+ maxWidth: string;
108
+ fontSize: string;
109
+ lineHeight: string;
110
+ '[class~="lead"]': {
111
+ fontSize: string;
112
+ lineHeight: string;
113
+ marginTop: string;
114
+ marginBottom: string;
115
+ color: string;
116
+ };
117
+ ul: {
118
+ paddingInlineStart: string;
119
+ listStyleType: string;
120
+ marginTop: string;
121
+ marginBottom: string;
122
+ };
123
+ li: {
124
+ marginTop: string;
125
+ marginBottom: string;
126
+ };
127
+ 'ol > li': {
128
+ paddingInlineStart: string;
129
+ };
130
+ 'ul > li': {
131
+ paddingInlineStart: string;
132
+ };
133
+ '> ul > li p': {
134
+ marginTop: string;
135
+ marginBottom: string;
136
+ };
137
+ '> ul > li > p:first-child': {
138
+ marginTop: string;
139
+ };
140
+ '> ul > li > p:last-child': {
141
+ marginBottom: string;
142
+ };
143
+ '> ol > li > p:first-child': {
144
+ marginTop: string;
145
+ };
146
+ '> ol > li > p:last-child': {
147
+ marginBottom: string;
148
+ };
149
+ 'ul ul, ul ol, ol ul, ol ol': {
150
+ marginTop: string;
151
+ marginBottom: string;
152
+ };
153
+ dl: {
154
+ marginTop: string;
155
+ marginBottom: string;
156
+ };
157
+ dt: {
158
+ color: string;
159
+ fontWeight: string;
160
+ marginTop: string;
161
+ };
162
+ dd: {
163
+ marginTop: string;
164
+ paddingInlineStart: string;
165
+ };
166
+ hr: {
167
+ borderColor: string;
168
+ borderTopWidth: number;
169
+ marginTop: string;
170
+ marginBottom: string;
171
+ };
172
+ p: {
173
+ marginTop: string;
174
+ marginBottom: string;
175
+ };
176
+ strong: {
177
+ color: string;
178
+ fontWeight: string;
179
+ };
180
+ 'a strong': {
181
+ color: string;
182
+ };
183
+ 'blockquote strong': {
184
+ color: string;
185
+ };
186
+ 'thead th strong': {
187
+ color: string;
188
+ };
189
+ ol: {
190
+ listStyleType: string;
191
+ marginTop: string;
192
+ marginBottom: string;
193
+ paddingInlineStart: string;
194
+ };
195
+ 'ol[type="A"]': {
196
+ listStyleType: string;
197
+ };
198
+ 'ol[type="a"]': {
199
+ listStyleType: string;
200
+ };
201
+ 'ol[type="A" s]': {
202
+ listStyleType: string;
203
+ };
204
+ 'ol[type="a" s]': {
205
+ listStyleType: string;
206
+ };
207
+ 'ol[type="I"]': {
208
+ listStyleType: string;
209
+ };
210
+ 'ol[type="i"]': {
211
+ listStyleType: string;
212
+ };
213
+ 'ol[type="I" s]': {
214
+ listStyleType: string;
215
+ };
216
+ 'ol[type="i" s]': {
217
+ listStyleType: string;
218
+ };
219
+ 'ol[type="1"]': {
220
+ listStyleType: string;
221
+ };
222
+ 'ol > li::marker': {
223
+ fontWeight: string;
224
+ color: string;
225
+ };
226
+ 'ul > li::marker': {
227
+ color: string;
228
+ };
229
+ blockquote: {
230
+ marginTop: string;
231
+ marginBottom: string;
232
+ paddingInlineStart: string;
233
+ fontWeight: string;
234
+ fontStyle: string;
235
+ color: string;
236
+ borderInlineStartWidth: string;
237
+ borderInlineStartColor: string;
238
+ quotes: string;
239
+ };
240
+ 'blockquote p:first-of-type::before': {
241
+ content: string;
242
+ };
243
+ 'blockquote p:last-of-type::after': {
244
+ content: string;
245
+ };
246
+ h1: {
247
+ color: string;
248
+ fontWeight: string;
249
+ fontSize: string;
250
+ marginTop: string;
251
+ marginBottom: string;
252
+ lineHeight: string;
253
+ };
254
+ 'h1 strong': {
255
+ fontWeight: string;
256
+ color: string;
257
+ };
258
+ h2: {
259
+ color: string;
260
+ fontSize: string;
261
+ marginTop: string;
262
+ marginBottom: string;
263
+ lineHeight: string;
264
+ fontWeight: string;
265
+ };
266
+ 'h2 strong': {
267
+ fontWeight: string;
268
+ color: string;
269
+ };
270
+ h3: {
271
+ color: string;
272
+ fontWeight: string;
273
+ fontSize: string;
274
+ marginTop: string;
275
+ marginBottom: string;
276
+ lineHeight: string;
277
+ };
278
+ 'h3 strong': {
279
+ fontWeight: string;
280
+ color: string;
281
+ };
282
+ h4: {
283
+ color: string;
284
+ fontWeight: string;
285
+ marginTop: string;
286
+ marginBottom: string;
287
+ lineHeight: string;
288
+ };
289
+ 'h4 strong': {
290
+ fontWeight: string;
291
+ color: string;
292
+ };
293
+ 'hr + *': {
294
+ marginTop: string;
295
+ };
296
+ 'h2 + *': {
297
+ marginTop: string;
298
+ };
299
+ 'h3 + *': {
300
+ marginTop: string;
301
+ };
302
+ 'h4 + *': {
303
+ marginTop: string;
304
+ };
305
+ img: {
306
+ marginTop: string;
307
+ marginBottom: string;
308
+ };
309
+ picture: {
310
+ display: string;
311
+ marginTop: string;
312
+ marginBottom: string;
313
+ };
314
+ 'picture > img': {
315
+ marginTop: string;
316
+ marginBottom: string;
317
+ };
318
+ video: {
319
+ marginTop: string;
320
+ marginBottom: string;
321
+ };
322
+ kbd: {
323
+ fontSize: string;
324
+ borderRadius: string;
325
+ paddingTop: string;
326
+ paddingInlineEnd: string;
327
+ paddingBottom: string;
328
+ paddingInlineStart: string;
329
+ fontWeight: string;
330
+ fontFamily: string;
331
+ color: string;
332
+ boxShadow: string;
333
+ };
334
+ code: {
335
+ padding: string;
336
+ border: string;
337
+ fontSize: string;
338
+ borderColor: string;
339
+ borderRadius: string;
340
+ fontWeight: string;
341
+ background: string;
342
+ color: string;
343
+ };
344
+ 'a code': {
345
+ color: string;
346
+ };
347
+ 'h1 code': {
348
+ color: string;
349
+ };
350
+ 'h2 code': {
351
+ color: string;
352
+ fontSize: string;
353
+ };
354
+ 'h3 code': {
355
+ color: string;
356
+ fontSize: string;
357
+ };
358
+ 'h4 code': {
359
+ color: string;
360
+ };
361
+ 'blockquote code': {
362
+ color: string;
363
+ };
364
+ 'thead th code': {
365
+ color: string;
366
+ };
367
+ table: {
368
+ fontSize: string;
369
+ lineHeight: string;
370
+ width: string;
371
+ tableLayout: string;
372
+ marginTop: string;
373
+ marginBottom: string;
374
+ };
375
+ 'thead th': {
376
+ color: string;
377
+ fontWeight: string;
378
+ };
379
+ figure: {
380
+ marginTop: string;
381
+ marginBottom: string;
382
+ };
383
+ 'figure > *': {
384
+ marginTop: string;
385
+ marginBottom: string;
386
+ };
387
+ figcaption: {
388
+ color: string;
389
+ fontSize: string;
390
+ lineHeight: string;
391
+ marginTop: string;
392
+ };
393
+ 'a:not([data-card])': {
394
+ color: string;
395
+ transition: string;
396
+ fontWeight: string;
397
+ textDecoration: string;
398
+ textUnderlineOffset: string;
399
+ textDecorationColor: string;
400
+ };
401
+ 'a:not([data-card]):hover': {
402
+ opacity: string;
403
+ };
404
+ '> :first-child'?: undefined;
405
+ '> :last-child'?: undefined;
406
+ } | {
407
+ '> :first-child': {
408
+ marginTop: string;
409
+ };
410
+ '> :last-child': {
411
+ marginBottom: string;
412
+ };
413
+ color?: undefined;
414
+ maxWidth?: undefined;
415
+ fontSize?: undefined;
416
+ lineHeight?: undefined;
417
+ '[class~="lead"]'?: undefined;
418
+ ul?: undefined;
419
+ li?: undefined;
420
+ 'ol > li'?: undefined;
421
+ 'ul > li'?: undefined;
422
+ '> ul > li p'?: undefined;
423
+ '> ul > li > p:first-child'?: undefined;
424
+ '> ul > li > p:last-child'?: undefined;
425
+ '> ol > li > p:first-child'?: undefined;
426
+ '> ol > li > p:last-child'?: undefined;
427
+ 'ul ul, ul ol, ol ul, ol ol'?: undefined;
428
+ dl?: undefined;
429
+ dt?: undefined;
430
+ dd?: undefined;
431
+ hr?: undefined;
432
+ p?: undefined;
433
+ strong?: undefined;
434
+ 'a strong'?: undefined;
435
+ 'blockquote strong'?: undefined;
436
+ 'thead th strong'?: undefined;
437
+ ol?: undefined;
438
+ 'ol[type="A"]'?: undefined;
439
+ 'ol[type="a"]'?: undefined;
440
+ 'ol[type="A" s]'?: undefined;
441
+ 'ol[type="a" s]'?: undefined;
442
+ 'ol[type="I"]'?: undefined;
443
+ 'ol[type="i"]'?: undefined;
444
+ 'ol[type="I" s]'?: undefined;
445
+ 'ol[type="i" s]'?: undefined;
446
+ 'ol[type="1"]'?: undefined;
447
+ 'ol > li::marker'?: undefined;
448
+ 'ul > li::marker'?: undefined;
449
+ blockquote?: undefined;
450
+ 'blockquote p:first-of-type::before'?: undefined;
451
+ 'blockquote p:last-of-type::after'?: undefined;
452
+ h1?: undefined;
453
+ 'h1 strong'?: undefined;
454
+ h2?: undefined;
455
+ 'h2 strong'?: undefined;
456
+ h3?: undefined;
457
+ 'h3 strong'?: undefined;
458
+ h4?: undefined;
459
+ 'h4 strong'?: undefined;
460
+ 'hr + *'?: undefined;
461
+ 'h2 + *'?: undefined;
462
+ 'h3 + *'?: undefined;
463
+ 'h4 + *'?: undefined;
464
+ img?: undefined;
465
+ picture?: undefined;
466
+ 'picture > img'?: undefined;
467
+ video?: undefined;
468
+ kbd?: undefined;
469
+ code?: undefined;
470
+ 'a code'?: undefined;
471
+ 'h1 code'?: undefined;
472
+ 'h2 code'?: undefined;
473
+ 'h3 code'?: undefined;
474
+ 'h4 code'?: undefined;
475
+ 'blockquote code'?: undefined;
476
+ 'thead th code'?: undefined;
477
+ table?: undefined;
478
+ 'thead th'?: undefined;
479
+ figure?: undefined;
480
+ 'figure > *'?: undefined;
481
+ figcaption?: undefined;
482
+ 'a:not([data-card])'?: undefined;
483
+ 'a:not([data-card]):hover'?: undefined;
484
+ })[];
485
+ };
486
+ //# sourceMappingURL=styles.d.ts.map