Releases: system-ui/theme-ui
v0.15.2
🐛 Bug Fix
- Add
@mdx-js/reactto peerDeps forgatsby-plugin-theme-ui#2331 (@hasparus) - Fix MDXProvider example #2329 (@shawnbot)
- fix(typography): drop broken dev dependencies (@hasparus)
- fix(match-media): add dev dependency on react-dom (@hasparus)
- fix(theme-ui): remove redundant dependency on @theme-ui/mdx from package.json (@hasparus)
🏠 Internal
- docs: Mention that /core doesn't add global styles #2333 (@lachlanjc)
- docs: Group & update all MDX-related docs #2339 (@lachlanjc)
Authors: 3
- Lachlan Campbell (@lachlanjc)
- Piotr Monwid-Olechnowicz (@hasparus)
- Shawn Allen (@shawnbot)
v0.15.2-develop.0
v0.15.0
🎉 This release contains work from new contributors! 🎉
Thanks for all your work!
❤️ Luke Watts (@thisislawatts)
❤️ Valto Savi (@pointlessrapunzel)
❤️ Brage Sekse Aarset (@braaar)
Release Notes
Pull out MDX to be opt-in (#2288)
Breaking: theme-ui no longer includes @theme-ui/mdx — MDX is now opt-in.
If your project is not using MDX or importing Themed, you shouldn't need to
change anything.
-
MDXProvideris no longer included in Theme UIThemeProvider, and has been
removed in favour of anuseThemedStylesWithMdxhook.-
Migration: Use
useThemedStylesWithMdxtogether withMDXProvideranduseMDXComponentsfrom@mdx-js/react.import { MDXProvider, useMDXComponents, Components as MDXComponents, MergeComponents as MergeMDXComponents, } from '@mdx-js/react' import { useThemedStylesWithMdx } from '@theme-ui/mdx' import { ThemeProvider, Theme } from 'theme-ui' interface MyProviderProps { theme: Theme components?: MDXComponents | MergeMDXComponents children: React.ReactNode } function MyProvider({ theme, components, children }: MyProviderProps) { const componentsWithStyles = useThemedStylesWithMdx(useMDXComponents(components)) return ( <ThemeProvider theme={theme}> <MDXProvider components={componentsWithStyles}> {children} </MDXProvider> </ThemeProvider> ) }
-
-
Themedcomponents dict and other exports from@theme-ui/mdxare no longer reexported fromtheme-ui.-
Migration: Import it from
@theme-ui/mdxinstead.- import { Themed } from 'theme-ui' + import { Themed } from '@theme-ui/mdx'
-
Remove @theme-ui/editor (#2292)
- Breaking:
@theme-ui/editorwas removed. Use CSS GUI instead./customizepage in Theme UI docs has been removed. Use Components.ai Theme Builder or an alternative instead.
Drop support for React 16 + 17 (#2215)
Theme UI 0.15.0 drops support for React 16 and React 17. Your use case may still work, but we don't guarantee it.
@theme-ui/components: Increased right padding in Select component (#2058)
Select component default paddingRight style has increased to spaces[4] (32px by default), to avoid text flowing behind the chevron icon.
🚀 Enhancement
- Pull out MDX to be opt-in #2288 (@hasparus @beerose @lachlanjc hasparus@Piotrs-MacBook.local)
- Drop support for React 16 + 17 #2215 (@hasparus)
- refactor: setting padding-right to size 4 for dynamic value #2058 (@appsparkler)
🐛 Bug Fix
- Remove @theme-ui/editor #2292 (@hasparus)
- fix(mdx): add .sx props to Themed.X styles #2250 (@hasparus)
🏠 Internal
- docs(size-scales): Add reference of sizing scales in documentation #2327 (@cobraz @lachlanjc)
- docs: Update Contributing doc with pnpm info #2320 (@lachlanjc @hasparus)
- prism: Fix crash when className prop is missing #2322 (@lachlanjc)
- Docs: Group project templates by framework, add Remix #2276 (@lachlanjc)
- docs: re-order sidebar components into alphabetical order #2232 (@thisislawatts)
- docs: Specify MDX React version #2233 (@pointlessrapunzel)
Authors: 8
- Akash (@appsparkler)
- Aleksandra (@beerose)
- Brage Sekse Aarset (@braaar)
- Lachlan Campbell (@lachlanjc)
- Luke Watts (@thisislawatts)
- Piotr Monwid-Olechnowicz (@hasparus)
- Simen A. W. Olsen (@cobraz)
- Valto Savi (@pointlessrapunzel)
v0.15.0-develop.29
🐛 Bug Fix
🏠 Internal
- docs: Update Contributing doc with pnpm info #2320 (@lachlanjc @hasparus)
Authors: 3
- Brage Sekse Aarset (@braaar)
- Lachlan Campbell (@lachlanjc)
- Piotr Monwid-Olechnowicz (@hasparus)
v0.15.0-develop.27
🏠 Internal
- prism: Fix crash when className prop is missing #2322 (@lachlanjc)
Authors: 2
- Lachlan Campbell (@lachlanjc)
- Piotr Monwid-Olechnowicz (@hasparus)
v0.15.0-develop.26
v0.15.0-develop.25
Update version to v0.15.0-develop.25
v0.15.0-develop.24
Update version to v0.15.0-develop.24
v0.15.0-develop.23
Release Notes
Pull out MDX to be opt-in (#2288)
Breaking: theme-ui no longer includes @theme-ui/mdx — MDX is now opt-in.
If your project is not using MDX or importing Themed, you shouldn't need to
change anything.
-
MDXProvideris no longer included in Theme UIThemeProvider, and has been
removed in favour of anuseThemedStylesWithMdxhook.-
Migration: Use
useThemedStylesWithMdxtogether withMDXProvideranduseMDXComponentsfrom@mdx-js/react.import { MDXProvider, useMDXComponents, Components as MDXComponents, MergeComponents as MergeMDXComponents, } from '@mdx-js/react' import { useThemedStylesWithMdx } from '@theme-ui/mdx' import { ThemeProvider, Theme } from 'theme-ui' interface MyProviderProps { theme: Theme components?: MDXComponents | MergeMDXComponents children: React.ReactNode } function MyProvider({ theme, components, children }: MyProviderProps) { const componentsWithStyles = useThemedStylesWithMdx(useMDXComponents(components)) return ( <ThemeProvider theme={theme}> <MDXProvider components={componentsWithStyles}> {children} </MDXProvider> </ThemeProvider> ) }
-
-
Themedcomponents dict and other exports from@theme-ui/mdxare no longer reexported fromtheme-ui.-
Migration: Import it from
@theme-ui/mdxinstead.- import { Themed } from 'theme-ui' + import { Themed } from '@theme-ui/mdx'
-
Breaking: Themed object is no longer a component**
Previously, it was an alias for Themed.div.
- Migration: Whenever you're using
<Themed />, use<Themed.div />
instead.
🚀 Enhancement
- Pull out MDX to be opt-in #2288 (@hasparus @beerose @lachlanjc hasparus@Piotrs-MacBook.local)
Authors: 4
- Aleksandra (@beerose)
- Lachlan Campbell (@lachlanjc)
- Piotr Monwid-Olechnowicz (@hasparus)
v0.15.0-develop.21
v0.15.0-develop.21