Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
api/ | H | 25-Apr-2025 | - | 25 | 20 | |
src/ | H | 25-Apr-2025 | - | 1,463 | 937 | |
README.md | H A D | 25-Apr-2025 | 1.5 KiB | 39 | 27 | |
build.gradle.kts | H A D | 25-Apr-2025 | 3.4 KiB | 123 | 78 | |
gradle.properties | H A D | 25-Apr-2025 | 717 | 20 | 18 |
README.md
1# Material 3 Theme Adapter 2 3[](https://search.maven.org/search?q=g:com.google.accompanist) 4 5Material 3 Theme Adapter enables the reuse of [MDC-Android][mdc] Material 3 XML themes, for theming in [Jetpack Compose][compose]. 6 7## Usage 8 9This library attempts to bridge the gap between [MDC-Android][mdc] Material 3 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 13Mdc3Theme { 14 // MaterialTheme.colorScheme, MaterialTheme.typography and MaterialTheme.shapes 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-material3 20 21## Download 22 23```groovy 24repositories { 25 mavenCentral() 26} 27 28dependencies { 29 implementation "com.google.accompanist:accompanist-themeadapter-material3:<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[mdc]: https://github.com/material-components/material-components-android 36[compose]: https://developer.android.com/jetpack/compose 37[materialtheme]: https://developer.android.com/reference/kotlin/androidx/compose/material3/package-summary#materialtheme 38[snap]: https://oss.sonatype.org/content/repositories/snapshots/com/google/accompanist/accompanist-themeadapter-material3/ 39