Skip to content

feat(ui): release 7.1.0 with a five-step type scale - #256

Merged
matthewmr-eqty merged 28 commits into
mainfrom
release/equality-7.1.0-title
Nov 27, 2026
Merged

matthewmr-eqty merged 28 commits into
mainfrom
release/equality-7.1.0-title

Conversation

@matthewmr-eqty

@matthewmr-eqty matthewmr-eqty commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

See what changes, before and after at true size
Full guidance in the rewritten docs: Typography and Sizing (live on equality.eqtylab.io once this merges).

Need

Product pages need a page title that leads without shouting, and dialogs, sheets and tab panels need a title of their own between the page's and a card's, so every app sizes them the same way.

Problem

text-title was Tailwind's 30, which reads as a hero in an app. Dialog, Sheet and AlertDialog each set their own 18 title, off the text styles, and a dialog's close button sat level with the title and description together, 10 to 12 below the title.

Change

Five text styles on five consecutive size steps: text-title-1 28 on 36 for a page, the new text-title-2 20 on 28 for a dialog, sheet or tab panel, then section 16/24, body 14/20 and caption 12/16. The page title's line stays 36, so nothing around it moves. Dialog, Sheet and AlertDialog titles use text-title-2, their description sits 4 under the title in all three, and the close button centres on the title's line. RadialGraph's unfilled ticks follow the theme instead of a fixed near-black. Equality now exports cn, which knows the text styles and runs on tailwind-merge 3, so it merges Tailwind 4 classes correctly and apps stop registering the styles in their own helper. The Typography and Sizing pages are rewritten as one reference table each, with guides for a page header, a dialog title and a card header. text-title keeps working at 28 as a deprecated alias until 8.0. This matches Fluent 2 and IBM Carbon at every level, and Apple's Title 1 and Title 3.

The release also ships #244's keyboard-reachable Table rows (TableRowAction), merged to main without a version; its changelog entries move into 7.1.0 unchanged.

Evidence

  • Docs build at 1280: titles measure 28/36 and 20/28, each centred 0.0 on a 36 or 28 control beside it; Dialog, Sheet and AlertDialog titles 20/28, close buttons 0.0 off the title's centre in every header shape.
  • The consumer-build and cn tests cover title-1, title-2 and the alias, global and scoped.
  • pnpm build, pnpm test (ui 456, docs 218 + 8), lint and format pass on main with Reach, open and move between clickable Table rows from the keyboard and screen readers #244.
  • Matthew tried every title size live in Guardian Studio before choosing 28 on 36.

Not covered

With a description, a Dialog or Sheet header's icon centres on the title and description together, as a TitleBlock mark does.

🤖 Generated with Claude Code

@matthewmr-eqty
matthewmr-eqty marked this pull request as draft November 26, 2026 16:18
@matthewmr-eqty
matthewmr-eqty marked this pull request as ready for review November 26, 2026 18:25

@captjt captjt left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Changes are needed before 7.1.0 publishes: in light mode the new Progress track is about as light as every fill colour, so the bar no longer shows how far along it is. The other points are worth fixing in the same pass, starting with the newly exported cn, which runs on tailwind-merge 2 and mis-merges Tailwind v4 classes.

Blocking

  • In light mode every Progress fill is under 3:1 against the new bg-border track (the default primary is 1.24:1, yellow 1.06:1), so the bar no longer shows how far along it is; details in the inline comment on progress.module.css:4.

Non-blocking

  • The newly exported cn runs on tailwind-merge 2, so it keeps both of two conflicting (--var) heights and drops bg-linear-to-* beside a background colour, and the docs tell apps to adopt it in place of their own; details in the inline comment on index.ts:17.
  • The Typography page's Dialog snippet wraps the header in DialogContent, the body div, so copying it draws the header inline on the page with no dialog; details in the inline comment on typography.mdx:99.
  • The new Long Text rule tells people to truncate every page and dialog title, which cuts off a long title at high zoom or on a phone with no way to read the rest; details in the inline comment on typography.mdx:144.

Checked at the head: build, lint and format pass, the ui (428) and docs tests pass, and probes reproduce the light-mode Progress contrast, the cn mis-merges through the public export, and the Typography Dialog snippet rendering with no dialog.

Merge risk: medium

Alignment: good ✅

Impact: medium 👀

Verification: decent 👀

  • The description has no screenshots in it; the before-and-after evidence is a linked artifact that this review couldn't open, so only measurements in prose back the visual changes.
  • No evidence at phone width, where AlertDialog centres its header and a 20 title in a narrow Sheet is more likely to wrap:
  • No test covers the close button's top alignment, the 4 gap under Sheet and AlertDialog descriptions, or the 28 and 20 sizes themselves; the CSS test checks only that each style emits its variables:
    const roles = ['title-1', 'title-2', 'section', 'body', 'caption', 'title'];
  • A title that wraps with no description keeps the close button centred on both lines, and nothing tests or documents that:
    .sheet-header:has(> .sheet-header-text-content > :nth-child(2)) > .sheet-close {

Rollback cost: medium 👀

  • Merging the version bump publishes 7.1.0 to npm automatically, and a published version can't be withdrawn, so a revert has to ship as a new release:
    "version": "7.1.0",
  • Once text-title-1, text-title-2 and cn are published, apps adopt them, so taking them out later is a breaking change:
    export { cn } from './lib/utils';

Error detection: decent 👀


Claude Code (Opus 5.5) on behalf of @captjt · checked by Claude Code (Opus 5.5)

Comment thread packages/ui/src/index.ts Resolved
matthewmr-eqty and others added 22 commits November 26, 2026 16:28
…eets

Need: pages, dialogs, sheets and tab panels that each need a title in its own place in the hierarchy.
Problem: the page title at 30 read as a hero, and a dialog or sheet title had no style of its own, so it sat at 18 medium, off the scale.
Solution: text-title is 28 on its 36 line; text-title-2 is 20 semibold on a 28 line, Dialog and Sheet titles use it, and cn merges it as a font size.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Need: readers and agents choosing a title style, and apps upgrading to 7.1.0.
Problem: Typography, Sizing and the skill listed four styles with a 30 title, and the tailwind-merge snippet lacked title-2.
Solution: they list five styles and when to use each, Typography shows a title-2 demo, the snippets register title-2, the changelog records the change, and the package is 7.1.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…n the title

Need: dialogs, alert dialogs and sheets whose header reads as one line of title and close button.
Problem: AlertDialog's title stayed at 18, off the new scale, and a Dialog or Sheet with a description centred its close button on the title and description together, 10 to 12 below the title.
Solution: AlertDialog's title uses text-title-2, and the close button aligns to the top when a line sits under the title, so it centres on the title's 28 line; a lone title keeps both centred.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Need: apps choosing between the page title and the dialog title, which read as a pair.
Problem: text-title beside text-title-2 left the page title as the odd one out.
Solution: text-title-1 carries the page title, cn merges it, and text-title reads the same values as a deprecated alias until 8.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Need: readers and agents copying title styles from the docs and skill.
Problem: Typography, Sizing, their demos and the skill still taught text-title.
Solution: they use text-title-1, and the merge snippets keep title for apps that haven't moved yet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…t styles

Need: readers and agents placing titles and text on product pages, dialogs and cards.
Problem: the Typography page listed the styles but never said how to pick one, why they line up with controls, or how much room a heading's description takes.
Solution: the page opens with a table of the five styles, then explains choosing by the space the text heads, lining up with controls, and the space under each heading; the skill gains the spacing line.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Need: people scanning the Typography page and agents reading its Markdown, choosing a style for a page, dialog or card.
Problem: the page had no decision rule, no list of components that already set a style, no don'ts, and demos whose lessons weren't stated in text an agent could read.
Solution: a composite demo, a "use this when the text heads…" table, the components that are already styled, shaded line boxes beside their controls, a spacing three-up, a Do and Don't list, and Title 2 and Section examples built on DialogTitle and CardContentHeader.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…Sizing's style count

Need: readers and agents who come to Typography either to look a style up or to do one task, as they do on Sizing.
Problem: sections mixed reference, steps and reasoning, the decision table appeared twice, and Sizing and the docs home still said four styles with a Tailwind-size claim that title-1 breaks.
Solution: the page runs Overview, The Scale, When to Use Each Style, three task sections, a short explanation and Do and Don't; Sizing and the home page say five styles.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…mos on one scenario

Need: readers and agents who come to Typography to build a page header, title a dialog or head a card, and can tell a demo from the docs page around it.
Problem: the task sections were named after mechanics, the demos sat unframed so their 28 titles read as the page's own headings, labels and line boxes were faint, and each example used a different product.
Solution: four goal-shaped guides with steps, demo and code; every demo sits in a bordered preview; tags are readable captions; line boxes are tinted with solid edges and their height; one Projects scenario runs through the page.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Need: dialogs, sheets and alert dialogs whose headers follow the spacing the Typography page teaches.
Problem: a dialog's description sat 4 under its title, a sheet's 0 and an alert dialog's 8, so the three headers read differently.
Solution: SheetDescription and AlertDialog's description sit 4 under the title, the changelog says so, and the Typography guide states the 4.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Need: readers copying the page header, who need the title and buttons to stay level at any size.
Problem: the example aligned the buttons to the top of a column holding the title and description, so they lined up only while the title's line matched the buttons' height.
Solution: the title and buttons share one centred row, the description sits full width under it at gap-2, and on a narrow screen the buttons wrap under the title.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s as an app canvas

Need: readers copying the card example, and anyone judging how a card sits on a page.
Problem: the card hand-built its rows as a list with border lines, and on the white preview frame a raised card looked grey and sunk.
Solution: the card holds a CardContentHeader over an Equality Table (Project, Change, When), and every demo sits on the sunken canvas an app's cards rise from.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Need: readers copying the activity card, whose table should start and end where the header's icon and button do.
Problem: table rows pad 16 at the side and the card's content 12, so the table's text sat 4 inside the header's edges.
Solution: the example sets the table's rows to the card's 12 at the side, so its first column starts under the icon and its last ends under See All.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ity card on it

Need: apps that put a table inside a padded card, whose rows should line up with the card's header, and readers copying that card.
Problem: a row's side padding was a fixed 16 in unlayered CSS, so lining a table up with a card meant a !-forced class.
Solution: rows read --eq-table-row-padding-inline, 16 unless set; the activity card is a header over a headerless Table set to 0, one sentence and time per row, with its lines inset to the card's content.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Need: readers copying a card that lists people, the most common list in Equality's apps.
Problem: the card listed activity sentences, not the member rows Matthew meant, and the page's other examples told the activity story.
Solution: the card is Members, each row a TitleBlock with an initials Avatar (name over email) and the role at the right, 52 tall; the composite, guides and line-box demo follow the same members story.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Need: readers copying a card that lists people, which is a list, not tabular data.
Problem: the Members card was built as a headerless Table, and the row padding variable existed only to make that work.
Solution: the card's body is a ul of TitleBlock rows, 52 tall, with lines drawn inside each row and flush with the header; the variable, its test, changelog line and Table page paragraph are gone, so table rows pad 16 at the sides as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Need: readers who come to the card example to see the section style, not a list pattern.
Problem: the Members list taught list and avatar layout on a page about type, which pulled attention from the card's title.
Solution: the card is its header over one body sentence and one caption note, the same in the composite and the guide, and the guide's list step is gone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…tion and Manage button

Need: readers of the typography guide need a card header that has a description and a button, the case the shipped headers do not cover.
Problem: the example used Card Content Header, which has no description, and the guide repeated the same header twice.
Solution: the composite and the card guide show a built Storage header with the button centred on the title, a separator and a usage bar; the duplicate section example is gone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Need: a Progress on a light page should show how much is left without a heavy black bar.
Problem: the track was a fixed dark grey, near-black in light mode.
Solution: the track follows the theme's border colour; dark mode is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Need: a RadialGraph on a light page should show what is left without near-black ticks.
Problem: the unfilled ticks faded from a fixed dark grey, near-black in light mode.
Solution: they fade from the theme's border colour, as Progress's track does; dark mode is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Need: people and agents picking a text style should find each rule once, stated plainly.
Problem: the scale table, a decision table and five per-style sections all said what each style is for, and the guides repeated it in longer steps.
Solution: one scale table carries each style's use and the components that already apply it; the guides are cut to the steps and code that matter.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Need: Apps combine Equality's text styles with colours and other classes in their own helper.
Problem: A cn built on plain tailwind-merge reads a text style as a colour and drops it, so every app had to register each style by hand.
Solution: Equality exports the cn its components use, which already knows the styles.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
matthewmr-eqty and others added 6 commits November 26, 2026 16:29
Need: People and agents pick a text style or size from these pages and build with it.
Problem: Both pages repeated themselves, hid setup and missing details, and framed demos inside a second surface.
Solution: One scale table per page with names and what applies each style, guides with exact sizes, short sections on typeface, colour, long text, numbers and accessibility, and demos set on the page.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Need: apps now import cn from Equality, and their Tailwind 4 overrides must win.
Problem: tailwind-merge 2 predates Tailwind 4, so cn kept a fixed size beside a variable one and two trailing-! classes side by side.
Solution: cn runs on tailwind-merge 3 with the same text-style config, and tests cover both cases.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Need: people read a Progress only by where its fill ends, so the fill must stand out from the track.
Problem: on the theme's border colour the fills fell below WCAG's 3:1, primary to 1.24:1.
Solution: the track stays dark grey in light mode; RadialGraph keeps the theme colour because it prints its value.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Need: people copying the Typography examples should get markup that works and reflows.
Problem: the page told titles to truncate, which hides text at narrow widths, and the Dialog example used DialogContent where the header belongs in DialogContainer.
Solution: titles wrap, with truncate only for tight rows that show the full text another way; the example uses DialogContainer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Need: teams waiting on keyboard-reachable table rows should see them in the 7.1.0 notes.
Problem: #244 landed under Unreleased, apart from the release it ships in.
Solution: its entries join the matching 7.1.0 lists after the release's own, and the Unreleased heading is gone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@matthewmr-eqty
matthewmr-eqty force-pushed the release/equality-7.1.0-title branch from f4cd128 to 6efeb97 Compare November 26, 2026 21:47
@matthewmr-eqty

Copy link
Copy Markdown
Contributor Author

Rebased on main now that #244 is in. Its changelog entries move from Unreleased into 7.1.0, so this release ships both. Only the changelog conflicted; #244's other files match its own diff.

@Shrinks99

Copy link
Copy Markdown
Member

Should we also update Heading along with these?

@matthewmr-eqty

Copy link
Copy Markdown
Contributor Author

ya that's next, keeping it out of this one so 7.1.0 stays the product styles. 7.2.0 puts Heading on the same scale plus two display sizes for docs and marketing pages, then docs 0.21.0 picks it up. here's the proposal if you want to look: https://claude.ai/artifact/7u4PYRYskzM7QhEqPRntfx

@matthewmr-eqty

Copy link
Copy Markdown
Contributor Author

@captjt all four fixed: progress track is back to the dark grey, titles wrap, dialog example uses DialogContainer, cn is on tailwind-merge 3. also rebased on main so Henry's table keyboard stuff ships in 7.1.0 with it. mind taking another look?

@captjt
captjt requested review from captjt and removed request for captjt November 27, 2026 14:04

@captjt captjt left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Safe to merge: since the last review, Progress keeps its dark light-mode track, cn runs on tailwind-merge 3 and merges Tailwind 4 classes correctly, and the Typography page builds a real dialog and lets titles wrap.

Checked at the head: pnpm build, lint, format and the tests (ui 456, docs 218 and 8) pass, and the last review's probes now pass, including cn on Tailwind 4 classes.

Merge risk: medium

Alignment: good ✅
Impact: large ⚠️

  • Merging publishes 7.1.0 to npm, since the publish workflow runs on any change to packages/ui/package.json, so every app on ^7 picks it up on its next install: publish.yaml, package.json.
  • Bumps tailwind-merge a major version (2 to 3), which changes how every component merges the className an app passes in: package.json.
  • Every app's page titles shrink from 30 to 28 through the deprecated text-title alias, in a minor release: theme-decisions.css.
  • Every Dialog, Sheet and AlertDialog header changes size and layout (title 18 to 20, semibold, 28 line; description spacing; close button position), so header heights move in every app: dialog.module.css, sheet.module.css, alert-dialog.module.css.
  • Adds cn to the public API, which apps are told to adopt in place of their own helper: index.ts.

Verification: decent 👀

  • The before-and-after evidence is only a link to an external artifact, not screenshots in the PR, and that link couldn't be opened to check it.
  • No test covers the new :has() close-button rules or the title-2 sizes in Dialog, Sheet and AlertDialog: dialog.module.css, sheet.module.css.
  • The tailwind-merge 3 tests check only a few class pairs, not the merges the components already rely on: utils.test.ts.
  • RadialGraph's light-mode track moves to the light border colour, the same change that was reverted on Progress for falling under 3:1, and no contrast for it is reported. Only the text label, which displayLabel can replace, carries the value: radial-graph.module.css.

Rollback cost: medium 👀

  • A published npm version can't be republished or easily withdrawn, so undoing it means a 7.1.1 fix-forward after apps have already picked up 7.1.0.
  • Taking back the exported cn once apps import it would be a breaking change: index.ts.

Error detection: decent 👀

  • No visual regression check exists, so layout shifts in consuming apps' headers and titles show up only when someone looks at them.
  • A wrong tailwind-merge 3 merge silently drops a class, with no error, so it would surface only as a styling bug in an app.

Claude Code (Opus 5.5) on behalf of @captjt · checked by Claude Code (Opus 5.5)

@matthewmr-eqty
matthewmr-eqty merged commit 4b88ec7 into main Nov 27, 2026
1 check passed
@matthewmr-eqty
matthewmr-eqty deleted the release/equality-7.1.0-title branch November 27, 2026 14:26
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.

3 participants