| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| Performance rewrite.tar.gz | 2018-07-14 | 407.1 kB | |
| Performance rewrite.zip | 2018-07-14 | 441.1 kB | |
| README.md | 2018-07-14 | 2.2 kB | |
| Totals: 3 Items | 850.4 kB | 0 | |
This rewrite helps make styled-system smaller, faster, and simplifies the API.
Added
Changed
styleutility is now responsive by default- All built-in style functions now support responsive array values
backgroundImageno longer wraps values withurl()buttonStyleprop has been renamed tovariant- The
styleutilitygetterargument has beend renamed totransformValue util.getno longer supports a fallback argument
Removed
responsiveStyleusestyleinsteadcomplexStyleusevariantinsteadcomplexStyle(variant) boolean props are no longer supportedpseudoStylehoverfocusactivedisabledfontSizeandwidthno longer support shorthand propsaliasoptionnumberToPxoption (passutil.pxto thetransformValueargument instead)util.mediautil.negutil.arrutil.getWidthutil.mqutil.fallbackThemeutil.breaksutil.decutil.getValue
Migrating from v2
- Replace all deprecated shorthand
fprops with thefontSizeprop - Replace all deprecated shorthand
wprops with thewidthprop - Replace the deprecated
buttonStyleprop with thevariantprop - Ensure
backgroundImageprops include the CSSurl()syntax where needed - Replace instances of
responsiveStylewith thestyleutility - Replace the
numberToPxargument withtransformValue: util.px - Rename the
getterargument withtransformValue - Replace
complexStylewithvariant - Replace custom
aliasprops with something like recompose's mapProps - Ensure boolean props are not used for
variantstyles, including: buttonStyletextStylecolors- If you were using
hover,focus,active,disabled, orpseudoStyle, consider adding your own replacement - Consider adding replacements for any of the removed utilities listed above