v0.8.0
🔥 Breaking Changes and Deprecations
-
BREAKING:
theme.config.useRootStyles
now defaults totrue
following
deprecation ofuseBodyStyles
. Styles fromtheme.styles.root
are now added
to<html>
element by default. -
Moved theme configuration options to
config
object in theme.- Deprecations:
useRootStyles
,useCustomProperties
,
useColorSchemeMediaQuery
,useBorderBox
, anduseLocalStorage
options on
the theme object are now scoped under aconfig
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 thetheme
.
- Deprecations:
-
Removed APIs, previously deprecated in 0.6.0
theme.useBodyStyles
⟶theme.config.useRootStyles
Styled
⟶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. ⚠