SkapaTheme
Deprecated
This theme is deprecated. Use SkapaTheme2 instead. Make sure to update the typeScale param to fit your needs.
Replace with
SkapaTheme2(darkTheme = darkTheme, fontFamily = fontFamily, content = contentSkapa 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
A control to enable and disable dark mode. Note: If you want to ONLY use light mode this needs to be set AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_NO) in your main AppCompatActivity as well.
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
A boolean to indicate if text styles and line heights should be adapted to large screens (e.g., tv and tablets).
Deprecated
This theme is deprecated. Use SkapaTheme2 instead.
Replace with
SkapaTheme2(darkTheme = darkTheme, fontFamily = fontFamily, content = content)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
A control to enable and disable dark mode. Note: If you want to ONLY use light mode this needs to be set AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_NO) in your main AppCompatActivity as well.
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