Instruction

Heads up... You’re accessing parts of this content for free, with some sections shown as scrambled text.

Heads up... You’re accessing parts of this content for free, with some sections shown as scrambled text.

Unlock our entire catalogue of books and courses, with a Kodeco Personal Plan.

Unlock now

Material Theming in Jetpack Compose

Theming in Jetpack Compose has a different take compared to how it’s done in the UI toolkit. Instead of inheriting from a Material components style, extending the theme as per your requirement, and applying them to your views, you define:

Exploring Colors in Material Design

A Material Design compliant color system consists of the following key colors:

Implementing a Color Palette

Based on the schematic discussed above, a Material compliant palette can be created as follows:

Typography in Material Design

A typographic scale is a collection of font styles that can be used across an app for different levels of emphasis and for establishing visual hierarchy.

Implementing a Typographic Scale

Building the typographic scale becomes quite straightforward once you’ve determined what font pairing you’d like to use in your app.

Exploring Shapes in Material Design

Material Design uses shapes extensively. According to the guidelines, surfaces can be displayed in different shapes. Shapes direct attention, identify components, communicate state, and express brand.

See forum comments
Download course materials from Github
Previous: Introduction Next: Demo