Getting started
Quick start
Wrap your app in SKTheme and render your first SKOne screen.
SKTheme provides tokens to the composition tree. Place it once at the root of your activity.
MainActivity.kt
setContent {
SKTheme(colorScheme = SKColorScheme.system()) {
SKScaffold(topBar = { SKTopBar(title = "Invoices") }) {
SKText("Hello, SKOne", role = SKTextRole.HeadlineSmall)
SKButton(text = "Create invoice", onClick = ::create)
}
}
}XML projects
Apply the SKOne theme overlay to your existing AppCompat theme.
themes.xml
<style name="Theme.App" parent="Theme.SKOne.DayNight">
<item name="skColorPrimary">@color/brand_primary</item>
</style>