Lumi 0.2.0-preview.2
This is a prerelease version of Lumi.
There is a newer prerelease version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Lumi --version 0.2.0-preview.2
NuGet\Install-Package Lumi -Version 0.2.0-preview.2
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Lumi" Version="0.2.0-preview.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Lumi" Version="0.2.0-preview.2" />
<PackageReference Include="Lumi" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Lumi --version 0.2.0-preview.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Lumi, 0.2.0-preview.2"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Lumi@0.2.0-preview.2
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Lumi&version=0.2.0-preview.2&prerelease
#tool nuget:?package=Lumi&version=0.2.0-preview.2&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Lumi
A native C# GUI framework that uses HTML and CSS as the authoring syntax, rendered via SkiaSharp.
Write desktop UI with HTML for structure and CSS for styling, while rendering everything natively through Skia. The result is a lightweight, fast, single-process desktop application with no web runtime overhead.
Quick Start
dotnet new install Lumi.Templates
dotnet new lumi -n MyApp
cd MyApp
dotnet run
Features
- HTML Templates — Define UI structure using standard HTML markup
- CSS Styling — Full cascade, specificity, inheritance, 86 properties, CSS variables
- Native Rendering — SkiaSharp paints every pixel; no browser, no WebView
- Flexbox Layout — Facebook Yoga powers the layout engine
- SDL3 Windowing — Cross-platform window management and input
- Data Binding — One-way, two-way, and one-time binding to
INotifyPropertyChangedview models - Components — Button, Checkbox, Slider, Dialog, Dropdown, TextBox, List
- Animations — Fluent tween API with easing functions + CSS transitions
- Hot Reload — Live HTML/CSS editing with instant refresh
- Inspector — Press F12 for a DevTools-style box model overlay
Example
using Lumi;
LumiApp.Run(new MainWindow());
public class MainWindow : Window
{
public MainWindow()
{
Title = "MyApp";
Width = 960;
Height = 680;
var dir = AppContext.BaseDirectory;
LoadTemplate(Path.Combine(dir, "MainWindow.html"));
LoadStyleSheet(Path.Combine(dir, "MainWindow.css"));
}
}
Prerequisites
- .NET 10 SDK or later
Learn More
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- AngleSharp (>= 1.4.0)
- HarfBuzzSharp (>= 8.3.1.3)
- ppy.SDL3-CS (>= 2026.320.0)
- SkiaSharp (>= 3.119.2)
- SkiaSharp.NativeAssets.Win32 (>= 3.119.2)
- Yoga-CS (>= 1.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.3.0-preview.2 | 65 | 4/19/2026 |
| 0.3.0-preview.1.1 | 66 | 4/13/2026 |
| 0.3.0-preview.1 | 79 | 4/12/2026 |
| 0.2.0-preview.3 | 64 | 4/8/2026 |
| 0.2.0-preview.2 | 53 | 4/8/2026 |