untitledui 0.1.1
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/commands/add.js +339 -0
- package/dist/commands/init.js +436 -0
- package/dist/helper/download-tar-api.js +129 -0
- package/dist/helper/download-tar.js +81 -0
- package/dist/helper/find-css-file.js +19 -0
- package/dist/helper/formatText.js +37 -0
- package/dist/helper/get-components-api.js +47 -0
- package/dist/helper/get-components-list.js +62 -0
- package/dist/helper/get-components.js +19 -0
- package/dist/helper/get-config.js +163 -0
- package/dist/helper/get-package-info.js +99 -0
- package/dist/helper/get-pkg-manager.js +16 -0
- package/dist/helper/get-project.js +176 -0
- package/dist/helper/install-template.js +29 -0
- package/dist/helper/match-color-css.js +82 -0
- package/dist/helper/update-color-css.js +134 -0
- package/dist/index.js +25 -0
- package/dist/package.json +50 -0
- package/dist/res/components.json +520 -0
- package/dist/res/config.json +3 -0
- package/package.json +61 -0
- package/templates/default/.prettierrc +10 -0
- package/templates/default/README.md +36 -0
- package/templates/default/eslint.config.mjs +58 -0
- package/templates/default/next.config.ts +6 -0
- package/templates/default/package.json +57 -0
- package/templates/default/postcss.config.js +5 -0
- package/templates/default/public/favicon.ico +0 -0
- package/templates/default/public/marketing/smiling-girl.png +0 -0
- package/templates/default/public/marketing/spirals.webp +0 -0
- package/templates/default/src/app/home-screen.tsx +109 -0
- package/templates/default/src/app/layout.tsx +42 -0
- package/templates/default/src/app/not-found.tsx +40 -0
- package/templates/default/src/app/page.tsx +3 -0
- package/templates/default/src/components/foundations/dot-icon.tsx +27 -0
- package/templates/default/src/components/foundations/featured-icon/featured-icons.tsx +153 -0
- package/templates/default/src/components/foundations/logo/UntitledLogo.tsx +63 -0
- package/templates/default/src/components/foundations/logo/UntitledLogoMinimal.tsx +164 -0
- package/templates/default/src/components/foundations/payment-icons/amex-icon.tsx +19 -0
- package/templates/default/src/components/foundations/payment-icons/apple-pay-icon.tsx +27 -0
- package/templates/default/src/components/foundations/payment-icons/discover-icon.tsx +34 -0
- package/templates/default/src/components/foundations/payment-icons/index.tsx +10 -0
- package/templates/default/src/components/foundations/payment-icons/mastercard-icon.tsx +39 -0
- package/templates/default/src/components/foundations/payment-icons/paypal-icon.tsx +45 -0
- package/templates/default/src/components/foundations/payment-icons/stripe-icon.tsx +27 -0
- package/templates/default/src/components/foundations/payment-icons/union-pay-icon.tsx +37 -0
- package/templates/default/src/components/foundations/payment-icons/visa-icon.tsx +27 -0
- package/templates/default/src/components/marketing/header-navigation/base-components/nav-menu-item.tsx +41 -0
- package/templates/default/src/components/marketing/header-navigation/components/header.tsx +245 -0
- package/templates/default/src/components/marketing/header-navigation/dropdown-header-navigation.tsx +53 -0
- package/templates/default/src/components/shared/avatar/avatar-label-group.tsx +32 -0
- package/templates/default/src/components/shared/avatar/avatar-profile-photo.tsx +84 -0
- package/templates/default/src/components/shared/avatar/avatar.tsx +131 -0
- package/templates/default/src/components/shared/avatar/base-components/avatar-add-button.tsx +33 -0
- package/templates/default/src/components/shared/avatar/base-components/avatar-company-icon.tsx +26 -0
- package/templates/default/src/components/shared/avatar/base-components/avatar-online-indicator.tsx +31 -0
- package/templates/default/src/components/shared/avatar/base-components/index.ts +4 -0
- package/templates/default/src/components/shared/avatar/base-components/verified-tick.tsx +34 -0
- package/templates/default/src/components/shared/avatar/utils.ts +12 -0
- package/templates/default/src/components/shared/badges/badge-groups.tsx +176 -0
- package/templates/default/src/components/shared/badges/badge-types.ts +264 -0
- package/templates/default/src/components/shared/badges/badges.tsx +479 -0
- package/templates/default/src/components/shared/button-group/button-group.tsx +97 -0
- package/templates/default/src/components/shared/buttons/app-store-buttons-outline.tsx +454 -0
- package/templates/default/src/components/shared/buttons/app-store-buttons.tsx +806 -0
- package/templates/default/src/components/shared/buttons/button-utility.tsx +87 -0
- package/templates/default/src/components/shared/buttons/button.tsx +284 -0
- package/templates/default/src/components/shared/buttons/close-button.tsx +39 -0
- package/templates/default/src/components/shared/buttons/social-button.tsx +135 -0
- package/templates/default/src/components/shared/buttons/social-logos.tsx +115 -0
- package/templates/default/src/components/shared/checkbox/checkbox.tsx +120 -0
- package/templates/default/src/components/shared/dropdown/dropdown.tsx +138 -0
- package/templates/default/src/components/shared/input-dropdown/combobox.tsx +161 -0
- package/templates/default/src/components/shared/input-dropdown/dropdown-item.tsx +98 -0
- package/templates/default/src/components/shared/input-dropdown/input-dropdown.tsx +172 -0
- package/templates/default/src/components/shared/input-dropdown/multi-select.tsx +373 -0
- package/templates/default/src/components/shared/input-dropdown/popover.tsx +36 -0
- package/templates/default/src/components/shared/input-dropdown/select.tsx +63 -0
- package/templates/default/src/components/shared/inputs/file-upload-trigger.tsx +74 -0
- package/templates/default/src/components/shared/inputs/form/form.tsx +10 -0
- package/templates/default/src/components/shared/inputs/hint-text.tsx +34 -0
- package/templates/default/src/components/shared/inputs/input/index.tsx +189 -0
- package/templates/default/src/components/shared/inputs/input/input-payment.tsx +134 -0
- package/templates/default/src/components/shared/inputs/input/input-with-button.tsx +69 -0
- package/templates/default/src/components/shared/inputs/input/input-with-dropdown.tsx +178 -0
- package/templates/default/src/components/shared/inputs/input/input-with-prefix.tsx +74 -0
- package/templates/default/src/components/shared/inputs/label.tsx +46 -0
- package/templates/default/src/components/shared/inputs/textarea/textarea.tsx +82 -0
- package/templates/default/src/components/shared/progress-indicators/progress-circles.tsx +176 -0
- package/templates/default/src/components/shared/progress-indicators/progress-indicators.tsx +86 -0
- package/templates/default/src/components/shared/progress-indicators/simple-circle.tsx +29 -0
- package/templates/default/src/components/shared/radio-buttons/radio-buttons.tsx +125 -0
- package/templates/default/src/components/shared/radio-groups/radio-group-avatar.tsx +62 -0
- package/templates/default/src/components/shared/radio-groups/radio-group-checkbox.tsx +72 -0
- package/templates/default/src/components/shared/radio-groups/radio-group-icon-card.tsx +95 -0
- package/templates/default/src/components/shared/radio-groups/radio-group-icon-simple.tsx +70 -0
- package/templates/default/src/components/shared/radio-groups/radio-group-payment-icon.tsx +71 -0
- package/templates/default/src/components/shared/radio-groups/radio-group-radio-button.tsx +76 -0
- package/templates/default/src/components/shared/radio-groups/radio-groups.tsx +8 -0
- package/templates/default/src/components/shared/slider/slider.tsx +76 -0
- package/templates/default/src/components/shared/tags/base-components/tag-checkbox.tsx +47 -0
- package/templates/default/src/components/shared/tags/base-components/tag-close-x.tsx +34 -0
- package/templates/default/src/components/shared/tags/tags.tsx +162 -0
- package/templates/default/src/components/shared/toggle/toggle.tsx +140 -0
- package/templates/default/src/components/shared/tooltips/tooltips.tsx +140 -0
- package/templates/default/src/components/utils/index.ts +48 -0
- package/templates/default/src/components/utils/isDeepEqual.ts +31 -0
- package/templates/default/src/components/utils/isReactComponent.ts +22 -0
- package/templates/default/src/components/utils/mergeRefs.ts +19 -0
- package/templates/default/src/components/utils/useBreakpoint.ts +36 -0
- package/templates/default/src/components/utils/uuid.ts +9 -0
- package/templates/default/src/fonts/GeistMonoVF.woff +0 -0
- package/templates/default/src/fonts/GeistVF.woff +0 -0
- package/templates/default/src/hooks/use-resize-observer.tsx +55 -0
- package/templates/default/src/providers/theme.tsx +11 -0
- package/templates/default/src/styles/colors.css +805 -0
- package/templates/default/src/styles/globals.css +86 -0
- package/templates/default/src/styles/text-styles.css +177 -0
- package/templates/default/src/styles/theme.css +1310 -0
- package/templates/default/src/styles/typography.css +428 -0
- package/templates/default/tsconfig.json +27 -0
|
@@ -0,0 +1,428 @@
|
|
|
1
|
+
.prose:not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
2
|
+
--tw-prose-body: var(--color-text-tertiary);
|
|
3
|
+
--tw-prose-headings: var(--color-text-primary);
|
|
4
|
+
--tw-prose-lead: var(--color-text-tertiary);
|
|
5
|
+
--tw-prose-links: var(--color-text-tertiary);
|
|
6
|
+
--tw-prose-bold: var(--color-text-primary);
|
|
7
|
+
--tw-prose-counters: var(--color-text-tertiary);
|
|
8
|
+
--tw-prose-bullets: var(--color-text-tertiary);
|
|
9
|
+
--tw-prose-hr: var(--color-border-secondary);
|
|
10
|
+
--tw-prose-quotes: var(--color-text-primary);
|
|
11
|
+
--tw-prose-quote-borders: var(--color-fg-brand-primary_alt);
|
|
12
|
+
--tw-prose-captions: var(--color-text-tertiary);
|
|
13
|
+
/* // --tw-prose-kbd: color.gray[900]; */
|
|
14
|
+
/* // --tw-prose-kbd-shadows: hexToRgb(color.gray[900]); */
|
|
15
|
+
--tw-prose-code: var(--color-text-primary);
|
|
16
|
+
--tw-prose-pre-code: var(--color-text-tertiary);
|
|
17
|
+
--tw-prose-pre-bg: var(--color-bg-primary);
|
|
18
|
+
--tw-prose-th-borders: var(--color-border-primary);
|
|
19
|
+
--tw-prose-td-borders: var(--color-border-secondary);
|
|
20
|
+
|
|
21
|
+
/* // Base */
|
|
22
|
+
color: var(--tw-prose-body);
|
|
23
|
+
font-size: var(--text-md);
|
|
24
|
+
line-height: var(--leading-md);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.prose :not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
28
|
+
/* // Text */
|
|
29
|
+
&:where(p) {
|
|
30
|
+
margin-top: calc(var(--spacing) * 4);
|
|
31
|
+
margin-bottom: calc(var(--spacing) * 4);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&:where([class~="lead"]) {
|
|
35
|
+
font-size: var(--text-md);
|
|
36
|
+
line-height: var(--leading-md);
|
|
37
|
+
margin-top: 1.2em;
|
|
38
|
+
margin-bottom: 1.2em;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/* // Lists */
|
|
42
|
+
&:where(ol) {
|
|
43
|
+
liststyletype: decimal;
|
|
44
|
+
|
|
45
|
+
margin-top: calc(var(--spacing) * 4);
|
|
46
|
+
margin-bottom: calc(var(--spacing) * 4);
|
|
47
|
+
padding-inline-start: 23px;
|
|
48
|
+
}
|
|
49
|
+
&:where(ul) {
|
|
50
|
+
liststyletype: disc;
|
|
51
|
+
|
|
52
|
+
margin-top: calc(var(--spacing) * 4);
|
|
53
|
+
margin-bottom: calc(var(--spacing) * 4);
|
|
54
|
+
padding-inline-start: 23px;
|
|
55
|
+
}
|
|
56
|
+
&:where(li) {
|
|
57
|
+
margin-top: em(8; 16);
|
|
58
|
+
margin-bottom: em(8; 16);
|
|
59
|
+
}
|
|
60
|
+
&:where(ol > li) {
|
|
61
|
+
padding-inline-start: 1px;
|
|
62
|
+
margin-top: 0;
|
|
63
|
+
margin-bottom: 0;
|
|
64
|
+
}
|
|
65
|
+
&:where(ul > li) {
|
|
66
|
+
padding-inline-start: 1px;
|
|
67
|
+
margin-top: 0;
|
|
68
|
+
margin-bottom: 0;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/* // Horizontal rules */
|
|
72
|
+
&:where(hr) {
|
|
73
|
+
margin-top: calc(var(--spacing) * 8);
|
|
74
|
+
margin-bottom: calc(var(--spacing) * 8);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/* // Quotes */
|
|
78
|
+
&:where(blockquote) {
|
|
79
|
+
color: var(--tw-prose-quotes);
|
|
80
|
+
|
|
81
|
+
border-left-width: 2px;
|
|
82
|
+
border-left-color: var(--tw-prose-quote-borders);
|
|
83
|
+
|
|
84
|
+
padding-inline-start: 0;
|
|
85
|
+
margin-top: calc(var(--spacing) * 10);
|
|
86
|
+
margin-bottom: calc(var(--spacing) * 10);
|
|
87
|
+
}
|
|
88
|
+
&:where(blockquote p) {
|
|
89
|
+
margin: 0;
|
|
90
|
+
font-weight: 500;
|
|
91
|
+
font-style: italic;
|
|
92
|
+
|
|
93
|
+
font-size: var(--text-xl);
|
|
94
|
+
line-height: var(--leading-xl);
|
|
95
|
+
}
|
|
96
|
+
&:where(blockquote p:first-of-type::before) {
|
|
97
|
+
content: open-quote;
|
|
98
|
+
}
|
|
99
|
+
&:where(blockquote p:last-of-type::after) {
|
|
100
|
+
content: close-quote;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/* // Headings */
|
|
104
|
+
&:where(h1) {
|
|
105
|
+
color: var(--tw-prose-headings);
|
|
106
|
+
font-weight: 600;
|
|
107
|
+
|
|
108
|
+
font-size: var(--text-display-sm);
|
|
109
|
+
line-height: var(--leading-display-sm);
|
|
110
|
+
margin-bottom: calc(var(--spacing) * 5);
|
|
111
|
+
margin-top: calc(var(--spacing) * 10);
|
|
112
|
+
}
|
|
113
|
+
&:where(h2) {
|
|
114
|
+
color: var(--tw-prose-headings);
|
|
115
|
+
font-weight: 600;
|
|
116
|
+
|
|
117
|
+
font-size: var(--text-display-xs);
|
|
118
|
+
line-height: var(--leading-display-xs);
|
|
119
|
+
margin-bottom: calc(var(--spacing) * 4);
|
|
120
|
+
margin-top: calc(var(--spacing) * 8);
|
|
121
|
+
}
|
|
122
|
+
&:where(h3) {
|
|
123
|
+
color: var(--tw-prose-headings);
|
|
124
|
+
font-weight: 600;
|
|
125
|
+
|
|
126
|
+
font-size: var(--text-xl);
|
|
127
|
+
line-height: var(--leading-xl);
|
|
128
|
+
margin-bottom: calc(var(--spacing) * 3);
|
|
129
|
+
margin-top: calc(var(--spacing) * 8);
|
|
130
|
+
}
|
|
131
|
+
&:where(h4) {
|
|
132
|
+
color: var(--tw-prose-headings);
|
|
133
|
+
font-weight: 600;
|
|
134
|
+
|
|
135
|
+
font-size: var(--text-lg);
|
|
136
|
+
line-height: var(--leading-lg);
|
|
137
|
+
margin-bottom: calc(var(--spacing) * 2);
|
|
138
|
+
margin-top: calc(var(--spacing) * 5);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
&:where(h2 + *) {
|
|
142
|
+
margin-top: 0;
|
|
143
|
+
}
|
|
144
|
+
&:where(h3 + *) {
|
|
145
|
+
margin-top: 0;
|
|
146
|
+
}
|
|
147
|
+
&:where(h4 + *) {
|
|
148
|
+
margin-top: 0;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
&:where(h1 strong) {
|
|
152
|
+
font-weight: 900;
|
|
153
|
+
color: inherit;
|
|
154
|
+
}
|
|
155
|
+
&:where(h2 strong) {
|
|
156
|
+
font-weight: 800;
|
|
157
|
+
color: inherit;
|
|
158
|
+
}
|
|
159
|
+
&:where(h3 strong) {
|
|
160
|
+
font-weight: 700;
|
|
161
|
+
color: inherit;
|
|
162
|
+
}
|
|
163
|
+
&:where(h4 strong) {
|
|
164
|
+
font-weight: 700;
|
|
165
|
+
color: inherit;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
/* // Media */
|
|
169
|
+
|
|
170
|
+
&:where(img) {
|
|
171
|
+
border-radius: var(--radius-xl);
|
|
172
|
+
width: 100%;
|
|
173
|
+
object-fit: cover;
|
|
174
|
+
|
|
175
|
+
margin-top: calc(var(--spacing) * 8);
|
|
176
|
+
margin-bottom: calc(var(--spacing) * 8);
|
|
177
|
+
}
|
|
178
|
+
&:where(video) {
|
|
179
|
+
margin-top: calc(var(--spacing) * 8);
|
|
180
|
+
margin-bottom: calc(var(--spacing) * 8);
|
|
181
|
+
}
|
|
182
|
+
&:where(figure) {
|
|
183
|
+
margin-top: calc(var(--spacing) * 10);
|
|
184
|
+
margin-bottom: calc(var(--spacing) * 10);
|
|
185
|
+
}
|
|
186
|
+
&:where(figure > *) {
|
|
187
|
+
margin-top: 0;
|
|
188
|
+
margin-bottom: 0;
|
|
189
|
+
}
|
|
190
|
+
&:where(figure:has(> blockquote)) {
|
|
191
|
+
border-left-width: 2px;
|
|
192
|
+
border-left-color: var(--tw-prose-quote-borders);
|
|
193
|
+
padding-top: calc(var(--spacing) * 2);
|
|
194
|
+
padding-bottom: calc(var(--spacing) * 2);
|
|
195
|
+
|
|
196
|
+
padding-inline-start: calc(var(--spacing) * 4);
|
|
197
|
+
}
|
|
198
|
+
&:where(figure:has(> blockquote) blockquote) {
|
|
199
|
+
padding-inline-start: 0;
|
|
200
|
+
border: none;
|
|
201
|
+
}
|
|
202
|
+
&:where(img + figcaption) {
|
|
203
|
+
display: flex;
|
|
204
|
+
align-items: center;
|
|
205
|
+
gap: calc(var(--spacing) * 1.5);
|
|
206
|
+
}
|
|
207
|
+
&:where(figcaption) {
|
|
208
|
+
color: var(--tw-prose-captions);
|
|
209
|
+
|
|
210
|
+
font-size: var(--text-sm);
|
|
211
|
+
line-height: var(--leading-sm);
|
|
212
|
+
margin-top: calc(var(--spacing) * 3);
|
|
213
|
+
}
|
|
214
|
+
&:where(cite) {
|
|
215
|
+
font-style: normal;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
/* // Inline elements */
|
|
219
|
+
&:where(a:not(h1 a, h2 a, h3 a, h4 a, h5 a, h6 a)) {
|
|
220
|
+
font-weight: 400;
|
|
221
|
+
text-decoration: underline;
|
|
222
|
+
text-underline-offset: 3px;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
&:where(a:focus-visible) {
|
|
226
|
+
border-radius: var(--radius-sm);
|
|
227
|
+
outline: 2px solid var(--color-focus-ring);
|
|
228
|
+
outline-offset: 2px;
|
|
229
|
+
}
|
|
230
|
+
&:where(:is(h1, h2, h3) a) {
|
|
231
|
+
color: var(--tw-prose-headings);
|
|
232
|
+
font-weight: inherit;
|
|
233
|
+
text-decoration: none;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
/* // Inline code element */
|
|
237
|
+
&:where(code:not(pre code)) {
|
|
238
|
+
font-weight: 600;
|
|
239
|
+
border-radius: 4px;
|
|
240
|
+
padding: 1px 2px;
|
|
241
|
+
margin: -1px -2px;
|
|
242
|
+
background: var(--color-bg-tertiary);
|
|
243
|
+
box-shadow: 0 0 0 1px var(--color-border-secondary);
|
|
244
|
+
|
|
245
|
+
&::before,
|
|
246
|
+
&::after {
|
|
247
|
+
content: "";
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
.prose.prose-centered-quote :not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
253
|
+
&:where(blockquote) {
|
|
254
|
+
padding-inline-start: 0px !important;
|
|
255
|
+
border-left: none;
|
|
256
|
+
text-align: center;
|
|
257
|
+
}
|
|
258
|
+
&:where(figure:has(> blockquote)) {
|
|
259
|
+
border-left: none;
|
|
260
|
+
padding-inline-start: 0px !important;
|
|
261
|
+
padding-top: 0px !important;
|
|
262
|
+
padding-bottom: 0px !important;
|
|
263
|
+
text-align: center;
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
.prose.prose-minimal-quote :not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
268
|
+
&:where(blockquote) {
|
|
269
|
+
border-left: none;
|
|
270
|
+
padding-inline-start: 0px !important;
|
|
271
|
+
}
|
|
272
|
+
&:where(figure:has(> blockquote)) {
|
|
273
|
+
border-left: none;
|
|
274
|
+
padding-inline-start: 0px !important;
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
.prose.md\:prose-lg:not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
279
|
+
@media (width >= 48rem /* 768px */) {
|
|
280
|
+
/* // Base */
|
|
281
|
+
font-size: var(--text-lg);
|
|
282
|
+
line-height: var(--leading-lg);
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
.prose.md\:prose-lg :not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
287
|
+
@media (width >= 48rem /* 768px */) {
|
|
288
|
+
/* // Text */
|
|
289
|
+
&:where(p) {
|
|
290
|
+
margin-top: calc(var(--spacing) * 4.5);
|
|
291
|
+
margin-bottom: calc(var(--spacing) * 4.5);
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
&:where([class~="lead"]) {
|
|
295
|
+
font-size: var(--text-xl);
|
|
296
|
+
line-height: var(--leading-xl);
|
|
297
|
+
margin-top: 1.09em;
|
|
298
|
+
margin-bottom: 1.09em;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
/* // Lists */
|
|
302
|
+
&:where(ol) {
|
|
303
|
+
margin-top: calc(var(--spacing) * 4.5);
|
|
304
|
+
margin-bottom: calc(var(--spacing) * 4.5);
|
|
305
|
+
padding-inline-start: 26px;
|
|
306
|
+
}
|
|
307
|
+
&:where(ul) {
|
|
308
|
+
margin-top: calc(var(--spacing) * 4.5);
|
|
309
|
+
margin-bottom: calc(var(--spacing) * 4.5);
|
|
310
|
+
padding-inline-start: 26px;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
&:where(ol > li) {
|
|
314
|
+
padding-inline-start: 1px;
|
|
315
|
+
margin-top: 0;
|
|
316
|
+
margin-bottom: 0;
|
|
317
|
+
}
|
|
318
|
+
&:where(ul > li) {
|
|
319
|
+
padding-inline-start: 1px;
|
|
320
|
+
margin-top: 0;
|
|
321
|
+
margin-bottom: 0;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
/* // Horizontal rules */
|
|
325
|
+
&:where(hr) {
|
|
326
|
+
margin-top: calc(var(--spacing) * 8);
|
|
327
|
+
margin-bottom: calc(var(--spacing) * 8);
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
/* // Quotes */
|
|
331
|
+
&:where(blockquote) {
|
|
332
|
+
padding-inline-start: 0;
|
|
333
|
+
margin-top: calc(var(--spacing) * 12);
|
|
334
|
+
margin-bottom: calc(var(--spacing) * 12);
|
|
335
|
+
}
|
|
336
|
+
&:where(blockquote p) {
|
|
337
|
+
margin: 0;
|
|
338
|
+
|
|
339
|
+
font-size: var(--text-display-xs);
|
|
340
|
+
line-height: var(--leading-display-xs);
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
/* // Headings */
|
|
344
|
+
&:where(h1) {
|
|
345
|
+
font-size: var(--text-display-md);
|
|
346
|
+
line-height: var(--leading-display-md);
|
|
347
|
+
margin-bottom: calc(var(--spacing) * 6);
|
|
348
|
+
margin-top: calc(var(--spacing) * 12);
|
|
349
|
+
}
|
|
350
|
+
&:where(h2) {
|
|
351
|
+
font-size: var(--text-display-sm);
|
|
352
|
+
line-height: var(--leading-display-sm);
|
|
353
|
+
margin-bottom: calc(var(--spacing) * 5);
|
|
354
|
+
margin-top: calc(var(--spacing) * 10);
|
|
355
|
+
}
|
|
356
|
+
&:where(h3) {
|
|
357
|
+
font-size: var(--text-display-xs);
|
|
358
|
+
line-height: var(--leading-display-xs);
|
|
359
|
+
margin-bottom: calc(var(--spacing) * 4);
|
|
360
|
+
margin-top: calc(var(--spacing) * 8);
|
|
361
|
+
}
|
|
362
|
+
&:where(h4) {
|
|
363
|
+
font-size: var(--text-xl);
|
|
364
|
+
line-height: var(--leading-xl);
|
|
365
|
+
margin-bottom: calc(var(--spacing) * 3);
|
|
366
|
+
margin-top: calc(var(--spacing) * 8);
|
|
367
|
+
}
|
|
368
|
+
&:where(h2 + *) {
|
|
369
|
+
margin-top: 0;
|
|
370
|
+
}
|
|
371
|
+
&:where(h3 + *) {
|
|
372
|
+
margin-top: 0;
|
|
373
|
+
}
|
|
374
|
+
&:where(h4 + *) {
|
|
375
|
+
margin-top: 0;
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
&:where(figure) {
|
|
379
|
+
margin-top: calc(var(--spacing) * 12);
|
|
380
|
+
margin-bottom: calc(var(--spacing) * 12);
|
|
381
|
+
}
|
|
382
|
+
&:where(figure > *) {
|
|
383
|
+
margin-top: 0;
|
|
384
|
+
margin-bottom: 0;
|
|
385
|
+
}
|
|
386
|
+
&:where(figure:has(> blockquote)) {
|
|
387
|
+
padding-inline-start: calc(var(--spacing) * 5);
|
|
388
|
+
}
|
|
389
|
+
&:where(figure > blockquote + figcaption) {
|
|
390
|
+
font-size: var(--text-md);
|
|
391
|
+
line-height: var(--leading-md);
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
&:where(figcaption) {
|
|
395
|
+
margin-top: calc(var(--spacing) * 4);
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
/* // Inline elements */
|
|
399
|
+
&:where(a:not(h1 a, h2 a, h3 a, h4 a, h5 a, h6 a)) {
|
|
400
|
+
font-weight: 400;
|
|
401
|
+
text-decoration: underline;
|
|
402
|
+
text-underline-offset: 3px;
|
|
403
|
+
}
|
|
404
|
+
&:where(:is(h1, h2, h3) a) {
|
|
405
|
+
color: var(--tw-prose-headings);
|
|
406
|
+
font-weight: inherit;
|
|
407
|
+
text-decoration: none;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
/* // Inline code element */
|
|
411
|
+
&:where(code:not(pre code)) {
|
|
412
|
+
font-weight: 600;
|
|
413
|
+
border-radius: 4px;
|
|
414
|
+
padding: 1px 2px;
|
|
415
|
+
margin: -1px -2px;
|
|
416
|
+
background: var(--color-bg-tertiary);
|
|
417
|
+
box-shadow: 0 0 0 1px var(--color-border-secondary);
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
/* // Remove top margin from first element */
|
|
423
|
+
.prose > :first-child:not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
424
|
+
margin-top: 0;
|
|
425
|
+
}
|
|
426
|
+
.prose > :last-child:not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
427
|
+
margin-bottom: 0;
|
|
428
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2017",
|
|
4
|
+
"lib": ["dom", "dom.iterable", "esnext"],
|
|
5
|
+
"allowJs": true,
|
|
6
|
+
"skipLibCheck": true,
|
|
7
|
+
"strict": true,
|
|
8
|
+
"noEmit": true,
|
|
9
|
+
"esModuleInterop": true,
|
|
10
|
+
"module": "esnext",
|
|
11
|
+
"moduleResolution": "bundler",
|
|
12
|
+
"resolveJsonModule": true,
|
|
13
|
+
"isolatedModules": true,
|
|
14
|
+
"jsx": "preserve",
|
|
15
|
+
"incremental": true,
|
|
16
|
+
"plugins": [
|
|
17
|
+
{
|
|
18
|
+
"name": "next"
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
"paths": {
|
|
22
|
+
"@/*": ["./src/*"]
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
|
|
26
|
+
"exclude": ["node_modules"]
|
|
27
|
+
}
|