SkapaTheme

fun SkapaTheme(darkTheme: Boolean = false, fontFamily: FontFamily = NotoIkeaLatin, largeScreen: Boolean = false, content: @Composable () -> Unit)

Skapa Theming

This theme is an extension of the Jetpack Compose MaterialTheme.

Skapa components such as Button and Switch use values provided here when retrieving default values.

It defines colours as specified in the Skapa System colours spec, typeface and typography defined in the Skapa Typography spec.

Dark Theme is disabled by default. It can be enabled by setting the parameter to true or providing isSystemInDarkTheme() to use the same UI mode as the system.

Parameters

darkTheme

A control to enable and disable dark mode.

fontFamily

The font family used to render components and text styles. Default value is NotoIkeaLatin if another font language is needed add it to the project using the font package in your build.gradle file implementation("net.ikea.skapa:fonts:$fontLanguage") check the available options on "Using the Library" section in the main page

largeScreen

A boolean to indicate if text styles and line heights should be adapted to large screens (e.g., tv and tablets).


fun SkapaTheme(darkTheme: Boolean = false, fontFamily: FontFamily = NotoIkeaLatin, content: @Composable () -> Unit)

Skapa Theming

This theme is an extension of the Jetpack Compose MaterialTheme.

Skapa components such as Button and Switch use values provided here when retrieving default values.

It defines colours as specified in the Skapa System colours spec, typeface and typography defined in the Skapa Typography spec.

Dark Theme is disabled by default. It can be enabled by setting the parameter to true or providing isSystemInDarkTheme() to use the same UI mode as the system.

Parameters

darkTheme

A control to enable and disable dark mode.

fontFamily

The font family used to render components and text styles. Default value is NotoIkeaLatin if another font language is needed add it to the project using the font package in your build.gradle file implementation("net.ikea.skapa:fonts:$fontLanguage") check the available options on "Using the Library" section in the main page