@hanzo/ui 0.5.10

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 (166) hide show
  1. package/assets/lux-site-icons/android-chrome-192x192.png +0 -0
  2. package/assets/lux-site-icons/android-chrome-512x512.png +0 -0
  3. package/assets/lux-site-icons/apple-touch-icon.png +0 -0
  4. package/assets/lux-site-icons/favicon-16x16.png +0 -0
  5. package/assets/lux-site-icons/favicon-32x32.png +0 -0
  6. package/assets/lux-site-icons/favicon.ico +0 -0
  7. package/assets/standard-docs/LUX-NFT-Terms-and-Conditions.pdf +0 -0
  8. package/assets/standard-docs/LUX-Privacy-Policy.pdf +0 -0
  9. package/blocks/components/accordian-block.tsx +48 -0
  10. package/blocks/components/block-component-props.ts +11 -0
  11. package/blocks/components/bullet-cards-block.tsx +43 -0
  12. package/blocks/components/card-block.tsx +213 -0
  13. package/blocks/components/carte-blanche-block/index.tsx +98 -0
  14. package/blocks/components/content.tsx +70 -0
  15. package/blocks/components/cta-block.tsx +98 -0
  16. package/blocks/components/enh-heading-block.tsx +194 -0
  17. package/blocks/components/grid-block/grid-block-mutator.ts +12 -0
  18. package/blocks/components/grid-block/index.tsx +83 -0
  19. package/blocks/components/grid-block/mutator-registry.ts +10 -0
  20. package/blocks/components/grid-block/table-borders.mutator.ts +47 -0
  21. package/blocks/components/group-block.tsx +83 -0
  22. package/blocks/components/heading-block.tsx +88 -0
  23. package/blocks/components/image-block.tsx +108 -0
  24. package/blocks/components/index.ts +30 -0
  25. package/blocks/components/screenful-block/content.tsx +115 -0
  26. package/blocks/components/screenful-block/index.tsx +77 -0
  27. package/blocks/components/screenful-block/poster-background.tsx +34 -0
  28. package/blocks/components/screenful-block/video-background.tsx +45 -0
  29. package/blocks/components/space-block.tsx +66 -0
  30. package/blocks/components/video-block.tsx +137 -0
  31. package/blocks/def/accordian-block.ts +14 -0
  32. package/blocks/def/block.ts +7 -0
  33. package/blocks/def/bullet-cards-block.ts +20 -0
  34. package/blocks/def/card-block.ts +24 -0
  35. package/blocks/def/carte-blanche-block.ts +20 -0
  36. package/blocks/def/cta-block.ts +19 -0
  37. package/blocks/def/element-block.ts +11 -0
  38. package/blocks/def/enh-heading-block.ts +45 -0
  39. package/blocks/def/grid-block.ts +16 -0
  40. package/blocks/def/group-block.ts +11 -0
  41. package/blocks/def/heading-block.ts +15 -0
  42. package/blocks/def/image-block.ts +36 -0
  43. package/blocks/def/index.ts +35 -0
  44. package/blocks/def/screenful-block.ts +51 -0
  45. package/blocks/def/space-block.ts +64 -0
  46. package/blocks/def/video-block.ts +28 -0
  47. package/blocks/index.ts +2 -0
  48. package/common/chat-widget.tsx +75 -0
  49. package/common/contact-dialog/contact-form.tsx +111 -0
  50. package/common/contact-dialog/disclaimer.tsx +13 -0
  51. package/common/contact-dialog/index.tsx +48 -0
  52. package/common/copyright.tsx +21 -0
  53. package/common/drawer-menu.tsx +51 -0
  54. package/common/footer.tsx +77 -0
  55. package/common/head-metadata/from-next/metadata-types.ts +158 -0
  56. package/common/head-metadata/from-next/opengraph-types.ts +267 -0
  57. package/common/head-metadata/from-next/twitter-types.ts +92 -0
  58. package/common/head-metadata/index.tsx +208 -0
  59. package/common/header/index.tsx +57 -0
  60. package/common/header/mobile-nav.tsx +72 -0
  61. package/common/header/theme-toggle.tsx +26 -0
  62. package/common/icons/github.tsx +14 -0
  63. package/common/icons/index.tsx +34 -0
  64. package/common/icons/lux-logo.tsx +10 -0
  65. package/common/icons/secure-delivery.tsx +13 -0
  66. package/common/icons/social-icon.tsx +35 -0
  67. package/common/icons/youtube-logo.tsx +59 -0
  68. package/common/index.ts +14 -0
  69. package/common/logo.tsx +71 -0
  70. package/common/mini-chart/index.tsx +8 -0
  71. package/common/mini-chart/mini-chart-props.ts +44 -0
  72. package/common/mini-chart/mini-chart.tsx +76 -0
  73. package/common/mini-chart/wrapper.tsx +23 -0
  74. package/context-providers/index.ts +1 -0
  75. package/context-providers/theme-provider.tsx +20 -0
  76. package/next/README.md +11 -0
  77. package/next/determine-device-middleware.ts +16 -0
  78. package/next/fonts/DrukTextWide-Bold-Trial.otf +0 -0
  79. package/next/fonts/DrukTextWide-Heavy-Trial.otf +0 -0
  80. package/next/fonts/DrukTextWide-Medium-Trial.otf +0 -0
  81. package/next/get-app-router-font-classes.ts +12 -0
  82. package/next/load-and-return-lux-next-fonts-on-import.ts +68 -0
  83. package/next/next-font-desc.ts +28 -0
  84. package/next/not-found-content.mdx +4 -0
  85. package/next/not-found.tsx +23 -0
  86. package/next/pages-router-font-vars.tsx +18 -0
  87. package/next/root-layout.tsx +53 -0
  88. package/package.json +105 -0
  89. package/primitives/accordion.tsx +61 -0
  90. package/primitives/action-button.tsx +46 -0
  91. package/primitives/apply-typography.tsx +55 -0
  92. package/primitives/avatar.tsx +49 -0
  93. package/primitives/badge.tsx +36 -0
  94. package/primitives/button.tsx +73 -0
  95. package/primitives/calendar.tsx +72 -0
  96. package/primitives/card.tsx +83 -0
  97. package/primitives/checkbox.tsx +32 -0
  98. package/primitives/command.tsx +155 -0
  99. package/primitives/dialog-video-controller.tsx +38 -0
  100. package/primitives/dialog.tsx +152 -0
  101. package/primitives/form.tsx +179 -0
  102. package/primitives/index.ts +144 -0
  103. package/primitives/inline-icon.tsx +37 -0
  104. package/primitives/input.tsx +30 -0
  105. package/primitives/label.tsx +28 -0
  106. package/primitives/link-element.tsx +104 -0
  107. package/primitives/main.tsx +17 -0
  108. package/primitives/mdx-link.tsx +22 -0
  109. package/primitives/nav-items.tsx +48 -0
  110. package/primitives/popover.tsx +35 -0
  111. package/primitives/progress.tsx +27 -0
  112. package/primitives/scroll-area.tsx +47 -0
  113. package/primitives/select.tsx +169 -0
  114. package/primitives/separator.tsx +29 -0
  115. package/primitives/sheet.tsx +175 -0
  116. package/primitives/skeleton.tsx +15 -0
  117. package/primitives/switch.tsx +33 -0
  118. package/primitives/table.tsx +117 -0
  119. package/primitives/tabs.tsx +60 -0
  120. package/primitives/tailwind-indicator.tsx +19 -0
  121. package/primitives/text-area.tsx +26 -0
  122. package/primitives/toast.tsx +129 -0
  123. package/primitives/toaster.tsx +37 -0
  124. package/primitives/use-toast.ts +192 -0
  125. package/primitives/video-player.tsx +26 -0
  126. package/primitives/youtube-embed.tsx +83 -0
  127. package/siteDef/footer/community.tsx +67 -0
  128. package/siteDef/footer/company.ts +37 -0
  129. package/siteDef/footer/ecosystem.ts +37 -0
  130. package/siteDef/footer/index.tsx +26 -0
  131. package/siteDef/footer/legal.ts +28 -0
  132. package/siteDef/footer/network.ts +33 -0
  133. package/siteDef/footer/svg/warpcast-logo.svg +12 -0
  134. package/siteDef/main-nav.ts +35 -0
  135. package/style/globals.css +13 -0
  136. package/style/hanzo-common.css +32 -0
  137. package/style/hanzo-default-colors.css +79 -0
  138. package/style/social-svg.css +3 -0
  139. package/tailwind/colors.tailwind.js +46 -0
  140. package/tailwind/fonts.tailwind.ts +31 -0
  141. package/tailwind/index.ts +18 -0
  142. package/tailwind/lux-tw-fonts.ts +32 -0
  143. package/tailwind/safelist.tailwind.js +26 -0
  144. package/tailwind/screens.tailwind.js +8 -0
  145. package/tailwind/spacing.tailwind.js +57 -0
  146. package/tailwind/tailwind.config.base.js +905 -0
  147. package/tailwind/tw-font-desc.ts +15 -0
  148. package/tailwind/typo-plugin/get-plugin-styles.js +676 -0
  149. package/tailwind/typo-plugin/index.d.ts +9 -0
  150. package/tailwind/typo-plugin/index.js +141 -0
  151. package/tailwind/typo-plugin/utils.js +60 -0
  152. package/tailwind/typography-test.mdx +36 -0
  153. package/types/breakpoints.ts +11 -0
  154. package/types/bullet-item.ts +10 -0
  155. package/types/button-def.ts +39 -0
  156. package/types/contact-info.ts +11 -0
  157. package/types/dimensions.ts +20 -0
  158. package/types/grid-def.ts +37 -0
  159. package/types/icon.ts +10 -0
  160. package/types/image-def.ts +28 -0
  161. package/types/index.ts +29 -0
  162. package/types/link-def.ts +59 -0
  163. package/types/site-def.ts +31 -0
  164. package/types/t-shirt-size.ts +5 -0
  165. package/util/index.ts +76 -0
  166. package/util/specifier.ts +43 -0
