Slint is an open-source declarative GUI toolkit to build native user interfaces for Rust, C++, JavaScript, or Python apps.
Find a file
dependabot[bot] 9a0390ea07
Some checks are pending
CI / mcu (pico-st7789, thumbv6m-none-eabi) (push) Blocked by required conditions
CI / files-changed (push) Waiting to run
CI / build_and_test (--exclude ffmpeg --exclude gstreamer-player, macos-14, stable) (push) Blocked by required conditions
CI / python_test (windows-2022) (push) Blocked by required conditions
CI / build_and_test (--exclude ffmpeg --exclude gstreamer-player, windows-2022, 1.85) (push) Blocked by required conditions
CI / build_and_test (--exclude ffmpeg --exclude gstreamer-player, windows-2022, beta) (push) Blocked by required conditions
CI / build_and_test (--exclude ffmpeg --exclude gstreamer-player, windows-2022, stable) (push) Blocked by required conditions
CI / build_and_test (ubuntu-22.04, 1.85) (push) Blocked by required conditions
CI / build_and_test (ubuntu-22.04, nightly) (push) Blocked by required conditions
CI / node_test (macos-14) (push) Blocked by required conditions
CI / node_test (ubuntu-22.04) (push) Blocked by required conditions
CI / node_test (windows-2022) (push) Blocked by required conditions
CI / python_test (macos-14) (push) Blocked by required conditions
autofix.ci / format_fix (push) Waiting to run
autofix.ci / lint_typecheck (push) Waiting to run
CI / mcu-embassy (push) Blocked by required conditions
CI / python_test (ubuntu-22.04) (push) Blocked by required conditions
CI / cpp_test_driver (macos-13) (push) Blocked by required conditions
CI / cpp_test_driver (ubuntu-22.04) (push) Blocked by required conditions
CI / cpp_test_driver (windows-2022) (push) Blocked by required conditions
CI / cpp_cmake (macos-14, 1.85) (push) Blocked by required conditions
CI / cpp_cmake (ubuntu-22.04, stable) (push) Blocked by required conditions
CI / cpp_cmake (windows-2022, nightly) (push) Blocked by required conditions
CI / cpp_package_test (push) Blocked by required conditions
CI / vsce_build_test (push) Blocked by required conditions
CI / mcu (pico2-st7789, thumbv8m.main-none-eabihf) (push) Blocked by required conditions
CI / mcu (stm32h735g, thumbv7em-none-eabihf) (push) Blocked by required conditions
CI / ffi_32bit_build (push) Blocked by required conditions
CI / docs (push) Blocked by required conditions
CI / wasm (push) Blocked by required conditions
CI / wasm_demo (push) Blocked by required conditions
CI / tree-sitter (push) Blocked by required conditions
CI / updater_test (0.3.0) (push) Blocked by required conditions
CI / fmt_test (push) Blocked by required conditions
CI / esp-idf-quick (push) Blocked by required conditions
CI / android (push) Blocked by required conditions
CI / miri (push) Blocked by required conditions
CI / test-figma-inspector (push) Blocked by required conditions
build(deps-dev): bump cspell from 9.1.2 to 9.1.3 (#8860)
Bumps [cspell](https://github.com/streetsidesoftware/cspell/tree/HEAD/packages/cspell) from 9.1.2 to 9.1.3.
- [Release notes](https://github.com/streetsidesoftware/cspell/releases)
- [Changelog](https://github.com/streetsidesoftware/cspell/blob/main/packages/cspell/CHANGELOG.md)
- [Commits](https://github.com/streetsidesoftware/cspell/commits/v9.1.3/packages/cspell)

---
updated-dependencies:
- dependency-name: cspell
  dependency-version: 9.1.3
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-07-07 20:09:14 +03:00
.cargo windows: Use a default stack size of 8MB (#8711) 2025-06-16 15:27:34 +02:00
.github build(deps): bump esp-rs/xtensa-toolchain in the github-actions group (#8864) 2025-07-07 13:28:41 +03:00
.mise chore: Update pnpm 2025-06-06 18:44:32 +02:00
.vscode Fix VS code warning about recommended extensions 2022-06-07 16:13:30 +02:00
api Updgrade Catch2 dependency (#8846) 2025-07-05 08:54:24 +02:00
cmake Simplify commercial license (#3063) 2024-05-31 14:06:17 +02:00
demos Examples/Demos: fix warning about unused padding 2025-07-04 18:35:52 +02:00
docker embedded ci: Fix failing docker container builder 2025-04-23 08:16:10 +02:00
docs build(deps-dev): bump cspell from 9.1.2 to 9.1.3 (#8860) 2025-07-07 20:09:14 +03:00
editors build(deps): bump @biomejs/biome from 2.0.5 to 2.0.6 (#8810) 2025-06-30 21:32:18 +03:00
examples Updgrade Catch2 dependency (#8846) 2025-07-05 08:54:24 +02:00
helper_crates Rust: fix compilation if the slint code declares struct named core 2025-06-30 13:36:01 +02:00
internal live-reload: watch the parent directory instead of the files 2025-07-07 13:38:29 +02:00
LICENSES Update LicenseRef-Slint-Software-3.0.md 2025-06-11 12:37:03 +02:00
logo Simplify commercial license (#3063) 2024-05-31 14:06:17 +02:00
scripts Fix re-deployment to devices by forcing code-signing 2025-05-20 11:07:19 +02:00
tests Menu: avoid using padding properties (#8847) 2025-07-04 16:42:59 +02:00
tools build(deps-dev): bump vite from 7.0.0 to 7.0.2 (#8862) 2025-07-07 15:15:31 +03:00
xtask docs.slint.dev google search results missing favicon (#8841) 2025-07-03 15:33:44 +03:00
.clang-format Simplify commercial license (#3063) 2024-05-31 14:06:17 +02:00
.clippy.toml Simplify commercial license (#3063) 2024-05-31 14:06:17 +02:00
.dockerignore Add binaries for our Rust demos in a Torizon container 2023-01-04 17:24:11 +01:00
.gitattributes Add a .gitattributes to rust diff looks better 2020-12-08 16:40:55 +01:00
.gitignore infra: Test out mise 2025-03-20 16:33:00 +01:00
.mailmap Update .mailmap to use the slint.dev domain 2023-08-02 08:57:55 +02:00
.npmrc Replace npm with pnpm 2024-10-07 15:38:26 +03:00
.taplo.toml Remormat all the toml file again to fix npm upload 2025-04-09 15:06:00 +02:00
about.toml Remormat all the toml file again to fix npm upload 2025-04-09 15:06:00 +02:00
biome.json Update to Biome 2.0 (#8730) 2025-06-19 21:38:30 +03:00
Cargo.toml Update MSRV to 1.85 2025-06-26 22:50:15 +02:00
CHANGELOG.md Node.JS: Fixed panic when converting brushes to colors 2025-07-02 09:13:42 +02:00
CMakeLists.txt 1.9 Organise docs folder. (#7005) 2024-12-05 15:40:04 +02:00
CONTRIBUTING.md Fix typos (#8421) 2025-05-12 13:03:59 +02:00
Cross.toml Remormat all the toml file again to fix npm upload 2025-04-09 15:06:00 +02:00
cspell.json doc: Start a best practices page 2025-06-30 11:51:16 +02:00
FAQ.md Update License related info in FAQ and README 2024-06-01 02:39:33 +02:00
LICENSE.md Update LICENSE.md 2025-06-05 05:16:20 +02:00
package.json Bump version number to 1.13.0 2025-06-26 13:30:43 +00:00
pnpm-lock.yaml build(deps-dev): bump cspell from 9.1.2 to 9.1.3 (#8860) 2025-07-07 20:09:14 +03:00
pnpm-workspace.yaml Simple Figma attributes inspector plugin (#7446) 2025-01-24 13:10:00 +02:00
README.md Python: Make space for additional python modules 2025-06-25 20:43:09 +02:00
REUSE.toml docs.slint.dev google search results missing favicon (#8841) 2025-07-03 15:33:44 +03:00
rustfmt.toml Move slint-fmt into slint-lsp 2024-02-06 13:47:06 +01:00
SECURITY.md Add security policy (#7044) 2024-12-10 10:38:28 +01:00

Slint Slint

Build Status REUSE status Discussions

Slint is an open-source declarative GUI toolkit for building native user interfaces for embedded systems, desktops, and mobile platforms.

Write your UI once in .slint, a simple markup language. Connect it to business logic written in Rust, C++, JavaScript, or Python.

Why Slint?

The name Slint is derived from our design goals:

  • Scalable: Slint should support responsive UI design, allow cross-platform usage across operating systems and processor architectures and support multiple programming languages.
  • Lightweight: Slint should require minimal resources, in terms of memory and processing power, and yet deliver a smooth, smartphone-like user experience on any device.
  • Intuitive: Designers and developers should feel productive while enjoying the GUI design and development process. The design creation tools should be intuitive to use for the designers. Similarly for the developers, the APIs should be consistent and easy to use, no matter which programming language they choose.
  • Native: GUI built with Slint should match the end users' expectations of a native application irrespective of the platform - desktop, mobile, web or embedded system. The UI design should be compiled to machine code and provide flexibility that only a native application can offer: Access full operating system APIs, utilize all CPU and GPU cores, connect to any peripheral.

Beyond the design goals, heres what makes Slint stand out:

  • Independent UI Design: Use a declarative language similar to separate your UI from business logic. Designers can work in parallel with developers.
  • Tooling: Iterate quickly with our Live Preview & editor integrations. Integrate from Figma with the Slint To Figma plugin.
  • Stable APIs: Slint follows a stable 1.x API. We evolve carefully without breaking your code.

See what others have built: #MadeWithSlint

Examples

Embedded

RaspberryPi STM32 RP2040
Video of Slint on Raspberry Pi Video of Slint on STM32 Video of Slint on RP2040

Desktop

Windows macOS Linux
Screenshot of the Gallery on Windows Screenshot of the Gallery on macOS Screenshot of the Gallery on Linux

Web using WebAssembly

Printer Demo Slide Puzzle Energy Monitor Widget Gallery Weather demo
Screenshot of the Printer Demo Screenshot of the Slide Puzzle Screenshot of the Energy Monitor Demo Screenshot of the Gallery Demo Screenshot of the weather Demo

More examples and demos in the examples folder

Get Started

Hello World

The UI is defined in a Domain Specific Language that is declarative, easy to use, intuitive, and provides a powerful way to describe graphical elements, their placement, their hierarchy, property bindings, and the flow of data through the different states.

Here's the obligatory "Hello World":

export component HelloWorld inherits Window {
    width: 400px;
    height: 400px;

    Text {
       y: parent.width / 2;
       x: parent.x + 200px;
       text: "Hello, world";
       color: blue;
    }
}

Documentation

For more details, check out the Slint Language Documentation.

The examples folder contains examples and demos, showing how to use the Slint markup language and how to interact with a Slint user interface from supported programming languages.

The docs folder contains a lot more information, including build instructions, and internal developer docs.

Refer to the README of each language directory in the api folder:

Architecture

An application is composed of the business logic written in Rust, C++, or JavaScript and the .slint user interface design markup, which is compiled to native code.

Architecture Overview

Compiler

The .slint files are compiled ahead of time. The expressions in the .slint are pure functions that the compiler can optimize. For example, the compiler could choose to "inline" properties and remove those that are constant or unchanged.

The compiler uses the typical compiler phases of lexing, parsing, optimization, and finally code generation. It provides different back-ends for code generation in the target language. The C++ code generator produces a C++ header file, the Rust generator produces Rust code, and so on. An interpreter for dynamic languages is also included.

Runtime

The runtime library consists of an engine that supports properties declared in the .slint language. Components with their elements, items, and properties are laid out in a single memory region, to reduce memory allocations.

Rendering backends and styles are configurable at compile time:

  • The femtovg renderer uses OpenGL ES 2.0 for rendering.
  • The skia renderer uses Skia for rendering.
  • The software renderer uses the CPU with no additional dependencies.

NOTE: When Qt is installed on the system, the qt style becomes available, using Qt's QStyle to achieve native looking widgets.

Tooling

We have a few tools to help with the development of .slint files:

  • A LSP Server that adds features like auto-complete and live preview of the .slint files to many editors.
  • It is bundled in a Visual Studio Code Extension available from the market place.
  • A slint-viewer tool which displays the .slint files. The --auto-reload argument makes it easy to preview your UI while you are working on it (when using the LSP preview is not possible).
  • SlintPad, an online editor to try out .slint syntax without installing anything (sources).
  • A Figma to Slint plugin.

Please check our Editors README for tips on how to configure your favorite editor to work well with Slint.

License

You can use Slint under any of the following licenses, at your choice:

  1. Build proprietary desktop, mobile, or web applications for free with the Royalty-free License,
  2. Build open source embedded, desktop, mobile, or web applications for free with the GNU GPLv3,
  3. Build proprietary embedded, desktop, mobile, or web applications with the Paid license.

See the Slint licensing options on the website and the Licensing FAQ.

Contributions

We welcome your contributions: in the form of code, bug reports or feedback. For contribution guidelines see CONTRIBUTING.md.

Frequently Asked Questions

Please see our separate FAQ.

About us (SixtyFPS GmbH)

We are passionate about software - API design, cross-platform software development and user interface components. Our aim is to make developing user interfaces fun for everyone: from Python, JavaScript, C++, or Rust developers all the way to UI/UX designers. We believe that software grows organically and keeping it open source is the best way to sustain that growth. Our team members are located remotely in Germany, Finland, and US.

Stay up to date

Contact us

Feel free to join Github discussions for general chat or questions. Use Github issues to report public suggestions or bugs.

We chat in our Mattermost instance where you are welcome to listen in or ask your questions.

You can of course also contact us privately via email to info@slint.dev.