Skip to content
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

fix(deps): make theme-ui a peerDependency #262

Closed
wants to merge 2 commits into from

Conversation

kripod
Copy link

@kripod kripod commented Feb 4, 2020

In order to solve package resolution issues.

@LekoArts
Copy link
Owner

Hey @kripod 👋
I haven't forgotten this, just didn't have time to go through all themes.

My PR #371 supersedes your PR so I'll close this.

Have a look at the description to see what changes. As you use specimens/styleguide you'll be interested in the one small breaking change I had to make.

Thanks!

@LekoArts LekoArts closed this Apr 26, 2020
@kripod
Copy link
Author

kripod commented Apr 26, 2020

Awesome, thank you for the response! 😊

LekoArts added a commit that referenced this pull request Apr 27, 2020
Theme UI updated to v0.3 a while ago and I now finally had time to go through the breaking changes: https://theme-ui.com/migrating#v03

In general this update should be painless and without any breaking changes (for most people). The sites look and function identical, it was more a technical refactoring.

## Breaking Changes

These changes might be breaking for some people:

- `@lekoarts/gatsby-theme-specimens`: Renamed the `theme` prop on the `<Heading />` component to `config`
- `@lekoarts/gatsby-theme-specimens` & `@lekoarts/gatsby-theme-styleguide`: Removed `theme-ui` as a direct dependency and moved them to `peerDependencies`. This supersedes the PR #262

## Description

- Updated all `gatsby`, `react`, `react-dom` packages to latest version
- Removed `@emotion/core` and `@mdx-js/react` packages as `theme-ui` now comes with it
- Removed `<Styled.root />` components as Theme UI now places that on the `body` by default
- Replaced `Styled.x` with e.g. `Link`, `Heading`
- Moved `@emotion/core`, `@mdx-js/mdx` & `@mdx-js/react` to `yarn resolutions` to only have one version of each dependency
- Use `merge` from `theme-ui` for config merging
- Clean up `<Global />` by moving stuff to the Theme UI config
- Rename some internal TypeScript types
- Add/Update some comments
- Use optional chaining.?
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.

None yet

2 participants