-
Notifications
You must be signed in to change notification settings - Fork 627
docs(adr): add adr for @primer/styled-react #6722
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
size-limit report 📦
|
There was a problem hiding this 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 withsx
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
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Leslie Cohn-Wein <[email protected]>
Co-authored-by: Leslie Cohn-Wein <[email protected]>
Co-authored-by: Leslie Cohn-Wein <[email protected]>
Co-authored-by: Leslie Cohn-Wein <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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!