Skip to content

feat: add text variants codemod - #1153

Draft
pawelgrimm wants to merge 1 commit into
pawel/feat/typography-updatesfrom
pawel/typography/codemod
Draft

feat: add text variants codemod#1153
pawelgrimm wants to merge 1 commit into
pawel/feat/typography-updatesfrom
pawel/typography/codemod

Conversation

@pawelgrimm

@pawelgrimm pawelgrimm commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Stacked on #1152.

Short description

Adds a published TypeScript jscodeshift codemod for the Text API introduced in #1152.

  • Maps legacy Text size and weight combinations to named variants.
  • Migrates Heading variants to Text header variants and preserves custom heading elements.
  • Migrates Display imports to Text and keeps all Display variant names.
  • Marks ambiguous, indirect, namespace, and removed type references for manual migration.
  • Adds complete mapping, safety, and repeat-run tests.

Verified with npm run validate.

PR Checklist

  • Added tests for bugs / new features
  • Updated docs (storybooks, readme)

@pawelgrimm pawelgrimm changed the title pawel/typography/codemod feat: add typography migration codemod Aug 13, 2026
@pawelgrimm
pawelgrimm force-pushed the pawel/typography/codemod branch from c0ac0c9 to 6fc37fc Compare August 14, 2026 16:48
@pawelgrimm pawelgrimm changed the title feat: add typography migration codemod feat: add text variants codemod Aug 14, 2026
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.

1 participant