v0.8.0
🔥 Breaking Changes and Deprecations
-
BREAKING:
theme.config.useRootStylesnow defaults totruefollowing
deprecation ofuseBodyStyles. Styles fromtheme.styles.rootare now added
to<html>element by default. -
Moved theme configuration options to
configobject in theme.- Deprecations:
useRootStyles,useCustomProperties,
useColorSchemeMediaQuery,useBorderBox, anduseLocalStorageoptions on
the theme object are now scoped under aconfigobject 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.useBorderBoxinstead of
theme.useBorderBox)- ⚠ All config options should be migrated at once. If Theme UI sees
theme.configexists, it won't look for options on thetheme.
- Deprecations:
-
Removed APIs, previously deprecated in 0.6.0
theme.useBodyStyles⟶theme.config.useRootStylesStyled⟶Themed
🚀 Enhancements
@theme-ui/color-modes,@theme-ui/css,gatsby-plugin-theme-ui
📝 Documentation
- Improve Switch component documentation #1687 (@flo-sch)
- Describe Preconstruct in Contributing.md #1715 (@hasparus)
Authors: 4
- Florent SCHILDKNECHT (@flo-sch)
- Francis Champagne (@fcisio)
- Lachlan Campbell (@lachlanjc)
- Piotr Monwid-Olechnowicz (@hasparus)
⚠ This version has a bug with serverside rendering in projects without explicit Emotion SSR config. Use v0.8.1 instead. ⚠