UnityTheme.Avalonia
1.0.5
dotnet add package UnityTheme.Avalonia --version 1.0.5
NuGet\Install-Package UnityTheme.Avalonia -Version 1.0.5
<PackageReference Include="UnityTheme.Avalonia" Version="1.0.5" />
<PackageVersion Include="UnityTheme.Avalonia" Version="1.0.5" />
<PackageReference Include="UnityTheme.Avalonia" />
paket add UnityTheme.Avalonia --version 1.0.5
#r "nuget: UnityTheme.Avalonia, 1.0.5"
#:package UnityTheme.Avalonia@1.0.5
#addin nuget:?package=UnityTheme.Avalonia&version=1.0.5
#tool nuget:?package=UnityTheme.Avalonia&version=1.0.5
UnityTheme.Avalonia
Avalonia theme that looks like the Unity Editor — dark, compact, high density. No FluentTheme dependency.
Try it
Online gallery (WASM): 0use.net/UnityTheme.Avalonia
Run locally:
# Desktop — .NET 8
dotnet run --project samples/UnityTheme.Gallery.Desktop
# Browser — .NET 10 + wasm-tools
dotnet workload install wasm-tools
dotnet run --project samples/UnityTheme.Gallery.Browser
Use in your app
1. Install
dotnet add package UnityTheme.Avalonia
2. Apply theme
App.axaml:
<Application xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:unity="using:UnityTheme.Avalonia"
x:Class="YourApp.App"
RequestedThemeVariant="Dark">
<Application.Styles>
<unity:UnityTheme />
</Application.Styles>
</Application>
Switch light/dark at runtime:
Application.Current!.RequestedThemeVariant = ThemeVariant.Light;
// or ThemeVariant.Dark
3. Use theme brushes (optional)
<Border Background="{DynamicResource UnityPanelBackgroundBrush}"
BorderBrush="{DynamicResource UnityBorderBrush}" />
Handy brushes:
| Resource | Dark | Use for |
|---|---|---|
UnityPanelBackgroundBrush |
#282828 |
Panels, lists |
UnityInputBackgroundBrush |
#191919 |
Text fields |
UnityToolbarBackgroundBrush |
#3C3C3C |
Toolbars |
UnitySelectionBrush |
#2C5D87 |
Selection |
HighlightBrush |
#478BF5 |
Accent, focus |
What's in the box
- Unity Pro colors, 12px font, 20px controls, 1px corners
- 28+ core controls styled (Button, TextBox, ListBox, TabControl, DatePicker, SplitView, …)
- Light / dark via
RequestedThemeVariant - Only depends on the core
Avaloniapackage
ColorPicker, DataGrid, TreeDataGrid etc. are not included.
Repo layout
src/UnityTheme.Avalonia/ Theme library (net8.0)
samples/UnityTheme.Gallery/ Gallery UI
samples/UnityTheme.Gallery.Desktop/ Desktop app (net8.0)
samples/UnityTheme.Gallery.Browser/ WASM app (net10.0-browser)
Browser sample needs .NET 10 because Avalonia 12's Browser package does. The theme itself doesn't.
Build
dotnet build UnityTheme.Avalonia.slnx
Pack (NuGet)
dotnet pack src/UnityTheme.Avalonia/UnityTheme.Avalonia.csproj -c Release -o package
Output: package/UnityTheme.Avalonia.1.0.0.nupkg
License
MIT — see LICENSE.
Control templates started from Avalonia.Themes.Simple.
| 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 was computed. 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 was computed. 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. |
-
net8.0
- Avalonia (>= 12.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.
Initial release. Unity Pro palette, 28+ styled core controls, light/dark support.