LuminaUI.Diagnostics
0.1.2
dotnet add package LuminaUI.Diagnostics --version 0.1.2
NuGet\Install-Package LuminaUI.Diagnostics -Version 0.1.2
<PackageReference Include="LuminaUI.Diagnostics" Version="0.1.2" />
<PackageVersion Include="LuminaUI.Diagnostics" Version="0.1.2" />
<PackageReference Include="LuminaUI.Diagnostics" />
paket add LuminaUI.Diagnostics --version 0.1.2
#r "nuget: LuminaUI.Diagnostics, 0.1.2"
#:package LuminaUI.Diagnostics@0.1.2
#addin nuget:?package=LuminaUI.Diagnostics&version=0.1.2
#tool nuget:?package=LuminaUI.Diagnostics&version=0.1.2
LuminaUI
LuminaUI is an Avalonia 12 component library for desktop, browser, and mobile-style application shells. It provides a shared visual system, reusable controls, navigation primitives, overlays, localization support, and optional themed integrations for ColorPicker, DataGrid, and TreeDataGrid.
The NuGet packages target .NET 8, .NET 9, and .NET 10. Demo hosts remain on .NET 10. The current Avalonia version is 12.0.4.
Packages
| Package | Purpose |
|---|---|
LuminaUI |
Core theme, semantic resources, controls, shell, navigation, overlays, localization, and motion helpers. |
LuminaUI.ColorPicker |
Lumina theme integration for Avalonia ColorPicker and ColorView. |
LuminaUI.DataGrid |
Lumina theme integration for Avalonia DataGrid. |
LuminaUI.TreeDataGrid |
Lumina theme integration for TreeDataGrid.Avalonia. |
LuminaUI.Diagnostics.Abstractions |
Shared protocol contracts for LuminaUI diagnostics packages and tools. |
LuminaUI.Diagnostics |
Application-side named-pipe diagnostics host for Avalonia apps. |
LuminaUI.Diagnostics.Mcp |
Dotnet tool package for the live diagnostics MCP stdio server. |
Features
- Light and dark theme dictionaries with semantic color, border, surface, glass, and shadow tokens.
- Application shell primitives:
LuminaWindow,LuminaTopView,LuminaShell,LuminaPage, dialogs, bottom sheets, and toast surfaces. - Foundation controls: cards, glass surfaces, group boxes, images, avatars, badges, loading states, skeletons, empty states, and disabled containers.
- Action controls: buttons, toggle buttons, repeat buttons, button groups, drop-down buttons, split buttons, command bars, and pop confirmations.
- Navigation and layout: navigation view, navigation pages, drawer pages, tab pages, tab strips, tab controls, carousel, breadcrumb, split view, and transitioning content.
- Data entry and display: text inputs, OTP input, forms, selection controls, pickers, date range picker, range slider, pagination, descriptions, properties, timeline, steps, indexed lists, and linked categories.
- Localization resources with application-level override support.
- Shared demo project with Desktop, Browser, Android, and iOS hosts.
Quick Start
Reference the packages or projects you need, then register the theme in App.axaml.
<Application xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:lumina="clr-namespace:LuminaUI;assembly=LuminaUI"
xmlns:luminaColorPicker="using:LuminaUI.ColorPicker"
xmlns:luminaDataGrid="using:LuminaUI.DataGrid"
xmlns:luminaTreeDataGrid="using:LuminaUI.TreeDataGrid">
<Application.Styles>
<FluentTheme />
<lumina:LuminaTheme />
<luminaColorPicker:LuminaColorPickerTheme />
<luminaDataGrid:LuminaDataGridTheme />
<luminaTreeDataGrid:LuminaTreeDataGridTheme />
</Application.Styles>
</Application>
Use controls with the Lumina namespace:
<lumina:LuminaCard Classes="Glass" Padding="16">
<StackPanel Spacing="8">
<TextBlock Classes="SectionTitle" Text="Overview" />
<Button Classes="Primary" Content="Save" />
</StackPanel>
</lumina:LuminaCard>
Repository Layout
src/
LuminaUI/ Core controls, theme resources, localization, shell, and services.
LuminaUI.ColorPicker/ Optional ColorPicker theme package.
LuminaUI.DataGrid/ Optional DataGrid theme package.
LuminaUI.TreeDataGrid/ Optional TreeDataGrid theme package.
LuminaUI.Diagnostics.Abstractions/
Shared diagnostics protocol contracts.
LuminaUI.Diagnostics/ Application-side diagnostics host.
demo/
LuminaUI.Demo/ Shared demo views and view models.
LuminaUI.Demo.Desktop/ Desktop host and diagnostics entry point.
LuminaUI.Demo.Browser/ Browser host.
LuminaUI.Demo.Android/ Android host.
LuminaUI.Demo.iOS/ iOS host.
tools/
LuminaUI.Mcp/ Documentation MCP server for component knowledge.
LuminaUI.Diagnostics.Mcp/
Live app diagnostics MCP stdio server.
The documentation MCP server (tools/LuminaUI.Mcp) remains the single documentation and component-knowledge entry point. The diagnostics MCP tool (tools/LuminaUI.Diagnostics.Mcp) is separate and only connects to running Avalonia applications that opt in with LuminaUI.Diagnostics.
Versioning
The repository uses separate version domains so tool packages are not forced to follow the main control library release cadence:
LuminaUIVersion: main controls and optional themed control packages.LuminaUIDiagnosticsVersion: diagnostics protocol contracts and application-side host.LuminaUIDiagnosticsMcpVersion: live diagnostics MCP dotnet tool.LuminaDocsMcpVersion: documentation MCP server.
LuminaUIVersion lives in Directory.Build.props. Diagnostics versions live in Directory.Build.Diagnostics.props. The documentation MCP version lives in Directory.Build.Mcp.props.
Only bump the version for the package whose public API, protocol, or behavior changed. Main control library changes do not require synchronized MCP tool version bumps.
Diagnostics MCP
Application-side setup:
using Avalonia;
using LuminaUI.Diagnostics;
public static AppBuilder BuildAvaloniaApp() =>
AppBuilder.Configure<App>()
.UsePlatformDetect()
.UseLuminaUIDiagnostics();
The diagnostics host listens on a deterministic pipe name:
lumina-ui-diagnostics-{pid}
The dotnet tool package exposes the stdio MCP server command:
lumina-ui-diagnostics-mcp
The documentation MCP server remains HTTP-based at http://localhost:3001/mcp.
Build and Run
Restore and build the desktop demo and library projects:
dotnet restore demo/LuminaUI.Demo.Desktop/LuminaUI.Demo.Desktop.csproj
dotnet build demo/LuminaUI.Demo.Desktop/LuminaUI.Demo.Desktop.csproj
Run the desktop demo:
dotnet run --project demo/LuminaUI.Demo.Desktop/LuminaUI.Demo.Desktop.csproj
Run the browser, Android, or iOS hosts when the corresponding .NET workloads are installed. The iOS host requires macOS and Xcode.
dotnet run --project demo/LuminaUI.Demo.Browser/LuminaUI.Demo.Browser.csproj
dotnet build demo/LuminaUI.Demo.Android/LuminaUI.Demo.Android.csproj
dotnet build demo/LuminaUI.Demo.iOS/LuminaUI.Demo.iOS.csproj
After all platform workloads are installed, dotnet build LuminaUI.slnx builds the full workspace.
Create local packages:
dotnet pack src/LuminaUI/LuminaUI.csproj -c Release
dotnet pack src/LuminaUI.ColorPicker/LuminaUI.ColorPicker.csproj -c Release
dotnet pack src/LuminaUI.DataGrid/LuminaUI.DataGrid.csproj -c Release
dotnet pack src/LuminaUI.TreeDataGrid/LuminaUI.TreeDataGrid.csproj -c Release
dotnet pack src/LuminaUI.Diagnostics.Abstractions/LuminaUI.Diagnostics.Abstractions.csproj -c Release
dotnet pack src/LuminaUI.Diagnostics/LuminaUI.Diagnostics.csproj -c Release
dotnet pack tools/LuminaUI.Diagnostics.Mcp/LuminaUI.Diagnostics.Mcp.csproj -c Release
Release
NuGet publishing and GitHub Releases are split by version domain:
LuminaUI: publishes the main control packages fromLuminaUIVersion.LuminaUI Diagnostics MCP: publishesLuminaUI.Diagnostics.Abstractions,LuminaUI.Diagnostics, andLuminaUI.Diagnostics.McpfromLuminaUIDiagnosticsVersionandLuminaUIDiagnosticsMcpVersion.
- Set the repository secret
NUGET_API_KEYto a NuGet.org API key. - Optional: set
GH_RELEASE_TOKENto a GitHub token withContents: Read and writeif the default ActionsGITHUB_TOKENcannot create releases in this repository. - Update the matching version property in
Directory.Build.props,Directory.Build.Diagnostics.props, orDirectory.Build.Mcp.propsfor the packages included in the release. - Push the change to
masterormain.
git add Directory.Build.props Directory.Build.Diagnostics.props Directory.Build.Mcp.props
git commit -m "Release 0.1.0"
git push origin master
If the matching tag does not already exist, the selected workflow builds the relevant packable projects, publishes .nupkg and .snupkg files to NuGet, creates a release tag, and publishes a GitHub Release. The main workflow also builds the Desktop, Browser, Android, and iOS simulator demo release assets.
Release notes are generated by GitHub from merged PRs and commits. The first release starts at 0.1.0.
Development Notes
- Keep reusable styling in theme dictionaries and prefer semantic Lumina resources over hard-coded colors.
- Keep optional integrations in their own packages so applications can depend only on the controls they use.
- Prefer MVVM commands and bindable properties in demo pages; use code-behind only for view composition and platform glue.
- When changing visible text, update both English and
zh-CNresources. - Validate UI changes with the desktop demo before packaging.
License
LuminaUI is released under the MIT License. See LICENSE.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. 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. |
-
net10.0
- Avalonia (>= 12.0.4)
- LuminaUI.Diagnostics.Abstractions (>= 0.1.2)
-
net8.0
- Avalonia (>= 12.0.4)
- LuminaUI.Diagnostics.Abstractions (>= 0.1.2)
-
net9.0
- Avalonia (>= 12.0.4)
- LuminaUI.Diagnostics.Abstractions (>= 0.1.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.