Setup

This library is distributed via maven central.

Add dependencies like following to use this library inside your project.

Simply add the dependencies inside your build.gradle.kts file.

build.gradle.kts
val composecolors = "<LATEST-VERSION>"

// core
implementation("io.github.mflisar.composecolors:core:$composecolors")

// Modules
implementation("io.github.mflisar.composecolors:material:$composecolors")
implementation("io.github.mflisar.composecolors:material-palette:$composecolors")
implementation("io.github.mflisar.composecolors:x11:$composecolors")
implementation("io.github.mflisar.composecolors:x11-palette:$composecolors")

Define the dependencies inside your libs.versions.toml file.

libs.versions.toml
[versions]

composecolors = "<LATEST-VERSION>"

[libraries]

# core
composecolors-core = { module = "io.github.mflisar.composecolors:core", version.ref = "composecolors" }

# Modules
composecolors-material = { module = "io.github.mflisar.composecolors:material", version.ref = "composecolors" }
composecolors-material-palette = { module = "io.github.mflisar.composecolors:material-palette", version.ref = "composecolors" }
composecolors-x11 = { module = "io.github.mflisar.composecolors:x11", version.ref = "composecolors" }
composecolors-x11-palette = { module = "io.github.mflisar.composecolors:x11-palette", version.ref = "composecolors" }

And then use the definitions in your projects like following:

build.gradle.kts
# core
implementation(libs.composecolors.core)

# Modules
implementation(libs.composecolors.material)
implementation(libs.composecolors.material.palette)
implementation(libs.composecolors.x11)
implementation(libs.composecolors.x11.palette)