Miuix is a shared UI library for Compose Multiplatform.
Now Supported: Android / Desktop(JVM) / iOS / WasmJs / Js / macOS(Native).
This library is experimental, any API would be changed in the future without any notification.
kotlin {
sourceSets {
commonMain.dependencies {
implementation("top.yukonga.miuix.kmp:miuix:<version>")
// Other dependencies...
}
// Other sourceSets...
}
// Other configurations...
}
- Direct colors: provide a color scheme to
MiuixTheme(colors = ...), e.g. built-inlightColorScheme()/darkColorScheme().
@Composable
fun AppWithColors() {
val colors = lightColorScheme()
MiuixTheme(colors = colors) { /* Content */ }
}
- Controller-based: control modes via
ThemeControllerand enable Monet dynamic colors; passkeyColorto set a custom seed color.
@Composable
fun AppWithMonet() {
val controller = remember {
ThemeController(
ColorSchemeMode.MonetSystem,
keyColor = Color(0xFF3482FF)
)
}
MiuixTheme(controller = controller) { /* Content */ }
}
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |





