Migrate from StyleSheet
Unistyles
embraces the simplicity of StyleSheet
, making it easy to integrate into your project.
You can replace StyleSheet.create
with createStyleSheet
and it will work exactly the same:
If you’re refactoring your components and require additional functionalities in any of them such as breakpoints
, media queries
, variants
or theme
you can incrementally pass style(sheet)
into the useStyles
hook:
With the hook in place, you can now use all the features.