Repository navigation
feat(ui): release 7.2.0 with display styles and Heading on the type scale - #257
Draft
matthewmr-eqty wants to merge 27 commits into
Draft
matthewmr-eqty wants to merge 27 commits into
matthewmr-eqty wants to merge 27 commits into
Conversation
… pages Need: docs and marketing pages need titles larger than a product page's, on the same scale. Problem: the largest style was title-1, so those pages reached for Tailwind sizes whose lines sit off the size steps. Solution: two display styles sit on the large steps, and cn keeps them beside a text colour. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Need: a long-form page's headings should share the grid that product UI and the page around them sit on. Problem: Heading drew Tailwind sizes, bold at h1, and its h1 and h2 lines sat off the size steps. Solution: h1 is display, h2 title-1, h3 title-2 and h4 to h6 section, all semibold. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Need: apps should merge classes with Equality's cn in tests and scripts that don't load CSS. Problem: cn came only from the main entry, which imports Equality's CSS modules, so plain Node, Vitest without inlining and Playwright specs failed to load it. Solution: a cn subpath bundles only clsx and tailwind-merge; the main entry still exports cn. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Need: people and agents building docs pages, long-form writing or tests should find the right style and import. Problem: the docs and skill listed five styles, gave Heading no sizes and pointed cn at the entry that loads CSS. Solution: Typography adds a display section for docs and marketing pages, Heading shows each level's style, and both docs and skill import cn from @eqtylab/equality/cn. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…d a cn subpath Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Need: people scanning the colour tokens should read the name first and the hex as its detail. Problem: Heading h5 and h6 now share one style, so the hex drew as large and bold as the name. Solution: the hex is secondary body text under the name. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Need: CommonJS apps that require the cn subpath should get types that match what they load. Problem: the export listed one types file for both import and require, so require got the ESM declarations. Solution: import and require each name their own types and file. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Need: people and agents using Heading inside an app should not end up with a display-size title. Problem: Heading's h1 is display, which the docs also say never goes in app screens, and nothing said where to start. Solution: Heading starts at h1 on docs and marketing pages and at h2 in an app; Sizing names the docs title and landing hero on the large steps. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Need: dialogs and sheets in dense product apps should be titled at the size those apps use, not a step larger. Problem: their titles were 20 on 28, which read too big in Studio's dialogs and sheets. Solution: Dialog, Sheet and AlertDialog titles use the section style; the close button stays centred on the title's line and the description 4 under it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Need: people and agents titling dialogs, sheets and tab panels should reach for the style Equality now uses there. Problem: the docs and skill sent dialog, sheet and tab panel titles to title-2, which now heads long-form writing only. Solution: section covers dialog, sheet, card and section titles; title-2 is Heading's h3; the dialog guide points tab panels at the card recipe and the demos show the real header. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
matthewmr-eqty
marked this pull request as draft
November 27, 2026 15:33
…site Need: a page written with Heading should match the docs site's prose and the product's titles. Problem: Heading's h1 was display and its h2 title-1, a step larger than the docs site's own headings and the product's panels and dialogs. Solution: h1 is title-1, h2 title-2 and h3 to h6 section, all semibold; display is left for pages that choose it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Need: people picking a display style should read its rank the way they read the titles. Problem: display-lg and display didn't follow title-1 and title-2, where 1 is the larger. Solution: the 48 style is display-1 and the 36 style display-2, everywhere; 7.2.0 isn't published, so no aliases. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Need: people titling a regular docs page should use the same title as Heading's h1. Problem: the docs and skill offered display-2 for any docs page's title, which Heading's h1 now covers at title-1. Solution: display-2 is for a docs home or marketing section title, chosen on purpose; a regular docs page's title is Heading's h1. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Need: agents in other repos install the skill separately from the package, so they may run it against an older Equality. Problem: the skill sent every app to @eqtylab/equality/cn, which only exists from 7.2.0. Solution: the skill names 7.2.0 for the subpath, the main entry for 7.1.0, and no cn before that. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Need: apps whose TypeScript still uses moduleResolution "node" should get cn's types from the subpath. Problem: that mode ignores package exports, so the subpath resolved to no types. Solution: a typesVersions entry points it at the subpath's declarations; node16 and bundler resolve as before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…and tab order Need: keyboard and screen-reader users reading the Typography page should meet only its own headings and working controls. Problem: the dialog demo rendered a real DialogTitle h2 twice and a Close button that did nothing. Solution: the demo's title is a p and its header is inert, so it reads as a picture of a dialog header. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Need: readers should see display-2 on the kind of page it's for. Problem: the demo labelled it a docs home title but showed "Typography", a regular docs page that Heading's h1 titles. Solution: the demo shows "Components", a docs home's title. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Need: display-2 should follow the scale when its steps change, as title-1 does. Problem: its 36 read Tailwind's text size rather than the md step it sits beside. Solution: display-2's size reads the md step; display-1's 48 has no step and stays as it was. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Author
|
holding this as a draft while we audit the docs site against the scale, may add a long-form body style. will ping when it's ready |
Need: docs, help pages and articles need a reading size on the scale, larger than product text. Problem: the only running-text style was body at 14, sized for dense product screens. Solution: text-prose is 16 on 24, and cn keeps it beside a text colour; product screens keep body. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Need: code in docs and product screens should sit on the same lines as the text around it. Problem: code lines were 1.5 times their 12, 18 tall, between the scale's steps. Solution: code is 12 on a 20 line, the body line. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Need: nav lists should look the same in an app and on a docs page. Problem: items set only their font size and took their line height from the page around them. Solution: items use the body style, 14 on 20. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Need: people and agents setting reading text, or proposing a new style, should know the reading size and how styles are named. Problem: the docs and skill had no reading style and no rule behind names such as title-1 and display-2. Solution: Typography and the skill list prose for docs, help and articles, keep body for product screens, and name styles for their role, numbered only when a role has two sizes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…rm content Need: people and agents titling a docs page, or writing long-form content inside one, should pick the style the docs site uses. Problem: the docs and skill said a regular docs page's title was Heading's h1 at title-1, and kept display-2 for a docs home. Solution: a docs page's title is display-2, set by the docs site; Heading's h1 titles long-form content inside a page. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Need: nav lists should look the same in an app and on a docs page. Problem: group labels set only their size and took their line height from the page, as items did, and the changelog said the reading text could make items taller. Solution: group labels sit on caption's 16 line, and the changelog says only the label's line changed for items. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Need: agents and people writing long-form content should end up with one h1 per page. Problem: the docs said Heading's h1 titles long-form content inside a page, without saying that docs and app pages already have their title on an h1. Solution: on a page with its own title, Heading starts at h2; on a standalone article or marketing page, its h1 is the page's title. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Need: readers checking where reading text sits should find prose beside the other styles. Problem: Sizing's 24 step, the line-up demo and the weight note listed every style but prose. Solution: prose joins section on the 24 step, gets its own shaded line, and takes the weight of the text around it like body and caption. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
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.
See Heading, the display styles and dialog titles before and after, at true size
Need
Docs and marketing pages need titles larger than a product page's, docs and help text need a style made for reading, long-form headings should line up with the product, and a dialog's title should read as part of the task. Apps also need to import
cnin tests that run without a browser.Problem
Headingused Tailwind's sizes, so its h1 and h2 sat on 40 and 32 lines, off the size steps, and didn't match the docs site's own 20 and 16 headings. There was no style abovetext-title-1and none for reading text, so the docs site set 36/40 titles and 16/28 paragraphs by hand. 7.1.0's 20 dialog and sheet titles looked oversized in Studio. Importingcnfrom@eqtylab/equalityalso loads Equality's CSS, which Vitest and Playwright can't load.Change
text-display-148/52 andtext-display-236/44, named like the titles (1 is the larger): display-2 for a docs page's title or a marketing section, display-1 for a landing hero. Never in app screens, and noHeadinglevel applies them.text-prose16/24 for reading text in docs, help and articles, Carbon's long-form body; product screens keeptext-body. Text styles are named for their role, numbered only when a role has two sizes.Headingtakes the scale: h1 title-1 (28/36), h2 title-2 (20/28), h3 to h6 section (16/24), all semibold, matching the docs site's headings and the product's page, panel and card titles. On a docs page it starts at h1; inside an app, at h2.text-section, 16/24. The close button stays on the title's line and the description 4 below.text-title-2is nowHeading's h2.@eqtylab/equality/cnimportscnwith no CSS behind it; the main export stays.Evidence
@eqtylab/equality/cnin plain Node, ESM and CJS, with the right types for each.pnpm build,pnpm test(ui 465, docs 218 + 8), lint and format pass.Not covered
With a description, a dialog's close button pins to the header's top, so a header icon taller than 48 would centre the text below it. The docs site's own pages move onto the scale in docs 0.21.0, which needs this release.
🤖 Generated with Claude Code