- Added
useStyles
that takes a function to generate styles as the first argument, and a dependencies array as the second argument.useStyles
will always update when the theme changes, but you may declare additional dependencies to change on.
Paint
no longer exists as a utility.- Old way:
Paint.create((theme) => ({...}))
orPaint.create({...})
- New way:
(theme) => ({...})
or() => ({...})
- Old way:
context
prop onStylesProvider
deprecated in favor oftheme
.Paint
now inherits all properties from StyleSheet.- Can create a
StyleSheet
directly withPaint.sheet
method.
StylesProvider
takesid
andcontext
props.