# AtomUI **Repository Path**: chinware/atomui ## Basic Information - **Project Name**: AtomUI - **Description**: AtomUI 是基于 .NET 技术的 Ant Design 实现,致力于将 Ant Design 优秀高效的设计语言和体验带到 Avalonia/.NET 跨平台桌面软件研发领域。 - **Primary Language**: C# - **License**: LGPL-3.0 - **Default Branch**: release/5.0 - **Homepage**: None - **GVP Project**: Yes ## Statistics - **Stars**: 604 - **Forks**: 84 - **Created**: 2024-07-29 - **Last Updated**: 2025-11-25 ## Categories & Tags **Categories**: desktop-ui **Tags**: Avalonia, dotNET, Ant-Design ## README
[![AntDesign](https://img.shields.io/badge/AntDesign%20-5.0-1677ff?style=flat-square&logo=antdesign)](https://ant-design.antgroup.com/components/overview-cn) [![Nuget Download](https://img.shields.io/nuget/dt/AtomUI?style=flat-square&logo=nuget&label=downloads)](https://www.nuget.org/packages/AtomUI) [![][github-license-shield]][github-license-link] [更新日志](./CHANGELOG.md) · [提交Bug][github-issues-link] · [提交需求][github-issues-link]
![](https://raw.githubusercontent.com/andreasbm/readme/master/assets/lines/rainbow.png) [github-release-shield]: https://img.shields.io/github/v/release/chinware/AtomUI?color=369eff&labelColor=black&logo=github&style=flat-square [github-release-link]: https://github.com/chinware/AtomUI/releases [github-releasedate-shield]: https://img.shields.io/github/release-date/chinware/AtomUI?color=black&labelColor=black&style=flat-square [github-releasedate-link]: https://github.com/chinware/AtomUI/releases [github-contributors-shield]: https://img.shields.io/github/contributors/chinware/AtomUI?color=c4f042&labelColor=black&style=flat-square [github-contributors-link]: https://github.com/chinware/AtomUI/graphs/contributors [github-forks-shield]: https://img.shields.io/github/forks/chinware/AtomUI?color=8ae8ff&labelColor=black&style=flat-square [github-forks-link]: https://github.com/chinware/AtomUI/network/members [github-stars-shield]: https://img.shields.io/github/stars/chinware/AtomUI?color=ffcb47&labelColor=black&style=flat-square [github-stars-link]: https://github.com/chinware/AtomUI/network/stargazers [github-issues-shield]: https://img.shields.io/github/issues/chinware/AtomUI?color=ff80eb&labelColor=black&style=flat-square [github-issues-link]: https://github.com/chinware/AtomUI/issues [github-license-shield]: https://img.shields.io/github/license/chinware/AtomUI?color=white&labelColor=black&style=flat-square [github-license-link]: https://github.com/chinware/AtomUI/blob/master/LICENSE 文档语言: [English](README.md) | [简体中文](README.zh-CN.md) #### Gitee 2025 年度开源项目评选 研发基础软件过程异常枯燥,各位开发者朋友,如果您有 Gitee 账户,辛苦给 AtomUI OSS 投下宝贵一票,因为我们项目也是免费商用,赋能中小企业数字化转型,您宝贵的投票就是我们前进的动力。 [点击投票](https://gitee.com/activity/2025opensource?ident=IAHHVA) #### 介绍 AtomUI 是基于 .NET 技术的 Ant Design 实现,致力于将 Ant Design 优秀而高效的设计语言和体验带入 Avalonia/.NET 跨平台桌面软件开发领域。 欢迎与 AtomUI 进行交流并提出建议,感谢您为该项目点赞。 #### 特性 - 实现 Ant Design 提炼自企业级中后台产品的交互语言和视觉风格。 - 开箱即用的高质量 Avalonia 组件。 - 使用 .NET 开发,实现一处编写,无缝在主流操作系统平台编译并且渲染出一致的 UI 体验。 - 基于 Avalonia 强大的风格系统,完整实现了 Ant Design 的主题定制能力。 #### 运行环境 .NET 8 及其以上
Avalonia 11.1.1 及其以上
PS: AtomUI 目前仅在 Windows 11 平台测试
#### 感谢 Gitee 对 AtomUI 的认可

#### 中文社区 目前我们暂时只创建 QQ 和微信开发者群的交流方式,下面是二维码,有兴趣的同学可以扫码加入:
> PS:扫码请注明来意,比如:学习`AtomUI`或者`Avalonia`爱好者 #### 开始使用 AtomUI 推荐的以 nuget 包的方式进行安装,我们已经将 AtomUI OSS 相关的包上传到 nuget.org,目前 AtomUI 没有发布长期支持版,所以推荐安装我们发布的最新版本 目前我们已经发布的包如下: | 包名 | 描述 | |-------------------------------------|----------------------------------------------------| | AtomUI.Core | 基础功能包,包含基本类和样式系统 | | AtomUI.Controls.Shared | 手机和桌面通用的基础控件包 | | AtomUI.Desktop.Controls | 桌面端主要控件包 | | AtomUI.Desktop.Controls.DataGrid | 数据表格控件。开发者按需引入 | | AtomUI.Desktop.Controls.ColorPicker | 颜色选择器控件。开发者按需引入 | | AtomUI.Generator | 自定义控件所需的源生成器定义。如果创建自定义控件时需要与 AtomUI 主题系统集成,则必须包含此包 | | AtomUI.Icons.Generator | 如果需要创建自定义图标包,则必须包含此包 | | AtomUI.Fonts.AlibabaSans | 阿里巴巴普惠体字体包 | ```bash dotnet add package AtomUI --version 5.1.0 ``` ##### 启用 AtomUI 库 ###### 配置项目文件 ```xaml WinExe net9.0 enable true app.manifest true None All ``` ###### 配置程序入口文件 ```csharp using Avalonia; using System; namespace AtomUIProgressApp; class Program { [STAThread] public static void Main(string[] args) => BuildAvaloniaApp() .StartWithClassicDesktopLifetime(args); public static AppBuilder BuildAvaloniaApp() { return AppBuilder.Configure() .UseReactiveUI() .UsePlatformDetect() .With(new Win32PlatformOptions()) .LogToTrace(); } } ``` ###### 在 `Application` 类中启用 `AtomUI` ```csharp public partial class App : Application { public override void Initialize() { base.Initialize(); AvaloniaXamlLoader.Load(this); this.UseAtomUI(builder => { builder.WithDefaultLanguageVariant(LanguageVariant.zh_CN); builder.WithDefaultTheme(IThemeManager.DEFAULT_THEME_ID); builder.UseAlibabaSansFont(); // 配置字体 builder.UseDesktopControls(); builder.UseGalleryControls(); builder.UseDesktopDataGrid(); builder.UseDesktopColorPicker(); }); } } ``` ###### 开始用 `AtomUI` 创造无限可能 您可以开始在自己的项目中开始使用 `AtomUI` ```xaml Sub Add ```
#### 体验所有控件 您可以拉取控件库项目到本地来体验所有的 AtomUI 控件 ```bash git clone --recurse-submodules https://github.com/chinware/AtomUI.ControlGallery.git cd AtomUI.ControlGallery dotnet build ```
#### 致谢

Ant Design

Ant Design 是由蚂蚁集团推出的企业级 UI 设计语言和 React 组件库。它提供了一套高质量、统一的 React 组件,包含丰富的预设主题与国际化支持,致力于提升企业级应用的设计和开发效率。其优雅的设计和出色的开发体验,使其成为中后台项目中最流行的前端解决方案之一。

Avalonia OSS

Avalonia 是一个跨平台的 .NET UI 框架,使用 XAML 语言设计界面。它支持 Windows、macOS、Linux、iOS 和 Android 等多个平台,提供与 WPF 相似的开发体验。凭借其高性能的渲染引擎和丰富的控件库,Avalonia 能够帮助企业快速构建现代化的桌面和移动应用程序。
#### 许可证说明 使用 AtomUI 的项目需要遵循 LGPL v3 协议,商业应用(包括且不限于公司内部项目、个人使用 AtomUI OSS 开发的商业项目和承接的外包项目)在使用二进制连接的情况下免费,如果基于源码定制 AtomUI 需要修改的代码开源或者购买商业授权,需要商业授权,欢迎联系:北京秦派软件科技有限公司。 ### 🤝 贡献 欢迎各界人士贡献各种资源,如果您对贡献代码感兴趣,请随意查看我们的 GitHub [问题页面][github-issues-link],让我们见识一下您的实力。 [![][pr-welcome-shield]][pr-welcome-link] [![][github-contrib-shield]][github-contrib-link] [github-issues-link]: https://github.com/chinware/AtomUI/issues [pr-welcome-shield]: https://img.shields.io/badge/PR%20WELCOME-%E2%86%92-ffcb47?labelColor=black&style=for-the-badge [pr-welcome-link]: https://github.com/chinware/AtomUI/pulls [github-contrib-shield]: https://contrib.rocks/image?repo=chinware%2FAtomUI [github-contrib-link]: https://github.com/chinware/AtomUI/graphs/contributors #### 关于秦派软件

北京秦派软件科技有限公司(Qinware Technology Co., Ltd.) 是一家致力于开发生产力工具软件的技术公司,成立之初立志要在工具软件领域深耕,践行精益求精的研发精神,努力推出优质的生产力工具软件服务国内外的开发者,提升开发者的工作效率,同时创造出商业价值和社会价值。