Skip to content

kdroidFilter/ComposeDarwinUi

Repository files navigation

Compose Darwin UI

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.

Kotlin Compose Multiplatform License: GPL v3 Commercial License

Documentation & Live Demo

Features

  • 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

Supported Platforms

Platform Status
Android
iOS
Desktop (JVM)
Web (JS)
Web (Wasm)

Quick Start

1. Add the dependency

// build.gradle.kts
kotlin {
    sourceSets {
        commonMain.dependencies {
            implementation("io.github.kdroidfilter:compose-darwin-ui:<version>")
        }
    }
}

2. Wrap your app with DarwinTheme

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.
    }
}

3. Use components

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.

License

Compose Darwin UI is available under a dual license:

Open Source — GPL v3

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.

Commercial License — $20

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.

About

Compose Multiplatform UI library with macOS-inspired components, theming, and light/dark mode support.

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors