Skip to content

v0.8.0

Compare
Choose a tag to compare
@hasparus hasparus released this 05 May 09:20

🔥 Breaking Changes and Deprecations

  • BREAKING: theme.config.useRootStyles now defaults to true following
    deprecation of useBodyStyles. Styles from theme.styles.root are now added
    to <html> element by default.

  • Moved theme configuration options to config object in theme.

    • Deprecations: useRootStyles, useCustomProperties,
      useColorSchemeMediaQuery, useBorderBox, and useLocalStorage options on
      the theme object are now scoped under a config object on the theme, and
      the root-level options, now deprecated, will be removed in a future release.

    (e.g. you should be setting theme.config.useBorderBox instead of
    theme.useBorderBox)

    • ⚠ All config options should be migrated at once. If Theme UI sees
      theme.config exists, it won't look for options on the theme.
  • Removed APIs, previously deprecated in 0.6.0

    • theme.useBodyStylestheme.config.useRootStyles
    • StyledThemed

🚀 Enhancements

  • @theme-ui/color-modes, @theme-ui/css, gatsby-plugin-theme-ui
    • Refactor color objects and expose default colors as a mode #1639 (@fcisio)

📝 Documentation

Authors: 4


⚠ This version has a bug with serverside rendering in projects without explicit Emotion SSR config. Use v0.8.1 instead. ⚠