Skip to content

Konyaco/compose-fluent-ui

Repository files navigation

Compose Fluent

License Version Maven Central

Fluent Design UI library for Compose Multiplatform

Example

Current Status

This library is experimental, any API would be changed in the future without any notification.

Please note that there are lots of hard-coding and workarounds in our source code, which we plan to eliminate in the future.

Thank you for using our library. We look forward to receiving your feedback and contributions!

Quick Start

Add Dependency

implementation("com.konyaco:fluent:0.0.1-dev.7")
implementation("com.konyaco:fluent-icons-extended:0.0.1-dev.7") // If you want to use full fluent icons.

Example

import com.konyaco.fluent.component.*

@Composable
fun App() {
  FluentTheme {
    Mica(Modifier.fillMaxSize()) {
      Column(Modifier.padding(24.dp)) {
        Button(onClick = {}) {
          Text("Hello Fluent Design")
        }
      }
    }
  }
}

See gallery module for more details.

  • FluentTheme() is the context and entry point of the application, just like MaterialTheme
  • Components are under component package
  • Mica and Layer are under background package

License

This library is under Apache-2.0 license.

The copyright of the icon assets (in com.konyaco.fluent.icons package) belongs to Microsoft.

Components

Layers

  • Mica
    • Simple Mica
    • Real Mica
  • Layer
    • Simple Layer
    • Real Layer
  • Acrylic

Basic Inputs

  • Button
  • ToggleSwitch
  • CheckBox
  • RadioButton
  • Slider
  • DropdownMenu
  • TextField
  • ProgressBar
  • ProgressRing
  • Pill Button
  • ComboBox
  • RatingControl

Basic Components

  • Tooltip
  • InfoBar
  • FilePicker
  • Menu

Dialogs

  • Simple Dialog
  • Compound Dialog (Title, Content, Controls)
  • Flyout

Animations

  • Animation Preset Constants (Duration, Easing Functions)

Theme

  • Light and Dark theme
  • Custom accent color

Compound Components

  • Color Picker
  • DateTime Picker
  • Calender
  • Navigation
    • SideNav
    • BreadcrumbBar
    • Pivot
    • TabView

TODO

  • Accessibility Semantics