AtomUI/AtomUI
Acerca de
Una biblioteca que amplía y mejora Avalonia, y aporta a las aplicaciones de escritorio .NET el lenguaje de diseño de Ant Design, controles modernos, temas, integraciones nativas y compatibilidad con interfaces multiplataforma.
Desarrollo web y de aplicacionesWhat you can do
- Ant Design 6 experience adapted for native Avalonia desktop applications.
- A broad set of ready-to-use controls for enterprise software, including layout, navigation, data entry, feedback, data display and optional advanced packages.
- Token-driven theming built on Avalonia's style and resource system, with support for consistent customization across controls.
- Cross-platform desktop support for Windows, macOS and Linux with a shared .NET/XAML development model.
Crecimiento de estrellas medido
- in 24h
- +1
- in 7 days
- +3
- in 15 days
- +8
- in 1 month
- Recopilando historial
Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.
README.md
Original

Documentation Language: English | 简体中文
Overview
AtomUI is an Ant Design 6 component system for Avalonia/.NET desktop applications. It brings Ant Design's enterprise interaction patterns, visual language, design tokens and theme customization model to native cross-platform apps on Windows, macOS and Linux.
The project includes production-oriented desktop controls, icon packages, font packages, native window integration, DataGrid, ColorPicker and source generators for custom controls, tokens and localization. Feedback, issues and pull requests are welcome.
Features
- Ant Design 6 experience adapted for native Avalonia desktop applications.
- A broad set of ready-to-use controls for enterprise software, including layout, navigation, data entry, feedback, data display and optional advanced packages.
- Token-driven theming built on Avalonia's style and resource system, with support for consistent customization across controls.
- Cross-platform desktop support for Windows, macOS and Linux with a shared .NET/XAML development model.
- Source generators for custom controls, theme tokens and localization to reduce repetitive infrastructure code.
Requirements
.NET 8, .NET 10 and .NET 11 (NuGet packages ship net8.0 / net10.0 / net11.0)
Avalonia 12.2.0
Windows, macOS 12 or later, and Linux
Building from source requires .NET SDK 10.0.300 or later (SDK 11 included); packing the three Release target
frameworks requires SDK 11. Building the browser Gallery links SkiaSharp and HarfBuzz natively, so it needs the
WebAssembly workload for the active SDK: wasm-tools on SDK 10, wasm-tools-net10 on SDK 11. Without it the build
only warns that NativeFileReference won't be linked, and the resulting app cannot render.
Trimmed and AOT publishing follows the SDK-selected official ILLink, ILC and WASM toolchain, without SDK or servicing-version allowlists: TypeMap and the net8-only package compatibility bridge target .NET 10 and later, and the net8 trimming and NativeAOT backends accept the official 8.x engines. Publish checks validate the converted maps and consumed outputs.
Latest Release Notes
AtomUI 6.3.1 adds scoped control themes, design-language interaction effects, and DataGrid row spacing and body padding. It also improves theme contrast and updates to Avalonia 12.2.0. Applications upgrading from 6.3.0 should review the FlexPanel, TabStrip, theme, and motion changes before rebuilding. Migration guide · Changelog
Incubator
Thanks to Tongming Lake Center for their incubation support of AtomUI OSS
Community
| Telegram | WeChat Group | QQ Group | |
|---|---|---|---|
|
|
![]() |
![]() |
Get Started
Add NuGet packages
For an Avalonia desktop application using Ant Design, install AtomUI.Desktop.Controls.Themes.AntDesign. It brings in
the desktop controls and the Ant Design design language. Add DataGrid, ColorPicker and Extras as needed.
The following packages are available on NuGet.
| Package | Description |
|---|---|
| AtomUI.Native | Native platform infrastructure |
| AtomUI.Core | Core infrastructure — theme system, token system and animations |
| AtomUI.Icons.Shared | Icon infrastructure |
| AtomUI.Icons.AntDesign | Ant Design icon package |
| AtomUI.Controls.Shared | Shared interfaces and enums for control development |
| AtomUI.Controls | Base controls and shared control capabilities |
| AtomUI.Desktop.Controls | Desktop control library — the main package |
| AtomUI.Desktop.Controls.Themes.AntDesign | Ant Design values for the desktop controls |
| AtomUI.Desktop.Controls.DataGrid | DataGrid control (opt-in) |
| AtomUI.Desktop.Controls.ColorPicker | ColorPicker control (opt-in) |
| AtomUI.Desktop.Controls.Extras | Supplemental desktop controls (opt-in) |
| AtomUI.Generator | Source generators for custom controls, tokens and localization |
dotnet add package AtomUI.Desktop.Controls.Themes.AntDesign --version 6.3.1
You can also install the packages from your IDE's NuGet package manager. In Rider, open:
NuGet -> Packages
Search for "AtomUI" and install the packages your project needs.
Before installation, check "Frameworks" and "Dependencies" in the package details to confirm compatibility with your target framework and Avalonia version.
Enable AtomUI library
Project Configure
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net10.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<BuiltInComInteropSupport>true</BuiltInComInteropSupport>
<ApplicationManifest>app.manifest</ApplicationManifest>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="AtomUI.Desktop.Controls.Themes.AntDesign" Version="6.3.1"/>
<PackageReference Include="AvaloniaUI.DiagnosticsSupport" Version="2.2.1"/>
<PackageReference Include="AtomUI.Fonts.AlibabaSans" Version="6.3.2"/>
</ItemGroup>
</Project>
The setup below explicitly references Alibaba Sans from the independent AtomUI.Fonts repository.
Program.cs Configure
Enable AtomUI on the AppBuilder chain and replace MyApp with your project's namespace.
using Avalonia;
using System;
using AtomUI;
using AtomUI.DesignLanguages.AntDesign;
using AtomUI.Desktop.Controls;
using AtomUI.Fonts.AlibabaSans;
using AtomUI.Localization;
using AtomUI.Theme;
namespace MyApp;
internal class Program
{
[STAThread]
public static void Main(string[] args) => BuildAvaloniaApp()
.StartWithClassicDesktopLifetime(args);
public static AppBuilder BuildAvaloniaApp()
{
return AppBuilder.Configure<App>()
.UseAtomUIPlatformDetect()
.WithAtomUIDefaultOptions()
.WithFontAlibabaSans()
.UseAtomUI(builder =>
{
builder.UseLanguages(
LanguageTags.EnUS,
[LanguageTags.EnUS, LanguageTags.ZhCN, LanguageTags.ZhTW]);
builder.UseDesktopControls();
builder.UseAntDesign(static ant => ant.WithDefaultTheme(AntDesignThemes.DaybreakBlue));
})
.WithDeveloperTools()
.LogToTrace();
}
}
Declare the Application Class as partial
The AtomUI generator hooks the partial application class into startup, so AtomUI is ready before Initialize() runs.
Keep your existing OnFrameworkInitializationCompleted() override to create the main window.
using Avalonia;
using Avalonia.Markup.Xaml;
namespace MyApp;
public partial class App : Application
{
public override void Initialize() => AvaloniaXamlLoader.Load(this);
}
To start in dark mode, also set the initial selection inside the UseAtomUI callback.
builder.WithInitialTheme(
ThemeSelection.Of<AntDesignLanguage>().WithAppearance(ThemeAppearance.Dark));
Use IThemeManager.ApplyAsync to change the selection at runtime. See the startup guide
to add a splash screen.
Add optional controls
Install the package at the same AtomUI version and add the matching call inside UseAtomUI.
| Controls | NuGet package | Startup call |
|---|---|---|
| DataGrid | AtomUI.Desktop.Controls.DataGrid.Themes.AntDesign |
builder.UseDesktopDataGrid(); |
| ColorPicker | AtomUI.Desktop.Controls.ColorPicker.Themes.AntDesign |
builder.UseDesktopColorPicker(); |
| Extras | AtomUI.Desktop.Controls.Extras |
builder.UseDesktopExtras(); |
At startup, AtomUI matches the referenced Ant Design value packages to the enabled controls. See the design language guide for details.
Start building with AtomUI
After AtomUI is registered, you can use AtomUI controls and Ant Design icons directly in XAML.
<atom:Window xmlns="https://github.com/avaloniaui"
xmlns:atom="https://atomui.net"
xmlns:antdicons="https://atomui.net/icons/antdesign">
<atom:Space Orientation="Horizontal">
<atom:Button ButtonType="Primary">Get Started</atom:Button>
<atom:Button Icon="{antdicons:AntDesignIconProvider StarOutlined}">Star on GitHub</atom:Button>
</atom:Space>
</atom:Window>
All Control Gallery
You can launch the gallery project locally to browse the available controls, usage patterns, examples and generated documentation.
To run the Gallery in an IDE, open AtomUI.slnx, expand the Gallery solution folder, and set
AtomUIGallery.Desktop as the startup project.
git clone https://github.com/AtomUI/AtomUI.git
cd AtomUI
dotnet run --project controlgallery/AtomUIGallery.Desktop/AtomUIGallery.Desktop.csproj
Simple Examples
The gallery is intentionally comprehensive. If you prefer compact starter projects, visit:
These samples show smaller application setups that are easier to copy into a new project.
Sponsors
SophNet provides an AI model API platform for stable, efficient model integration. |
HSY provides cloud servers, DDoS protection and GPU compute services for secure business cloud deployment. |
Acknowledgements
Ant Design
Avalonia OSS
License Description
Projects using AtomUI OSS must comply with LGPL v3. Commercial applications, including internal company software, personal commercial products and outsourced projects, may use AtomUI for free when linking to the published binaries. If you customize AtomUI from source code, you must either open source the modified code under the license terms or purchase a commercial license. For commercial licensing, contact Beijing Qinware Technology Co., Ltd.
🤝 Contributing
Contributions of all types are more than welcome, if you are interested in contributing code, feel free to check out our GitHub Issues to get stuck in to show us what you’re made of.
Explorar proyectos relacionados
Cargando…

