liveBook · Manning

Light theme

As explained in .NET MAUI in Action

Light mode is an interface appearance mode that uses a predominantly light color scheme.

A light theme gives an app a predominantly light color scheme. In .NET MAUI, it can respond automatically when the device changes between light and dark system themes. section 10.1.2

Build light-theme support by:

  • Defining light colors such as PrimaryBackground and SecondaryBackground in Colors.xaml. section 10.1.2

MauiStockTake

MauiStockTake uses AppThemeBinding so light mode is selected by the operating system rather than by an in-app switch. The same approach lets a custom Sandy theme respond to light and dark mode.

How .NET MAUI in Action covers it

How deep it goes
Explains resource definitions and AppThemeBinding usage, while stopping short of detailed color-design guidance.
Examples
Uses MauiStockTake, Colors.xaml, Styles.xaml, theme-aware gradients, shell backgrounds, and a custom Sandy theme.
What it assumes
Assumes familiarity with .NET MAUI resource dictionaries and XAML styles, while introducing AppThemeBinding through examples.
What you can do after
Build light and dark appearance support in a .NET MAUI application with theme-aware XAML resources.
How it connects
Connects light theme with dark mode, system theme, AppThemeBinding, resource dictionaries, and color palettes.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of .NET MAUI in Action. The section links point to the parts of the book it draws on.