Skip to content

Commit 2d215f0

Browse files
committed
docs: decrease header margin, lighten body font
1 parent a6113be commit 2d215f0

File tree

2 files changed

+21
-3
lines changed

2 files changed

+21
-3
lines changed

web/src/components/docs/mdx/mdx-components.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ const components = {
210210
),
211211
p: ({ className, ...props }: HTMLAttributes<HTMLParagraphElement>) => (
212212
<p
213-
className={cn('leading-7 mt-2 mb-3 text-muted-foreground', className)}
213+
className={cn('leading-7 mt-2 mb-3', className)}
214214
{...props}
215215
/>
216216
),

web/src/styles/globals.css

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,32 @@
99
@layer base {
1010
.prose-compact {
1111
& > * + * {
12-
margin-top: 0.75em;
12+
margin-top: 0.6em;
1313
margin-bottom: 0;
1414
}
15+
& h1 {
16+
margin-top: 1.0em;
17+
margin-bottom: 0.8em;
18+
}
1519
& h2 {
16-
margin-top: 1.5em;
20+
margin-top: 0.8em;
21+
margin-bottom: 0.8em;
22+
}
23+
& h3 {
24+
margin-top: 0.6em;
25+
margin-bottom: 0.6em;
26+
}
27+
& h4, & h5, & h6 {
28+
margin-top: 0.4em;
29+
margin-bottom: 0.4em;
1730
}
1831
}
1932

33+
/* Prose body text - lighter gray for better contrast in dark mode */
34+
.prose-invert {
35+
--tw-prose-invert-body: #b8b8bf;
36+
}
37+
2038
/* Feature section headers */
2139
h2.feature-heading {
2240
@apply text-4xl md:text-5xl lg:text-[56px] font-medium;

0 commit comments

Comments
 (0)