Improve typography system and typographic details#25
Merged
Conversation
Apply best practices from web typography guidelines: - Enable font kerning, ligatures, and antialiased rendering on body - Define Major Third (1.25) modular type scale as CSS custom properties - Add vertical rhythm unit (--rhythm) and prose measure (--measure: 66ch) - Constrain About summary to 66ch max-width for optimal readability - Add hanging-punctuation on paragraphs (progressive enhancement) - Use lining-nums on headings, lining-nums + tabular-nums on data - Replace hyphens with en-dashes in date ranges and separators - Enhance print styles with widows/orphans and page-break-after https://claude.ai/code/session_01UH4SYBfyZFWF6XEAz3AmRf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR enhances the typography system and improves typographic consistency across the site by introducing a modular scale, vertical rhythm system, and applying professional typographic best practices.
Key Changes
Typography System Foundation
--text-xsthrough--text-3xl)--base-lh(1.5) and--rhythm(1.5rem) for consistent spacing--measure(66ch) for optimal prose line length readabilityText Rendering & Kerning
line-heightto use CSS variable (--base-lh) instead of hardcoded valuefont-kerning: auto)font-variant-ligatures: common-ligatures)-webkit-font-smoothing: antialiasedand-moz-osx-font-smoothing: grayscaletext-rendering: optimizeLegibilityfor better text renderingHeading & Paragraph Improvements
font-variant-numeric: lining-numsto headings for consistent number stylinghanging-punctuation: first allow-endto paragraphs for improved typographytext-wrap: balancefor headings andtext-wrap: prettyfor paragraphsNumeric Formatting
.tabular-numsclass to uselining-nums tabular-numsfor better alignment with heading stylesPrint Styles
line-height: 1.4to print body for better print readabilitywidows: 3; orphans: 3) to paragraphspage-break-after: avoidto article/section/heading elementsContent & Component Updates
max-width: var(--measure)to About summary for improved readability–entityNotable Details
lining-nums tabular-numscombinationhttps://claude.ai/code/session_01UH4SYBfyZFWF6XEAz3AmRf