Customizing the theme
Picasso ships with a default theme. But you most probably won't use the default one and want to use your own colors, sizes and values.
This can be achieved by using the ThemeProvider
component. What you need to do is to simply import the theme provider and wrap your whole app into it. Then you can pass a custom theme
variable to override specific parts of the default theme.
For example in your App.js file :
The ThemeProvider will look at your custom theme and apply those values to the default theme. This way, you can only override specific aspects of the theme and keep the default values for the rest.
Be careful to follow the original structure of the theme. Otherwise your styles may break.
Adding your own classes
You can add your own values to use as classes. For example if you wanted to add a complex style for a card. You just need to add a new property at the root of your custom theme. And then you can simply use the class anywhere in your app on a Picasso component.
You can also add custom values to existing properties and all the properties which are using this specific set of values will have access to it. For example :
Merging with classic styles
Sometimes, the classes available in the theme are not sufficient for your specific need. In order to give you enough flexibility with the components, you can still use the default style
property in combination with picasso classes.