You can incorporate as many themes as you desire in your application. While there’s flexibility in how you structure your theme, it’s essential to maintain consistency with the TypeScript type:
To promote reusability and maintainability, it’s a good practice to share as many values between themes as possible:
With the themes set up, modify your createUnistyles to consume your AppTheme type:
The final step is to switch your theme based on certain states, persisted values, databases, etc.: