Skip to content

Improve Blog Post Page Typography, Spacing and Color to Match Professional Reading Standards#1805

Merged
sanjay-kv merged 2 commits into
mainfrom
copilot/improve-blog-post-typography
May 31, 2026
Merged

Improve Blog Post Page Typography, Spacing and Color to Match Professional Reading Standards#1805
sanjay-kv merged 2 commits into
mainfrom
copilot/improve-blog-post-typography

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 31, 2026

Description

Blog post pages had poor readability due to tight line-height, full-black text on white, unconstrained content width, and visually noisy rainbow tag pills. This PR aligns the blog post reading experience with professional technical blogs (reference: oneuptime.com/blog).

Type of Change

  • New feature (e.g., new page, component, or functionality)
  • Bug fix (non-breaking change that fixes an issue)
  • UI/UX improvement (design, layout, or styling updates)
  • Performance optimization (e.g., code splitting, caching)
  • Documentation update (README, contribution guidelines, etc.)
  • Other (please specify):

Changes Made

Typography & Color (src/css/custom.css)

  • Body: Inter font, 1rem (16px), line-height 1.75, color #334155
  • H1: 2.5rem / 700 / #0f172a
  • H2: 1.5rem / 600 / #1e293b / margin-top 2.5rem
  • Paragraphs: margin-bottom 1.5rem

Content Width

  • Article prose constrained to max-width: 720px centered

Callout Blocks

  • border-left: 4px solid #3b82f6, background: #eff6ff

Tag Pills (src/theme/BlogPostItem/Header/)

  • Unified neutral style: #f1f5f9 bg, #475569 text, border-radius: 9999px, 0.75rem
  • Removed TAG_COLORS array and tagColor() hash function

Font Loading (docusaurus.config.ts)

  • Added Inter via Google Fonts stylesheets config with display=swap

All changes include dark mode variants. Only blog post page is affected — navbar, footer, homepage, and blog listing pages are untouched.

Dependencies

  • Google Fonts Inter (loaded via stylesheet link, no npm dependency)

Checklist

  • My code follows the style guidelines of this project.
  • I have tested my changes across major browsers and devices
  • My changes do not generate new console warnings or errors .
  • I ran npm run build and attached screenshot(s) in this PR.
  • This is already assigned Issue to me, not an unassigned issue.

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented May 31, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
recode-website Ready Ready Preview, Comment May 31, 2026 12:34am

…ional standards

- Import Inter font from Google Fonts via stylesheets config
- Set blog post body font to Inter, 16px (1rem), line-height 1.75
- Change body text color from near-black to #334155 (slate gray)
- Constrain article prose max-width to 720px, centered
- Style H1: 2.5rem, font-weight 700, color #0f172a
- Style H2: 1.5rem, font-weight 600, color #1e293b, margin-top 2.5rem
- Set paragraph spacing to margin-bottom 1.5rem
- Style callout blocks with 4px solid #3b82f6 border, #eff6ff background
- Unify tag pills to neutral style: #f1f5f9 bg, #475569 color, 9999px radius
- Remove rainbow TAG_COLORS and tagColor function from blog post header
- Add dark mode support for all new styles
Copilot AI changed the title [WIP] Improve blog post page typography and spacing for better readability Improve Blog Post Page Typography, Spacing and Color to Match Professional Reading Standards May 31, 2026
Copilot AI requested a review from sanjay-kv May 31, 2026 00:33
@sanjay-kv sanjay-kv marked this pull request as ready for review May 31, 2026 00:48
@sanjay-kv sanjay-kv merged commit 8034bb7 into main May 31, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve Blog Post Page Typography, Spacing and Color to Match Professional Reading Standards

2 participants