Dark Mode & Dynamic Color
Adapt colors to system and wallpaper.
Two Palettes, One App
A polished app ships both a light and a dark palette. You define them as separate colorScheme objects and switch between them at the theme level. 🌙
Detect the System Setting
You ask the system which mode is active with isSystemInDarkTheme, a Composable that returns true when the user prefers dark.
val dark = isSystemInDarkTheme()All lessons in this course
- MaterialTheme & Color Schemes
- Typography & Shape Tokens
- Dark Mode & Dynamic Color
- Building a Custom Design System