This guide covers breaking changes when upgrading from Theme UI v0.13 to v0.14.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/system-ui/theme-ui/llms.txt
Use this file to discover all available pages before exploring further.
Breaking Changes
@emotion/styled No Longer a Dependency
This change reduces bundle size and removes an unnecessary dependency. If your application code uses@emotion/styled directly, you’ll need to install it as a separate dependency.
Component.withComponent API Removed
This Emotion API was deprecated and is no longer available on Theme UI components. Migration: Use theas prop instead, or create new components using the sx prop.
Before:
‘as’ Prop Removed from Themed.X Components
Migration: Replace uses of<Themed.X as="element"> with <element sx={t => t.styles.X} />.
Before:
sx prop with theme styles:
Summary
The v0.14 release focuses on removing deprecated APIs and reducing dependencies:- Install
@emotion/styledseparately if your code uses it - Replace
Component.withComponentwith theasprop or new components - Remove
asprop usage fromThemed.Xcomponents and usesxprop instead
