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 or css 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, and Card are no longer supported. Use variants instead.
    • ๐Ÿ“ฆ The @rebass/grid package has been renamed (back to) reflexbox
    • ๐Ÿ’… Heading: default fontWeight is now set to heading. Add styles to theme.fontWeights to customize the heading 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,