1# AppCompat Theme Adapter 2 3[](https://search.maven.org/search?q=g:com.google.accompanist) 4 5AppCompat Theme Adapter enables the reuse of [AppCompat][appcompat] XML themes, for theming in [Jetpack Compose][compose]. 6 7## Usage 8 9This library attempts to bridge the gap between [AppCompat][appcompat] XML themes, and themes in [Jetpack Compose][compose], 10allowing your composable [`MaterialTheme`][materialtheme] to be based on the `Activity`'s XML theme: 11 12``` kotlin 13AppCompatTheme { 14 // MaterialTheme.colors and MaterialTheme.typography 15 // will now contain copies of the context's theme 16} 17``` 18 19For more information, visit the documentation: https://google.github.io/accompanist/themeadapter-appcompat 20 21## Download 22 23```groovy 24repositories { 25 mavenCentral() 26} 27 28dependencies { 29 implementation "com.google.accompanist:accompanist-themeadapter-appcompat:<version>" 30} 31``` 32 33Snapshots of the development version are available in Sonatype's `snapshots` [repository][snap]. These are updated on every commit. 34 35[appcompat]: https://developer.android.com/jetpack/androidx/releases/appcompat 36[compose]: https://developer.android.com/jetpack/compose 37[materialtheme]: https://developer.android.com/reference/kotlin/androidx/compose/material/package-summary#materialtheme 38[snap]: https://oss.sonatype.org/content/repositories/snapshots/com/google/accompanist/accompanist-themeadapter-appcompat/ 39