Download Latest Version v4.zip (919.7 kB)
Email in envelope

Get an email when there's a new version of Styled System

Home / v4.0.0
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2019-02-23 1.2 kB
v4.tar.gz 2019-02-23 883.8 kB
v4.zip 2019-02-23 919.7 kB
Totals: 3 Items   1.8 MB 0
  • Rewritten core for less code duplication
  • No longer merges returned style object, but returns arrays instead, which should work with common CSS-in-JS libraries
  • space function has been rewritten with the core style and compose utilities
  • Adds long-form props for margin and padding (e.g. marginTop). Shorthand aliases still work as before.
  • Reintroduces the alias argument to style utility
  • Removes the styles object export
  • Removes the util object export
  • Removes merge utility
  • Removes the mixed utility since it did not behave as expected
  • The theme "scale" is now passed as the second argument to the transformValue option in style utility
  • Removes the ratio style function
  • The following changes to the borders style function
  • The shorthand border props no longer transform numbers to pixel widths with a solid border-style
  • Adds borderWidth, borderStyle, borderColor, and borderRadius props
  • All border props are also available as individual imports
  • Removes styleType from prop types meta fields
  • Changes to the get utility: now returns the last argument as a fallback
Source: README.md, updated 2019-02-23