Skip to content

A lightweight library for using Material Colors in Android Jetpack Compose Project πŸš€πŸš€πŸš€

License

Notifications You must be signed in to change notification settings

atick-faisal/compose-material-color

Repository files navigation

How To Use

Step 1: Add the JitPack repository to your build file.

Add it in your root build.gradle / build.gradle.kts at the end of repositories:

Groovy:

    allprojects {
        repositories {
            ...
            maven { url 'https://jitpack.io' }
        }
    }

Kotlin:

    allprojects {
        repositories {
            ...
            maven { 
                setUrl("https://jitpack.io")
            }
        }
    }

Step 2: Add the dependency

Groovy:

    implementation 'com.github.atick-faisal:compose-material-color:5.1.1'

Kotlin:

    implementation("com.github.atick-faisal:compose-material-color:5.1.1")

Step 3: Enjoy using Material Colors with Compose

    import ai.atick.material.MaterialColor
    
    ...
    
    Text(
        text = "Hello Compose!",
        color = MaterialColor.Purple700
    )

License

licensebuttons by-nc-sa

This work is licensed under GNU General Public License v3.0.