10 Styles, themes, and multiplatform layouts

This chapter covers

  • Styling controls
  • App themes and light/dark mode
  • Triggers and visual states
  • Features of different device paradigms

Back in chapter 1, we looked at the importance of maintaining a consistent UX throughout your app and across different platforms, and we touched on it again in chapter 5. Whether you strive for the “pixel perfect” approach or just want your app to feel like your app, wherever it is used, keeping your UI consistent is critical and helps users understand how your app works.

For example, using a primary and secondary color helps your users to understand the purpose of a button, as does using specific button shapes (for example, it’s common to use a circular floating action ...

Get .NET MAUI in Action now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.