Skip to content

Commit be73e70

Browse files
committed
fix(homepage): align hero width to content token, soften h1 code weight
Hero used a hardcoded max-width: 72rem while the content section below used theme.layout.contentWidth (120ch), so the hero rendered slightly narrower than the section beneath it. Both now read from the same token. Inline code inside an h1 was inheriting font-weight 700 from the display heading, which renders heavy in Google Sans Code — especially the angle brackets in <Component>. Pin h1 code to semibold (600).
1 parent 13b76f2 commit be73e70

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

components/GlobalStyles.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,10 @@ const GlobalStyles = createGlobalStyle`
174174
padding: 0.15em 0.3em;
175175
}
176176
177+
h1 code {
178+
font-weight: ${theme.fontWeight.semibold};
179+
}
180+
177181
/* ── Lists ────────────────────────────────────────────────── */
178182
ul, ol {
179183
padding-left: 0;

components/HomepageHeroEditor.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ export const HeroContent = styled.div`
135135
box-sizing: border-box;
136136
font-family: ${font.sans};
137137
margin: 0 auto;
138-
max-width: 72rem;
138+
max-width: ${theme.layout.contentWidth};
139139
padding: ${theme.space[16]} ${theme.layout.gutterFluid} 0;
140140
width: 100%;
141141

0 commit comments

Comments
 (0)