@@ -0,0 +1,15 @@
1
+ /*
2
+ NextFontDesc and TwFontDesc have to be seperate because they are needed
3
+ at different times during the next compile / build. Otherwise a nasty
4
+ race condition happens! That's why they are in different files.
5
+ */
6
+
7
+ interface TwFontDesc {
8
+ twName: string
9
+ cssVar?: string
10
+ fontFamily: string[]
11
+ }
12
+
13
+ export {
14
+ type TwFontDesc as default
15
+ }
@@ -0,0 +1,676 @@
1
+ import {
2
+ round,
3
+ pxToRem,
4
+ pxToEm,
5
+ } from '../../util'
6
+
7
+ const typographyColorTheme = {
8
+ // vars are defined in global.css
9
+ // and dark mode is handled at that level.
10
+ '--tw-prose-body': "var(--hz-ui-fg-body)",
11
+ '--tw-prose-headings': "var(--hz-ui-fg-0)",
12
+ '--tw-prose-links': "var(--hz-ui-fg-0)",
13
+ '--tw-prose-links-hover': "var(--hz-ui-fg-2)",
14
+ '--tw-prose-bold': "var(--hz-ui-fg-0)",
15
+ '--tw-prose-counters': "var(--hz-ui-fg-4)",
16
+ '--tw-prose-bullets': "var(--hz-ui-fg-2)",
17
+ '--tw-prose-hr': "var(--hz-ui-fg-2)",
18
+ '--tw-prose-quotes': "var(--hz-ui-fg-body)",
19
+ '--tw-prose-quote-borders': "var(--hz-ui-fg-3)",
20
+ '--tw-prose-captions': "var(--hz-ui-fg-2)",
21
+ '--tw-prose-kbd': "var(--hz-ui-fg-0)",
22
+ '--tw-prose-kbd-shadows': "var(--hz-ui-fg-1)",
23
+ '--tw-prose-code': "var(--hz-ui-fg-0)",
24
+ '--tw-prose-pre-code': "var(--hz-ui-fg-1)",
25
+ '--tw-prose-pre-bg': "var(--hz-ui-bg-1)",
26
+ '--tw-prose-th-borders': "var(--hz-ui-fg-2)",
27
+ '--tw-prose-td-borders': "var(--hz-ui-fg-3)",
28
+ }
29
+
30
+ const defaultCSS = {
31
+
32
+ color: 'var(--tw-prose-body)',
33
+ // YUCK maxWidth: '65ch',
34
+ p: {
35
+ textAlign: 'inherit'
36
+ }, // Required to maintain correct order when merging
37
+ 'p:first-child': {},
38
+ 'p:last-child': {},
39
+ a: {
40
+ color: 'var(--tw-prose-links)',
41
+ textDecoration: 'underline',
42
+ fontWeight: '400',
43
+ },
44
+ 'a:hover': {
45
+ color: 'var(--tw-prose-links-hover)',
46
+ },
47
+ blockquote: {
48
+ fontWeight: '400',
49
+ fontStyle: 'italic',
50
+ color: 'var(--tw-prose-quotes)',
51
+ quotes: '"\\201C""\\201D""\\2018""\\2019"',
52
+ },
53
+ //'blockquote::before': {},
54
+ //'blockquote::after': {},
55
+ 'blockquote p:first-of-type::before': {
56
+ content: 'open-quote',
57
+ },
58
+ 'blockquote p:last-of-type::after': {
59
+ content: 'close-quote',
60
+ },
61
+ 'blockquote strong': {
62
+ color: 'inherit',
63
+ },
64
+ cite: {
65
+ display: 'block',
66
+ fontStyle: 'normal',
67
+ textAlign: 'right',
68
+ color: 'var(--tw-prose-quotes)',
69
+ },
70
+ ol: {
71
+ listStyleType: 'decimal',
72
+ },
73
+ ul: {
74
+ //listStyleType: 'disc',
75
+ },
76
+ 'ol > li::marker': {
77
+ fontWeight: '400',
78
+ color: 'var(--tw-prose-counters)',
79
+ },
80
+ 'ul > li::marker': {
81
+ color: 'var(--tw-prose-bullets)',
82
+ },
83
+ 'ul > li::before': {
84
+ },
85
+ hr: {
86
+ borderColor: 'var(--tw-prose-hr)',
87
+ borderTopWidth: 1,
88
+ },
89
+ h1: {
90
+ color: 'var(--tw-prose-headings)',
91
+ fontWeight: '800',
92
+ textAlign: 'inherit'
93
+ },
94
+ h2: {
95
+ color: 'var(--tw-prose-headings)',
96
+ fontWeight: '700',
97
+ textAlign: 'inherit'
98
+ },
99
+ h3: {
100
+ color: 'var(--tw-prose-headings)',
101
+ fontWeight: '600',
102
+ textAlign: 'inherit'
103
+ },
104
+ h4: {
105
+ color: 'var(--tw-prose-headings)',
106
+ fontWeight: '600',
107
+ textAlign: 'inherit'
108
+ },
109
+ h5: {
110
+ color: 'var(--tw-prose-headings)',
111
+ fontWeight: '600',
112
+ textAlign: 'inherit'
113
+ },
114
+ h6: {
115
+ color: 'var(--tw-prose-headings)',
116
+ textAlign: 'inherit'
117
+ },
118
+ img: {},
119
+ 'img:first-child': {
120
+ },
121
+ 'img:last-child': {
122
+ },
123
+ picture: {
124
+ display: 'block',
125
+ },
126
+ strong: {
127
+ color: 'var(--tw-prose-bold)',
128
+ fontWeight: '600',
129
+ },
130
+ video: {},
131
+ kbd: {
132
+ fontWeight: '500',
133
+ fontFamily: 'inherit',
134
+ color: 'var(--tw-prose-kbd)',
135
+ boxShadow:
136
+ '0 0 0 1px rgb(var(--tw-prose-kbd-shadows) / 10%), 0 3px 0 rgb(var(--tw-prose-kbd-shadows) / 10%)',
137
+ },
138
+ code: {
139
+ color: 'var(--tw-prose-code)',
140
+ fontWeight: '500',
141
+ },
142
+ 'code::before': {
143
+ content: '"`"',
144
+ },
145
+ 'code::after': {
146
+ content: '"`"',
147
+ },
148
+ 'a code': {
149
+ color: 'inherit',
150
+ },
151
+ 'h1 code': {
152
+ color: 'inherit',
153
+ },
154
+ 'h2 code': {
155
+ color: 'inherit',
156
+ },
157
+ 'h3 code': {
158
+ color: 'inherit',
159
+ },
160
+ 'h4 code': {
161
+ color: 'inherit',
162
+ },
163
+ 'h5 code': {
164
+ color: 'inherit',
165
+ },
166
+ 'h6 code': {
167
+ color: 'inherit',
168
+ },
169
+ 'blockquote code': {
170
+ color: 'inherit',
171
+ },
172
+ 'thead th code': {
173
+ color: 'inherit',
174
+ },
175
+ pre: {
176
+ color: 'var(--tw-prose-pre-code)',
177
+ backgroundColor: 'var(--tw-prose-pre-bg)',
178
+ overflowX: 'auto',
179
+ fontWeight: '400',
180
+ },
181
+ 'pre code': {
182
+ backgroundColor: 'transparent',
183
+ borderWidth: '0',
184
+ borderRadius: '0',
185
+ padding: '0',
186
+ fontWeight: 'inherit',
187
+ color: 'inherit',
188
+ fontSize: 'inherit',
189
+ fontFamily: 'inherit',
190
+ lineHeight: 'inherit',
191
+ },
192
+ 'pre code::before': {
193
+ content: 'none',
194
+ },
195
+ 'pre code::after': {
196
+ content: 'none',
197
+ },
198
+ table: {
199
+ width: '100%',
200
+ tableLayout: 'auto',
201
+ textAlign: 'left',
202
+ },
203
+ thead: {
204
+ borderBottomWidth: '1px',
205
+ borderBottomColor: 'var(--tw-prose-th-borders)',
206
+ },
207
+ 'thead th': {
208
+ color: 'var(--tw-prose-headings)',
209
+ fontWeight: '600',
210
+ verticalAlign: 'bottom',
211
+ },
212
+ 'tbody tr': {
213
+ },
214
+ 'tbody tr:last-child': {
215
+ },
216
+ 'tbody td': {
217
+ verticalAlign: 'baseline',
218
+ },
219
+ tfoot: {
220
+ borderTopWidth: '1px',
221
+ borderTopColor: 'var(--tw-prose-th-borders)',
222
+ },
223
+ 'tfoot td': {
224
+ verticalAlign: 'top',
225
+ },
226
+ }
227
+
228
+ const defaultModifiers = (base) => ({
229
+ base: {
230
+ css: [
231
+ {
232
+ fontSize: '1rem',
233
+ lineHeight: 1.4,
234
+ p: {
235
+ marginTop: '0.33rem',
236
+ marginBottom: '0.33rem',
237
+ },
238
+ 'p:first-child': {
239
+ marginTop: 0,
240
+ },
241
+ 'p:last-child': {
242
+ marginBottom: 0,
243
+ },
244
+ a: {},
245
+ 'a:hover': {},
246
+ blockquote: {
247
+ //color: 'blue', //var(--tw-prose-quotes)',
248
+ //marginTop: pxToEm(32, 20),
249
+ //marginBottom: pxToEm(32, 20),
250
+ //paddingLeft: pxToEm(20, 20),
251
+ },
252
+ //'blockquote::before': {},
253
+ //'blockquote::after': {},
254
+ 'blockquote p:first-of-type::before': {
255
+ },
256
+ 'blockquote p:last-of-type::after': {
257
+ },
258
+ cite: {},
259
+ ol: {
260
+ fontSize: '1rem',
261
+ paddingLeft: '1.5rem',
262
+ margin: 0,
263
+ marginLeft: '-5px',
264
+ },
265
+ ul: {
266
+ fontSize: '1rem',
267
+ paddingLeft: '1.5rem',
268
+ margin: 0,
269
+ marginLeft: '-0.6rem',
270
+ listStylePosition: 'outside',
271
+ listStyleType: "'\u25BC'"
272
+ },
273
+ li: {},
274
+ 'ol > li': {
275
+ paddingLeft: '0.4rem',
276
+ },
277
+ 'ul > li': {
278
+ paddingLeft: '0.75rem',
279
+ marginBottom: '0.75rem',
280
+ },
281
+ 'ul > li:last-child': {
282
+ marginBottom: 0,
283
+ },
284
+ '> ul > li p': {
285
+ margin: 0,
286
+ display: 'inline'
287
+ },
288
+ hr: {},
289
+ h1: {
290
+ fontSize: pxToRem(40, base),
291
+ lineHeight: 1.2,
292
+ },
293
+ h2: {
294
+ fontSize: pxToRem(36, base),
295
+ lineHeight: 1.2,
296
+ },
297
+ h3: {
298
+ fontSize: '1.4rem',
299
+ lineHeight: 1.2,
300
+ },
301
+ h4: {
302
+ marginTop: '0.5rem',
303
+ marginBottom: '0.5rem',
304
+ fontSize: '1.3rem',
305
+ lineHeight: 1.2,
306
+ },
307
+ h5: {
308
+ marginTop: '0.5rem',
309
+ marginBottom: '0.5rem',
310
+ fontSize: '1.2rem',
311
+ lineHeight: 1.4,
312
+ },
313
+ h6: {
314
+ marginTop: '0.5rem',
315
+ marginBottom: '0.5rem',
316
+ fontSize: '1.15rem',
317
+ lineHeight: 1.3,
318
+ },
319
+ 'hr + *': {
320
+ marginTop: '0',
321
+ },
322
+ 'h2 + *': {
323
+ marginTop: '0',
324
+ },
325
+ 'h3 + *': {
326
+ marginTop: '0',
327
+ },
328
+ 'h4 + *': {
329
+ marginTop: '0',
330
+ },
331
+ img: {
332
+ marginTop: '0.5rem',
333
+ marginBottom: '0.5rem',
334
+ },
335
+ 'img:first-child': {
336
+ marginTop: 0,
337
+ },
338
+ 'img:last-child': {
339
+ marginBottom: 0,
340
+ },
341
+ picture: {
342
+ marginTop: pxToRem(20, base),
343
+ marginBottom: pxToRem(20, base),
344
+ },
345
+ 'picture > img': {
346
+ marginTop: '0',
347
+ marginBottom: '0',
348
+ },
349
+ video: {
350
+ marginTop: pxToRem(20, base),
351
+ marginBottom: pxToRem(20, base),
352
+ },
353
+ kbd: {
354
+ fontSize: pxToEm(14, 16),
355
+ borderRadius: pxToRem(5, base),
356
+ paddingTop: pxToEm(3, 16),
357
+ paddingRight: pxToEm(6, 16),
358
+ paddingBottom: pxToEm(3, 16),
359
+ paddingLeft: pxToEm(6, 16),
360
+ },
361
+ code: {
362
+ fontSize: pxToEm(14, 16),
363
+ },
364
+ 'h2 code': {
365
+ fontSize: pxToEm(21, 24),
366
+ },
367
+ 'h3 code': {
368
+ fontSize: pxToEm(18, 20),
369
+ },
370
+ pre: {
371
+ fontSize: pxToRem(14, 16),
372
+ lineHeight: round(24 / 14),
373
+ marginTop: pxToEm(24, 14),
374
+ marginBottom: pxToEm(24, 14),
375
+ borderRadius: pxToRem(6, base),
376
+ paddingTop: pxToEm(12, 14),
377
+ paddingRight: pxToEm(16, 14),
378
+ paddingBottom: pxToEm(12, 14),
379
+ paddingLeft: pxToEm(16, 14),
380
+ },
381
+ /*
382
+ '> ul > li > *:first-child': {},
383
+ '> ul > li > *:last-child': {},
384
+ '> ol > li > *:first-child': {},
385
+ '> ol > li > *:last-child': {},
386
+ */
387
+ 'ul ul, ul ol, ol ul, ol ol': {
388
+ marginTop: pxToRem(12, base),
389
+ marginBottom: pxToRem(12, base),
390
+ },
391
+ dl: {
392
+ marginTop: pxToEm(20, 16),
393
+ marginBottom: pxToEm(20, base),
394
+ },
395
+ dt: {
396
+ marginTop: pxToEm(20, base),
397
+ },
398
+ dd: {
399
+ marginTop: pxToEm(8, base),
400
+ paddingLeft: pxToEm(26, base),
401
+ },
402
+ table: {
403
+ fontSize: pxToEm(14, base),
404
+ lineHeight: round(24 / 14),
405
+ },
406
+ 'thead th': {
407
+ paddingRight: pxToEm(8, 14),
408
+ paddingBottom: pxToEm(8, 14),
409
+ paddingLeft: pxToEm(8, 14),
410
+ },
411
+ 'thead th:first-child': {
412
+ paddingLeft: '0',
413
+ },
414
+ 'thead th:last-child': {
415
+ paddingRight: '0',
416
+ },
417
+ 'tbody td, tfoot td': {
418
+ paddingTop: pxToEm(8, 14),
419
+ paddingRight: pxToEm(8, 14),
420
+ paddingBottom: pxToEm(8, 14),
421
+ paddingLeft: pxToEm(8, 14),
422
+ },
423
+ 'tbody td:first-child, tfoot td:first-child': {
424
+ paddingLeft: '0',
425
+ },
426
+ 'tbody td:last-child, tfoot td:last-child': {
427
+ paddingRight: '0',
428
+ },
429
+ }
430
+ ],
431
+ },
432
+ sm: {
433
+ css: [
434
+ {
435
+ p: {},
436
+ 'p:first-child': {},
437
+ 'p:last-child': {},
438
+ a: {},
439
+ 'a:hover': {},
440
+ blockquote: {},
441
+ //'blockquote::before': {},
442
+ //'blockquote::after': {},
443
+ 'blockquote p:first-of-type::before': {},
444
+ 'blockquote p:last-of-type::after': {},
445
+ cite: {},
446
+ ol: {},
447
+ ul: {},
448
+ li: {},
449
+ 'ol > li': {},
450
+ 'ul > li': {},
451
+ 'ul > li:last-child': {},
452
+ '> ul > li p': {},
453
+ hr: {},
454
+ h1: {
455
+ fontSize: pxToRem(24, base),
456
+ },
457
+ h2: {
458
+ fontSize: pxToRem(20, base),
459
+ },
460
+ h3: {
461
+ fontSize: pxToEm(18, base),
462
+ },
463
+ h4: {},
464
+ h5: {},
465
+ h6: {},
466
+ 'hr + *': {},
467
+ 'h2 + *': {},
468
+ 'h3 + *': {},
469
+ 'h4 + *': {},
470
+ img: {},
471
+ 'img:first-child': {},
472
+ 'img:last-child': {},
473
+ picture: {},
474
+ 'picture > img': {},
475
+ video: {},
476
+ kbd: {},
477
+ code: {},
478
+ 'h2 code': {},
479
+ 'h3 code': {},
480
+ pre: {},
481
+ /*
482
+ '> ul > li > *:first-child': {},
483
+ '> ul > li > *:last-child': {},
484
+ '> ol > li > *:first-child': {},
485
+ '> ol > li > *:last-child': {},
486
+ */
487
+ 'ul ul, ul ol, ol ul, ol ol': {},
488
+ dl: {},
489
+ dt:{},
490
+ dd:{},
491
+ table: {},
492
+ 'thead th': {},
493
+ 'thead th:first-child': {},
494
+ 'thead th:last-child': {},
495
+ 'tbody td, tfoot td': {},
496
+ 'tbody td:first-child, tfoot td:first-child': {},
497
+ 'tbody td:last-child, tfoot td:last-child': {},
498
+ }
499
+ ],
500
+ },
501
+ lg: {
502
+ css: [
503
+ {
504
+ p: {},
505
+ 'p:first-child': {},
506
+ 'p:last-child': {},
507
+ a: {},
508
+ 'a:hover': {},
509
+ blockquote: {},
510
+ //'blockquote::before': {},
511
+ //'blockquote::after': {},
512
+ 'blockquote p:first-of-type::before': {},
513
+ 'blockquote p:last-of-type::after': {},
514
+ cite: {},
515
+ ol: {},
516
+ ul: {},
517
+ li: {},
518
+ 'ol > li': {},
519
+ 'ul > li': {},
520
+ 'ul > li:last-child': {},
521
+ '> ul > li p': {},
522
+ hr: {},
523
+ h1: {
524
+ fontSize: pxToRem(45, base),
525
+ lineHeight: 1.1,
526
+ },
527
+ h2: {
528
+ fontSize: pxToRem(40, base),
529
+ lineHeight: 1.1,
530
+ },
531
+ h3: {
532
+ fontSize: pxToRem(32, base),
533
+ lineHeight: 1.1,
534
+ },
535
+ h4: {
536
+ fontSize: pxToRem(26, base),
537
+ marginTop: pxToRem(13, base),
538
+ marginBottom: pxToRem(13, base),
539
+ },
540
+ h5: {
541
+ fontSize: pxToRem(22, base),
542
+ marginTop: pxToRem(11, base),
543
+ marginBottom: pxToRem(11, base),
544
+ },
545
+ h6: {},
546
+ 'hr + *': {},
547
+ 'h2 + *': {},
548
+ 'h3 + *': {},
549
+ 'h4 + *': {},
550
+ img: {},
551
+ 'img:first-child': {},
552
+ 'img:last-child': {},
553
+ picture: {},
554
+ 'picture > img': {},
555
+ video: {},
556
+ kbd: {},
557
+ code: {},
558
+ 'h2 code': {},
559
+ 'h3 code': {},
560
+ pre: {},
561
+ /*
562
+ '> ul > li > *:first-child': {},
563
+ '> ul > li > *:last-child': {},
564
+ '> ol > li > *:first-child': {},
565
+ '> ol > li > *:last-child': {},
566
+ */
567
+ 'ul ul, ul ol, ol ul, ol ol': {},
568
+ dl: {},
569
+ dt:{},
570
+ dd:{},
571
+ table: {},
572
+ 'thead th': {},
573
+ 'thead th:first-child': {},
574
+ 'thead th:last-child': {},
575
+ 'tbody td, tfoot td': {},
576
+ 'tbody td:first-child, tfoot td:first-child': {},
577
+ 'tbody td:last-child, tfoot td:last-child': {},
578
+ }
579
+ ],
580
+ },
581
+ xl: {
582
+ css: [
583
+ {
584
+ p: {},
585
+ 'p:first-child': {},
586
+ 'p:last-child': {},
587
+ a: {},
588
+ 'a:hover': {},
589
+ blockquote: {},
590
+ //'blockquote::before': {},
591
+ //'blockquote::after': {},
592
+ 'blockquote p:first-of-type::before': {},
593
+ 'blockquote p:last-of-type::after': {},
594
+ cite: {},
595
+ ol: {},
596
+ ul: {},
597
+ li: {},
598
+ 'ol > li': {},
599
+ 'ul > li': {},
600
+ 'ul > li:last-child': {},
601
+ '> ul > li p': {},
602
+ hr: {},
603
+ h1: {
604
+ fontSize: pxToRem(52, base),
605
+ lineHeight: 1.1,
606
+ },
607
+ h2: {
608
+ fontSize: pxToRem(45, base),
609
+ lineHeight: 1.1,
610
+ },
611
+ h3: {
612
+ fontSize: pxToRem(40, base),
613
+ lineHeight: 1.1,
614
+ },
615
+ h4: {
616
+ fontSize: pxToRem(28, base),
617
+ marginTop: pxToRem(13, base),
618
+ marginBottom: pxToRem(13, base),
619
+ },
620
+ h5: {
621
+ fontSize: pxToRem(22, base),
622
+ marginTop: pxToRem(11, base),
623
+ marginBottom: pxToRem(11, base),
624
+ },
625
+ h6: {},
626
+ 'hr + *': {},
627
+ 'h2 + *': {},
628
+ 'h3 + *': {},
629
+ 'h4 + *': {},
630
+ img: {},
631
+ 'img:first-child': {},
632
+ 'img:last-child': {},
633
+ picture: {},
634
+ 'picture > img': {},
635
+ video: {},
636
+ kbd: {},
637
+ code: {},
638
+ 'h2 code': {},
639
+ 'h3 code': {},
640
+ pre: {},
641
+ /*
642
+ '> ul > li > *:first-child': {},
643
+ '> ul > li > *:last-child': {},
644
+ '> ol > li > *:first-child': {},
645
+ '> ol > li > *:last-child': {},
646
+ */
647
+ 'ul ul, ul ol, ol ul, ol ol': {},
648
+ dl: {},
649
+ dt:{},
650
+ dd:{},
651
+ table: {},
652
+ 'thead th': {},
653
+ 'thead th:first-child': {},
654
+ 'thead th:last-child': {},
655
+ 'tbody td, tfoot td': {},
656
+ 'tbody td:first-child, tfoot td:first-child': {},
657
+ 'tbody td:last-child, tfoot td:last-child': {},
658
+ }
659
+ ],
660
+ },
661
+ })
662
+
663
+ const getStyles = (baseFontSize) => ({
664
+ DEFAULT: {
665
+ css: [
666
+ defaultCSS,
667
+ typographyColorTheme,
668
+ ...defaultModifiers(baseFontSize).base.css,
669
+ ],
670
+ },
671
+ sm: defaultModifiers(baseFontSize).sm,
672
+ lg: defaultModifiers(baseFontSize).lg,
673
+ xl: defaultModifiers(baseFontSize).xl,
674
+ })
675
+
676
+ export default getStyles
@@ -0,0 +1,9 @@
1
+ declare function plugin(options?: Partial<{ className: string; target: 'modern' | 'legacy', base: number }>): {
2
+ handler: () => void
3
+ }
4
+
5
+ declare namespace plugin {
6
+ const __isOptionsFunction: true
7
+ }
8
+
9
+ export = plugin