rebass v4.0.0 Release Notes
Release Date: 2019-08-04 // over 4 years ago-
- ๐ New
sx
prop for theme-based styles - ๐ Use the
css
prop for un-themed, raw CSS values - ๐ง No additional Babel configuration required for the
sx
orcss
props - ๐ Use the
sx
prop in MDX documents - ๐ Built-in support for themeable component variants
- ๐ป Fully compatible with Theme UI
๐ฅ Breaking Changes
- ๐
The default package now uses Emotion. To use Rebass with Styled Components, import the components from
rebass/styled-components
instead. - ๐ The undocumented theme keys for
Box
,Flex
,Text
,Heading
,Link
,Button
,Image
, andCard
are no longer supported. Use variants instead. - ๐ฆ The
@rebass/grid
package has been renamed (back to)reflexbox
- ๐
Heading: default
fontWeight
is now set toheading
. Add styles totheme.fontWeights
to customize theheading
font weight. - ๐ Button no longer supports the following props. Use the
sx
prop instead.border
,borderColor
,borderWidth
,borderStyle
,borderRadius
,borderTop
,borderRight
,borderBottom
,borderLeft
,borderX
,borderY
- ๐ Image no longer supports the following props. Use the
sx
prop instead.border
,borderColor
,borderWidth
,borderStyle
,borderRadius
,borderTop
,borderRight
,borderBottom
,borderLeft
,borderX
,borderY
- ๐ Link no longer includes default styles. Add styles to
theme.variants.link
to customize link styles. - ๐ Card no longer supports the following props. Use the
sx
prop instead.border
,borderColor
,borderWidth
,borderStyle
,borderRadius
,borderTop
,borderRight
,borderBottom
,borderLeft
,borderX
,borderY
,boxShadow
,textShadow
,background
,backgroundImage
,backgroundSize
,backgroundPosition
,backgroundRepeat
,
- ๐ New