Skip to content

Releases: system-ui/theme-ui

v0.15.0-develop.24

12 Sep 05:26
Compare
Choose a tag to compare
v0.15.0-develop.24 Pre-release
Pre-release
Update version to v0.15.0-develop.24

v0.15.0-develop.23

12 Sep 04:52
623ae88
Compare
Choose a tag to compare
v0.15.0-develop.23 Pre-release
Pre-release

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.

  • MDXProvider is no longer included in Theme UI ThemeProvider, and has been
    removed in favour of an useThemedStylesWithMdx hook.

    • Migration: Use useThemedStylesWithMdx together with MDXProvider and useMDXComponents from @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>
        )
      }
  • Themed components dict and other exports from @theme-ui/mdx are no longer reexported from theme-ui.

    • Migration: Import it from @theme-ui/mdx instead.

      -  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

Authors: 4

v0.15.0-develop.21

15 Aug 08:33
571ba9f
Compare
Choose a tag to compare
v0.15.0-develop.21 Pre-release
Pre-release
v0.15.0-develop.21

v0.15.0-develop.20

12 Aug 12:05
e823f86
Compare
Choose a tag to compare
v0.15.0-develop.20 Pre-release
Pre-release
v0.15.0-develop.20

v0.15.0-develop.19

12 Aug 11:35
09fb511
Compare
Choose a tag to compare
v0.15.0-develop.19 Pre-release
Pre-release
v0.15.0-develop.19

v0.15.0-develop.18

12 Aug 10:37
Compare
Choose a tag to compare
v0.15.0-develop.18 Pre-release
Pre-release

👨‍💻 Minor changes

Authors: 1

v0.15.0-develop.17

12 Aug 05:35
c65abf6
Compare
Choose a tag to compare
v0.15.0-develop.17 Pre-release
Pre-release

Release Notes

Remove @theme-ui/editor (#2292)

  • Breaking: @theme-ui/editor was removed. Use CSS GUI instead.

🐛 Bug Fix

Authors: 1

v0.15.0-develop.14

01 Aug 11:28
2ed4355
Compare
Choose a tag to compare
v0.15.0-develop.14 Pre-release
Pre-release

🐛 Bug Fix

  • @theme-ui/mdx

🏠 Internal

Authors: 2

v0.15.0-develop.13

29 Jul 04:21
Compare
Choose a tag to compare
v0.15.0-develop.13 Pre-release
Pre-release
v0.15.0-develop.13

v0.14.7

28 Jul 18:00
Compare
Choose a tag to compare

👨‍💻 Minor changes

Authors: 1