Releases: mojotech/mojotech-ui
Releases · mojotech/mojotech-ui
Release version 1.0.1
v1.0.0
Release version 1.0.0
This release contains several breaking changes. One is that the way the components are styled has changed. Instead of using the css prop from Emotion; Onno is being used to style. More can be read about Onno here. Leveraging this library allows components to be styled with css props. It also allows for better theme integration across the board. The changes are as follows:
- The
Text
component no longer utilizes thedim
ordisplay
props. These have been replaced with theopacity
andfontFamily
props. - The addition of the
Box
component which provides a base for all of the layout components. - The addition of the
Flex
component which extends the box, but has the default styles set to allow usage offlexbox
styles. - The addition of the
TextLink
component. - Addition for
Grid
component. An extension of the box component, but withcss grid layout
styles set as a default. - Changes to the theme have also been made. Theme changes are:
fonts
changes tofontFamilies
spacing
is nowspaces
scheme
is nowschemes
and is moved outside of thecolors
object.- The addition of
breakpoints
to the theme - The addition of
opacities
to the theme maxWidths
is now an array of strings instead of nested arrays.