Skip to content

Commit 356bdba

Browse files
sametbasbugclaude
andcommitted
Give weight, tracking and leading the same treatment
Sizes were the loudest problem, but the other three type axes had the same shape: twelve font weights, nineteen letter-spacings, fifteen line-heights, none of them chosen against each other. Weight lands on five steps, and the small number is the point. The project ships no font files at all -- --sans resolves to Inter only if the visitor happens to have it installed, otherwise to whatever the system provides. Inter and SF interpolate arbitrary weights; Segoe UI does not, so on Windows 750/800/850 already collapse into one rendering. A finer scale would have existed only on our own machines. Tracking splits into the two jobs it was actually doing: opening up small uppercase labels, tightening large headings. Leading keeps a step at 1.68 specifically so the record body's reading rhythm survives -- that value was chosen deliberately during the editorial-layout pass and rounding it away would have undone that. Ties round up for weight. Rounding 700 down was the first thing I tried, and it quietly lightened fourteen declarations that exist to add emphasis. Rendered drift is at most 1.47px, and that worst case is the line box of a single-line 73px heading. Left off the scale: the monogram watermark's -0.1em, and the two line-height: 0 rules that collapse icon boxes. Neither is typography. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
1 parent 4cab7c2 commit 356bdba

6 files changed

Lines changed: 209 additions & 179 deletions

File tree

‎src/styles/base.css‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ main {
7575
margin: 0 0 0.65rem;
7676
color: var(--muted);
7777
font-size: var(--text-2xs);
78-
font-weight: 700;
79-
letter-spacing: 0.09em;
78+
font-weight: var(--weight-bold);
79+
letter-spacing: var(--tracking-wide);
8080
text-transform: uppercase;
8181
}
8282

@@ -85,7 +85,7 @@ main {
8585
margin-top: 1rem;
8686
color: var(--link);
8787
font-size: var(--text-sm);
88-
font-weight: 600;
88+
font-weight: var(--weight-semibold);
8989
text-underline-offset: 0.2rem;
9090
}
9191

@@ -97,7 +97,7 @@ main {
9797
padding: 0 1rem;
9898
border: 1px solid var(--ink);
9999
font-size: var(--text-sm);
100-
font-weight: 700;
100+
font-weight: var(--weight-bold);
101101
text-decoration: none;
102102
}
103103

@@ -138,7 +138,7 @@ main {
138138
color: #fff;
139139
background: #27345f;
140140
font-size: var(--text-sm);
141-
font-weight: 800;
141+
font-weight: var(--weight-extrabold);
142142
text-decoration: none;
143143
transform: translateY(-180%);
144144
transition: transform 150ms ease;

0 commit comments

Comments
 (0)