Theming Guide
Customising the appearance of DevView.
[Placeholder: Insert screenshot of DevView UI in light and dark themes. Use a device frame if relevant.]
Overview
DevView is designed to inherit your app's theme, using MaterialTheme and Compose best practices. This ensures a consistent look and feel across all modules and platforms.
Step-by-Step: Adapting to App Theme
DevView uses MaterialTheme colour schemes and typography by default:
Customising Colours
Override colours for modules or components as needed:
object MyModule : Module {
override val containerColour = MaterialTheme.colorScheme.secondary
override val contentColour = MaterialTheme.colorScheme.onSecondary
// ...other properties...
}
Customising Typography
Use your app's typography settings in custom modules:
Customising Icons
Use Compose icons or your own vector assets:
Best Practices
- Use MaterialTheme for all custom modules
- Test on both light and dark themes
- Use accessible colour contrasts
- Preview modules in different theme modes
Troubleshooting
- Colours not matching app theme? Ensure you use MaterialTheme properties and override them as needed.
- Typography issues? Use MaterialTheme.typography for consistency.
- Icon rendering problems? Check vector asset compatibility and Compose version.
Next Steps
- See Module Development for more on customisation.
- Explore Examples for themed module samples.
API Reference
[API reference available via Dokka. Add direct link here when available.]