Skip to content

Commit 3a3d9fc

Browse files
committed
chore: improve typography
1 parent 464c1b7 commit 3a3d9fc

File tree

1 file changed

+18
-10
lines changed

1 file changed

+18
-10
lines changed

src/app/index.css

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -201,35 +201,35 @@
201201

202202
.markdown {
203203
h1 {
204-
@apply font-bold text-2xl;
204+
@apply font-bold text-2xl mt-6 mb-4 first:mt-0;
205205
}
206206

207207
h2 {
208-
@apply font-bold text-xl;
208+
@apply font-bold text-xl mt-5 mb-3 first:mt-0;
209209
}
210210

211211
h3 {
212-
@apply font-bold text-lg;
212+
@apply font-bold text-lg mt-4 mb-2 first:mt-0;
213213
}
214214

215215
h4 {
216-
@apply font-bold text-base;
216+
@apply font-bold text-base mt-3 mb-2 first:mt-0;
217217
}
218218

219219
h5 {
220-
@apply font-bold text-base;
220+
@apply font-bold text-sm mt-3 mb-1 first:mt-0;
221221
}
222222

223223
h6 {
224-
@apply font-bold text-base;
224+
@apply font-bold text-sm mt-3 mb-1 first:mt-0;
225225
}
226226

227227
hr {
228228
@apply my-4 border-t border-neutral-8;
229229
}
230230

231231
p {
232-
@apply mb-2;
232+
@apply mb-3 leading-relaxed;
233233
}
234234

235235
strong {
@@ -255,15 +255,23 @@
255255
}
256256

257257
pre {
258-
@apply overflow-auto text-sm font-mono rounded p-2 my-2 bg-neutral-12 text-neutral-2 dark:bg-neutral-12 dark:text-neutral-2 dark:border dark:border-neutral-10;
258+
@apply overflow-auto text-sm font-mono rounded p-2 my-2 bg-neutral-3 text-neutral-12 dark:bg-neutral-3 dark:text-neutral-11 dark:border dark:border-neutral-6;
259259
}
260260

261261
ul {
262-
@apply list-disc py-2 pl-5;
262+
@apply list-disc mb-3 pl-6;
263+
}
264+
265+
ul li {
266+
@apply mb-1;
263267
}
264268

265269
ol {
266-
@apply list-decimal py-2 pl-5;
270+
@apply list-decimal mb-3 pl-6;
271+
}
272+
273+
ol li {
274+
@apply mb-1;
267275
}
268276

269277
&,

0 commit comments

Comments
 (0)