xref: /aosp_15_r20/external/accompanist/themeadapter-core/README.md (revision fa44fe6ae8e729aa3cfe5c03eedbbf98fb44e2c6)
1# Core Theme Adapter
2
3[![Maven Central](https://img.shields.io/maven-central/v/com.google.accompanist/accompanist-themeadapter-core)](https://search.maven.org/search?q=g:com.google.accompanist)
4
5Core Theme Adapter includes common utilities that enable the reuse of XML themes, for theming in [Jetpack Compose][compose].
6
7## Usage
8
9This library includes common utilities that enable the reuse of XML themes, for theming in [Jetpack Compose][compose],
10allowing composables like [`MaterialTheme`][materialtheme] to be based on the `Activity`'s XML theme.
11
12For more information, visit the documentation: https://google.github.io/accompanist/themeadapter-core
13
14## Download
15
16```groovy
17repositories {
18    mavenCentral()
19}
20
21dependencies {
22    implementation "com.google.accompanist:accompanist-themeadapter-core:<version>"
23}
24```
25
26Snapshots of the development version are available in Sonatype's `snapshots` [repository][snap]. These are updated on every commit.
27
28[compose]: https://developer.android.com/jetpack/compose
29[materialtheme]: https://developer.android.com/reference/kotlin/androidx/compose/material3/package-summary#materialtheme
30[snap]: https://oss.sonatype.org/content/repositories/snapshots/com/google/accompanist/accompanist-themeadapter-core/
31