[DX-1527] Typography and spacing enhancements#3469
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
a515daa to
f1f99af
Compare
f1f99af to
1857315
Compare
Align heading sizes (h1 32, h2 24, h3 20, h4 18, h5 16px), grid-aligned line-heights and graded letter-spacing with the new docs type scale. Set monospace text to medium weight, add a serif ui-text-sub-head style (adopted by the page header intro), and restyle the inline code chip. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Replace the symmetric heading and paragraph margins with an asymmetric rhythm: a larger top margin separates a heading from the preceding content and a smaller bottom margin sets the gap to the following text. Move body copy from p2 to p1 and give code blocks and images 24px of vertical spacing. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Use 24px vertical spacing for tables and admonitions and set table body text to 15px (p2). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Callout body paragraphs were rendering at p1 (16px) because the MDX paragraph mapping overrode the container's intended size. Force body paragraphs to p3 (14px) in both note and USP callouts, keep the USP headline at p1, and reduce the USP vertical padding. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
A paragraph immediately followed by a heading now sets its bottom margin to zero, so the gap is exactly the heading's own top margin instead of the paragraph margin stacking on top of it. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1857315 to
ccf848a
Compare
Review: Typography and spacing enhancements87 files, +1,389/−1,294, in two distinct kinds of change:
Verdict: The PR meets its objective and the design-system values are internally consistent. All 1. Value consistency — 👍 good
2. Things missed (the "bring the rest of the site into alignment" gap)A.
B. Example README left on a third indentation style:
Not misses (checked and deliberately different): 6 pages have bullet-list + col-0 3. One internal contradiction to reconcileIn
…but this same PR moves those fences to 4 spaces (verified: 4 leading spaces in the shipped files). Per the comment's own "3 needed to nest" logic, 4-space fences would now nest and the list would not split — which would make the RecommendationSolid PR — the design-system work looks good. Before merge, suggest the author:
🤖 Reviewed by Claude Opus 4.8 via Claude Code |
umair-ably
left a comment
There was a problem hiding this comment.
Latest commit diffs LGTM
Render code fences nested in example list items with indentation, terminal styling (PlainCodeView), and continuous ordered-list numbering. Reindent the example READMEs so fences nest inside their list item. Normalise paragraph spacing inside list items to the 8px list-item rhythm so loose lists (items with code) match tight lists. Excludes the code-styled-headings CSS, which is kept as a separate change. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Re-indent <Code> blocks that belong to a list step so they nest inside the list item, rendering indented and keeping continuous numbering (matching the examples pages). Standalone code under headings is untouched. Pure indentation change. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Use ui-text-h1 for the example title (32px, matching docs pages) and the serif ui-text-sub-head style for the description, replacing the larger ui-text-title and the sans ui-text-sub-header. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Set the label to semibold, switch the disclosure chevron to the solid heroicon at 12px to match the left-rail chevrons, and let the expanded "Show less" pill sit in its own band (no negative margin) so the code content no longer overlaps and clips the pill's top edge. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The outline and solid AI Transport glyphs were drawn ~87% scale within a 24x24 viewBox, so the mark rendered smaller and thinner than the other product icons. Re-export both in a 20x20 viewBox so the artwork fills the canvas and the stroke weight matches its neighbours. The outline uses currentColor so it adapts to light/dark and active states. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
e4596a9 to
004637a
Compare
Description
This PR implements some new rules for typography and spacing throughout the docs site. Spacing between components, headings and paragraphs should be consistent now that we are no longer inheriting styles from the marketing site.
Overall:
Checklist