Name Date Size #Lines LOC

..--

api/H25-Apr-2025-2520

src/H25-Apr-2025-1,463937

README.mdH A D25-Apr-20251.5 KiB3927

build.gradle.ktsH A D25-Apr-20253.4 KiB12378

gradle.propertiesH A D25-Apr-2025717 2018

README.md

1# Material 3 Theme Adapter
2
3[![Maven Central](https://img.shields.io/maven-central/v/com.google.accompanist/accompanist-themeadapter-material3)](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