Compose Unstyled

Installation

Learn how to use Compose Unstyled in a new or existing projects.

View Markdown

Quick start

Compose Unstyled is distributed via Maven Central, the most trusted source of sharing Kotlin packages. Ensure you have it enabled in your repository sources first:

settings.gradle.kts
dependencyResolutionManagement {
    repositories {
        mavenCentral()
    }
}

android {
    kotlinOptions {
        jvmTarget = "17"
    }
    compileOptions {
        sourceCompatibility = JavaVersion.VERSION_17
        targetCompatibility = JavaVersion.VERSION_17
    }
}

dependencies {
    implementation("com.composables:composeunstyled:2.9.2")
}

Modules

Compose Unstyled is modular. Add focused modules when you do not need the full dependency.

If you need Add
All components and theming APIs composeunstyled
Every unstyled component composeunstyled-primitives
Theming APIs composeunstyled-theming
Specific components, such as Button composeunstyled-button
Opinionated themes per platform composeunstyled-platformtheme

Replace composeunstyled in Quick Start with the dependencies that fit your app.

implementation("com.composables:composeunstyled-button:2.9.2")
implementation("com.composables:composeunstyled-text-field:2.9.2")
implementation("com.composables:composeunstyled-theming:2.9.2")