prev-cli 0.3.1 → 0.3.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prev-cli",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "Transform MDX directories into beautiful documentation websites",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -63,7 +63,7 @@ function RootLayout() {
63
63
  tree={pageTree}
64
64
  nav={{ enabled: false }}
65
65
  >
66
- <article className="prose max-w-none">
66
+ <article className="prev-content">
67
67
  <Outlet />
68
68
  </article>
69
69
  </DocsLayout>
@@ -76,20 +76,217 @@
76
76
  animation: fade-in 0.2s ease-out;
77
77
  }
78
78
 
79
- /* Typography improvements */
80
- .prose {
81
- --tw-prose-body: var(--fd-foreground);
82
- --tw-prose-headings: var(--fd-foreground);
83
- --tw-prose-links: var(--fd-primary);
84
- --tw-prose-code: var(--fd-foreground);
85
- --tw-prose-pre-bg: var(--fd-muted);
79
+ /* ===========================================
80
+ Content Typography & Spacing
81
+ Using .prev-content for high specificity
82
+ =========================================== */
83
+
84
+ /* Content area base */
85
+ .prev-content {
86
+ max-width: 72ch;
87
+ line-height: 1.75;
88
+ color: var(--fd-foreground);
89
+ font-size: 1rem;
90
+ }
91
+
92
+ /* Heading styles with better spacing */
93
+ .prev-content h1 {
94
+ font-size: 2.25rem;
95
+ font-weight: 700;
96
+ margin-top: 0;
97
+ margin-bottom: 1.5rem;
98
+ line-height: 1.2;
99
+ letter-spacing: -0.025em;
100
+ color: var(--fd-foreground);
101
+ }
102
+
103
+ .prev-content h2 {
104
+ font-size: 1.5rem;
105
+ font-weight: 600;
106
+ margin-top: 3rem;
107
+ margin-bottom: 1.25rem;
108
+ padding-bottom: 0.625rem;
109
+ border-bottom: 1px solid var(--fd-border);
110
+ line-height: 1.3;
111
+ color: var(--fd-foreground);
112
+ }
113
+
114
+ .prev-content h3 {
115
+ font-size: 1.25rem;
116
+ font-weight: 600;
117
+ margin-top: 2.25rem;
118
+ margin-bottom: 0.875rem;
119
+ line-height: 1.4;
120
+ color: var(--fd-foreground);
121
+ }
122
+
123
+ .prev-content h4 {
124
+ font-size: 1.125rem;
125
+ font-weight: 600;
126
+ margin-top: 1.75rem;
127
+ margin-bottom: 0.625rem;
128
+ color: var(--fd-foreground);
129
+ }
130
+
131
+ /* Paragraph spacing */
132
+ .prev-content p {
133
+ margin-top: 0;
134
+ margin-bottom: 1.5rem;
135
+ }
136
+
137
+ /* List styling */
138
+ .prev-content ul,
139
+ .prev-content ol {
140
+ margin-top: 1.25rem;
141
+ margin-bottom: 1.75rem;
142
+ padding-left: 1.75rem;
143
+ }
144
+
145
+ .prev-content li {
146
+ margin-top: 0.625rem;
147
+ margin-bottom: 0.625rem;
148
+ padding-left: 0.5rem;
149
+ }
150
+
151
+ .prev-content li::marker {
152
+ color: var(--fd-muted-foreground);
153
+ }
154
+
155
+ .prev-content ol {
156
+ list-style-type: decimal;
157
+ }
158
+
159
+ .prev-content ul {
160
+ list-style-type: disc;
161
+ }
162
+
163
+ /* Nested lists */
164
+ .prev-content li > ul,
165
+ .prev-content li > ol {
166
+ margin-top: 0.625rem;
167
+ margin-bottom: 0.625rem;
168
+ }
169
+
170
+ /* Blockquote styling - callout style */
171
+ .prev-content blockquote {
172
+ margin: 1.75rem 0;
173
+ padding: 1rem 1.5rem;
174
+ border-left: 4px solid var(--fd-primary);
175
+ background: var(--fd-muted);
176
+ border-radius: 0 0.5rem 0.5rem 0;
177
+ font-style: normal;
178
+ }
179
+
180
+ .prev-content blockquote p {
181
+ margin: 0;
182
+ }
183
+
184
+ .prev-content blockquote p:not(:last-child) {
185
+ margin-bottom: 0.875rem;
86
186
  }
87
187
 
88
188
  /* Code block styling */
89
- pre code {
189
+ .prev-content pre {
190
+ margin: 1.75rem 0;
191
+ padding: 1.25rem 1.5rem;
192
+ background: var(--fd-muted);
193
+ border-radius: 0.5rem;
194
+ overflow-x: auto;
195
+ border: 1px solid var(--fd-border);
196
+ }
197
+
198
+ .prev-content pre code {
90
199
  font-family: var(--fd-font-mono);
91
200
  font-size: 0.875rem;
92
201
  line-height: 1.7;
202
+ background: transparent;
203
+ padding: 0;
204
+ color: var(--fd-foreground);
205
+ }
206
+
207
+ /* Inline code styling */
208
+ .prev-content code:not(pre code) {
209
+ font-family: var(--fd-font-mono);
210
+ font-size: 0.875em;
211
+ padding: 0.2em 0.45em;
212
+ background: var(--fd-muted);
213
+ border-radius: 0.3rem;
214
+ font-weight: 500;
215
+ color: var(--fd-foreground);
216
+ }
217
+
218
+ /* Table styling */
219
+ .prev-content table {
220
+ width: 100%;
221
+ margin: 1.75rem 0;
222
+ border-collapse: collapse;
223
+ font-size: 0.925rem;
224
+ }
225
+
226
+ .prev-content thead {
227
+ border-bottom: 2px solid var(--fd-border);
228
+ }
229
+
230
+ .prev-content th {
231
+ padding: 0.875rem 1rem;
232
+ text-align: left;
233
+ font-weight: 600;
234
+ background: var(--fd-muted);
235
+ }
236
+
237
+ .prev-content th:first-child {
238
+ border-radius: 0.375rem 0 0 0;
239
+ }
240
+
241
+ .prev-content th:last-child {
242
+ border-radius: 0 0.375rem 0 0;
243
+ }
244
+
245
+ .prev-content td {
246
+ padding: 0.875rem 1rem;
247
+ border-bottom: 1px solid var(--fd-border);
248
+ }
249
+
250
+ .prev-content tbody tr:hover {
251
+ background: var(--fd-muted);
252
+ }
253
+
254
+ /* Horizontal rule */
255
+ .prev-content hr {
256
+ margin: 3rem 0;
257
+ border: none;
258
+ border-top: 1px solid var(--fd-border);
259
+ }
260
+
261
+ /* Link styling */
262
+ .prev-content a {
263
+ color: var(--fd-primary);
264
+ text-decoration: underline;
265
+ text-decoration-color: var(--fd-border);
266
+ text-underline-offset: 3px;
267
+ transition: all 0.15s ease;
268
+ }
269
+
270
+ .prev-content a:hover {
271
+ text-decoration-color: var(--fd-primary);
272
+ }
273
+
274
+ /* Strong and emphasis */
275
+ .prev-content strong {
276
+ font-weight: 600;
277
+ color: var(--fd-foreground);
278
+ }
279
+
280
+ .prev-content em {
281
+ font-style: italic;
282
+ }
283
+
284
+ /* First paragraph after heading - no top margin */
285
+ .prev-content h1 + p,
286
+ .prev-content h2 + p,
287
+ .prev-content h3 + p,
288
+ .prev-content h4 + p {
289
+ margin-top: 0;
93
290
  }
94
291
 
95
292
  /* Sidebar active item highlight */