FlatLaf - Flat Look and Feel

FlatLaf is a modern open-source cross-platform Look and Feel for Java Swing desktop applications.

It looks almost flat (no shadows or gradients), clean, simple and elegant. FlatLaf comes with Light, Dark, IntelliJ and Darcula themes, scales on HiDPI displays and runs on Java 8 or newer.

The look is heavily inspired by Darcula and IntelliJ themes from IntelliJ IDEA 2019.2+ and uses almost the same colors and icons.

  • Flat Light
    Flat Light
  • Flat Dark
    Flat Dark
  • Flat Light
    Flat Light
  • Flat Dark
    Flat Dark
  • Flat Light
    Flat Light
  • Flat Dark
    Flat Dark
  • Flat IntelliJ
    Flat IntelliJ
  • Flat Darcula
    Flat Darcula


  • Light, Dark, IntelliJ and Darcula themes
  • can use 3rd party themes developed for IntelliJ Platform
  • scales on HiDPI displays
  • cross-platform
  • high quality
  • lightweight (about 500 KB; no dependencies)
  • minimalistic, elegant and modern
  • scalable vector icons
  • discreet hover effects
  • outer or inner focused border
  • customizable
  • custom window decorations with embedded menu bar (Window 10 only)
  • runs on Java 8 or newer
  • Java 9 module (module name is com.formdev.flatlaf)
  • macOS platform specific key bindings
  • GUI builder friendly
  • MigLayout compatible


Download Demo

Run demo with java -jar flatlaf-demo-<version>.jar (or double-click it). Requires Java 8 or newer.


FlatLaf binaries are available on Maven Central.

If you use Maven or Gradle, add a dependency with following coordinates to your build script:

groupId:     com.formdev
artifactId:  flatlaf
version:     (see button below)

Otherwise download flatlaf-<version>.jar here:

Maven Central

Getting started

To enable FlatLaf, add following code to your main method before you create any Swing component:


// create UI here...


try {
    UIManager.setLookAndFeel( new FlatLightLaf() );
} catch( Exception ex ) {
    System.err.println( "Failed to initialize LaF" );

// create UI here...


See Themes page.


See Customizing page.


FlatLaf is open source licensed under the Apache 2.0 License

FlatLaf documentation on this website is Copyright © 2019-2021 FormDev Software GmbH. All rights reserved. Any other use or reproduction requires written consent of FormDev Software GmbH.

Source code

The FlatLaf source code is hosted on GitHub:


Please report issues on GitHub: