Skip to content

Import Carbon library

To start using Carbon in your Compose app, add the dependency according to your dependencies declaration method:

[versions]
carbon=<version>

[libraries]
carbon-compose = { module = "io.github.gabrieldrn:carbon", version.ref = "carbon" }
dependencies {
    implementation(libs.carbon.compose)
}

KMP:

kotlin {
    sourceSets {
        ...
        commonMain.dependencies {
            implementation(libs.carbon.compose)
        }
        ...
    }
}
dependencies {
    implementation("io.github.gabrieldrn:carbon:$version")
}
dependencies {
    implementation "io.github.gabrieldrn:carbon:$version"
}

You can find the latest version in the releases page.