Material Design 3 (Android)
Google's design system: dynamic color, typography, elevation, components and navigation patterns that Android users recognise.
Beginner · about 4 hours · difficulty 2/5
Learn first: Designing for Touch and Small Screens
Material Design 3 (also called Material You) is the design language of modern Android. Following it makes your app feel at home on Android and gives you a tested set of components.
Key ideas
- Color roles instead of raw colours:
primary,onPrimary,surface,surfaceVariant,errorand so on. Components consume roles, so switching to dark theme or dynamic color just works. - Dynamic color derives a palette from the user's wallpaper on Android 12+.
- Type scale: display, headline, title, body, label, each in large/medium/small.
- Shape and elevation communicate hierarchy; M3 uses tonal elevation (tinted surfaces) more than shadows.
- Components: top app bars, navigation bar, navigation rail, FABs, cards, chips, dialogs, bottom sheets, snackbars.
Using it in code
Jetpack Compose has MaterialTheme and androidx.compose.material3. Flutter uses ThemeData(useMaterial3: true) with ColorScheme.fromSeed. In React Native, libraries such as React Native Paper implement M3.
Pitfalls
Hard-coding hex colours everywhere breaks dark mode. Define a theme once and reference roles.
Good enough to move on: you can build a themed screen that switches correctly between light and dark using colour roles.
Key concepts
- Color roles and color schemes
- Dynamic color
- Type scale
- Shape and tonal elevation
- Core M3 components
- Material theming in your framework
Mini project
Create a settings screen themed from a single seed colour that looks correct in both light and dark mode.
Check yourself
Why reference the onSurface role for body text instead of hard-coding black?
Free resources
- Material Design 3 (Google)
- Material Design 3 in Compose (Android Developers)