You don’t have to follow a specific format. Just make an object and add any keys/values you like.
or something more advanced with nested objects / functions:
It’s good to add “as const” to the end of your theme object to make sure TypeScript knows it’s a constant object and not a mutable one. It also allows you to spread your partial theme object into a full theme object without TypeScript complaining.
Create breakpoints
There are no predefined breakpoints. You can name them anything. Just make an object with string keys and number values.
It’s good to add “as const” to the end of your breakpoints object to make sure TypeScript knows it’s a constant object and not a mutable one.
Wrap your app with UnistylesTheme to inject theme
Access createStyleSheet and useStyles with a factory