Skip to content

Typography and Layout Enhancements for Documentation #1250

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

AH-Avalanche
Copy link
Collaborator

Summary of Changes

This PR introduces several improvements to the documentation site's typography and layout system:

1. Typography System Integration

  • Added Tailwind Typography plugin with custom theme configuration

  • Integrated with existing shadcn color system

  • Removed custom code block styling for better consistency

  • Applied consistent typography classes across DocItem and MDXPage components

2. Responsive Layout System

  • Implemented a breakout layout system for better content presentation

  • Created responsive grid with:

  • Default content width: 680px

  • Breakout width: 1024px

  • Enhanced visibility for complex elements:

  • Images

  • Tables

  • MUI DataGrid components

  • Elements now break out of default content width on larger screens

3. Theme-Aware Tooltips

  • Updated MDX tooltips to respect theme colors

  • Added automatic light/dark theme switching

  • Matched tooltip styling with shadcn design system

  • Improved accessibility with better contrast

4. Visual Hierarchy Improvements

  • Added prose and prose-lg classes for better typography

  • Implemented max-w-none for flexible content width

  • Added leading-relaxed for improved readability

  • Maintained consistent spacing and alignment

Testing Notes

  • Verify typography styles in both light and dark themes

  • Check responsive behavior of images and tables

  • Test tooltip appearance and behavior

  • Ensure proper content width on different screen sizes

Screenshots

Screenshot 2025-05-16 at 3 13 31 PM Screenshot 2025-05-16 at 3 14 26 PM Screenshot 2025-05-16 at 3 14 52 PM Screenshot 2025-05-16 at 3 16 11 PM

Copy link

netlify bot commented May 16, 2025

Deploy Preview for snowplow-docs ready!

Name Link
🔨 Latest commit ae5cedf
🔍 Latest deploy log https://app.netlify.com/projects/snowplow-docs/deploys/6839919214b9ff0008e3b3c4
😎 Deploy Preview https://deploy-preview-1250--snowplow-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@mscwilson
Copy link
Collaborator

Copy link
Collaborator

@mscwilson mscwilson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the new text colour. In principle I like the idea of the text size being bigger than before, but I think this is too big

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants