Skip to content

Conversation

joshblack
Copy link
Member

Closes https://github.com/github/primer/issues/5829

Adds an ADR for our strategy around shipping @primer/styled-react. Hopefully this captures our current thinking around this space, let me know what you think or if it would be helpful to include any additional information!

Copy link

changeset-bot bot commented Sep 4, 2025

⚠️ No Changeset found

Latest commit: c6aa736

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@joshblack joshblack added the skip changeset This change does not need a changelog label Sep 4, 2025
@github-actions github-actions bot added the staff Author is a staff member label Sep 4, 2025
Copy link
Contributor

github-actions bot commented Sep 4, 2025

size-limit report 📦

Path Size
packages/react/dist/browser.esm.js 87.94 KB (0%)
packages/react/dist/browser.umd.js 88.16 KB (0%)

Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Adds an Architecture Decision Record (ADR) documenting the strategy for creating a new @primer/styled-react package. This package will serve as a compatibility layer for teams still using styled-components while allowing the main @primer/react package to migrate to CSS Modules.

Key Changes

  • Documents the decision to create @primer/styled-react as a pre-1.0 package that re-exports components with sx prop support
  • Establishes deprecation strategy and migration path away from styled-components
  • Outlines consequences including increased package maintenance overhead and potential prolonged styled-components usage

lesliecdubs and others added 2 commits September 4, 2025 15:45
Co-authored-by: Copilot <[email protected]>
@github-actions github-actions bot requested a deployment to storybook-preview-6722 September 4, 2025 20:50 Abandoned
@github-actions github-actions bot temporarily deployed to storybook-preview-6722 September 4, 2025 20:58 Inactive
@github-actions github-actions bot temporarily deployed to storybook-preview-6722 September 4, 2025 21:08 Inactive
Copy link
Member

@francinelucca francinelucca left a comment

Choose a reason for hiding this comment

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

:shipit:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip changeset This change does not need a changelog staff Author is a staff member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants