A Compose Multiplatform adaptation of Darwin UI, a macOS-inspired React component library by Suraj Mandal. This port brings the same design language to Android, iOS, Desktop, and Web through Compose Multiplatform.
- 30+ components — Buttons, Cards, Dialogs, Tables, Toasts, and more
- Light & Dark mode — Theme-aware styling with automatic system detection
- macOS aesthetic — Clean, native-feeling design inspired by Apple's design language
- Compose Multiplatform — Runs on Android, iOS, Desktop (JVM), and Web (JS/Wasm)
- Built-in design system — Colors, typography (Manrope), shapes, and animations out of the box
- No external UI dependencies — Pure Compose, no Material dependency required
| Platform | Status |
|---|---|
| Android | ✓ |
| iOS | ✓ |
| Desktop (JVM) | ✓ |
| Web (JS) | ✓ |
| Web (Wasm) | ✓ |
// build.gradle.kts
kotlin {
sourceSets {
commonMain.dependencies {
implementation("io.github.kdroidfilter:compose-darwin-ui:<version>")
}
}
}import io.github.kdroidfilter.darwinui.theme.DarwinTheme
@Composable
fun App() {
DarwinTheme(darkTheme = false) {
// Your content here
// Access design tokens via DarwinTheme.colors, DarwinTheme.typography, etc.
}
}import io.github.kdroidfilter.darwinui.components.*
@Composable
fun MyScreen() {
Card {
CardHeader {
CardTitle("Welcome")
CardDescription("A macOS-inspired component library")
}
CardContent {
PrimaryButton(
onClick = { /* ... */ },
) {
Text("Get Started")
}
}
}
}For the full component catalog, API details, and interactive demos, visit the documentation.
Compose Darwin UI is available under a dual license:
Free for open-source projects. If your project is distributed under a GPL-compatible license, you can use Compose Darwin UI at no cost under the terms of the GNU General Public License v3.0.
For proprietary/closed-source projects, a commercial license is available for $20 (one-time payment). This license covers usage in up to 5 commercial projects.
To purchase a commercial license, contact me privately via email or open an issue on the repository.