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

Release Tracking #1116

Merged
merged 1 commit into from
Mar 24, 2021
Merged

Release Tracking #1116

merged 1 commit into from
Mar 24, 2021

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Mar 9, 2021

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@primer/components@25.0.0

Major Changes

  • 8799f74a #1112 Thanks @colebemis! - Primer React now supports color modes! 🎉

    See the new Theming documentation for more details.

    Breaking changes

    • You'll need to replace the ThemeProvider from styled-components with the new Primer React ThemeProvider:
    - import {ThemeProvider} from 'styled-components'
    - import {theme} from '@primer/components
    + import {ThemeProvider} from '@primer/components'
    
    function App() {
      return (
    -   <ThemeProvider theme={theme}>
    +   <ThemeProvider>
          <div>your app here...</div>
        </ThemeProvider>
      )
    }
    • The structure of the theme object has changed to support color schemes:
    const theme = {
    - colors,
    - shadows,
    + colorSchemes: {
    +   light: {
    +     colors,
    +     shadows,
    +   },
    +   dark: {...},
    +   dark_dimmed: {...},
    + },
      space,
      fonts,
      fontSizes,
      fontWeights,
      lineHeights,
      borderWidths,
      radii,
      breakpoints,
      sizes,
    }
    • The theme.colors and theme.shadows objects are no longer available from the theme export. Use the useThemehook instead:
    - import {theme} from '@primer/components'
    + import {useTheme} from '@primer/components'
    
    function Example() {
    + const {theme} = useTheme()
      const myColor = theme.colors.text.primary
      ...
    }

Patch Changes

@vercel
Copy link

vercel bot commented Mar 9, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/primer/primer-components/FSGyZBMxmvmSohJJ5wjhJDajaMRi
✅ Preview: https://primer-components-git-changeset-release-main-primer.vercel.app

@vercel vercel bot temporarily deployed to Preview March 9, 2021 20:04 Inactive
@github-actions github-actions bot force-pushed the changeset-release/main branch 2 times, most recently from 815b9b3 to 1c935be Compare March 17, 2021 16:56
@vercel vercel bot temporarily deployed to Preview March 17, 2021 16:57 Inactive
@vercel vercel bot temporarily deployed to Preview March 23, 2021 18:15 Inactive
@vercel vercel bot temporarily deployed to Preview March 24, 2021 15:18 Inactive
@colebemis colebemis merged commit fa9ed89 into main Mar 24, 2021
@colebemis colebemis deleted the changeset-release/main branch March 24, 2021 15:36
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