CCSWE.Avalonia.Material
12.0.26
dotnet add package CCSWE.Avalonia.Material --version 12.0.26
NuGet\Install-Package CCSWE.Avalonia.Material -Version 12.0.26
<PackageReference Include="CCSWE.Avalonia.Material" Version="12.0.26" />
<PackageVersion Include="CCSWE.Avalonia.Material" Version="12.0.26" />
<PackageReference Include="CCSWE.Avalonia.Material" />
paket add CCSWE.Avalonia.Material --version 12.0.26
#r "nuget: CCSWE.Avalonia.Material, 12.0.26"
#:package CCSWE.Avalonia.Material@12.0.26
#addin nuget:?package=CCSWE.Avalonia.Material&version=12.0.26
#tool nuget:?package=CCSWE.Avalonia.Material&version=12.0.26
CCSWE.Avalonia.Material
A standalone Material 3 theme for Avalonia 12 — a
Dark/Light color system, the M3 type scale, motion, embedded brand fonts, and M3
control themes for the full control set. Depends only on Avalonia core — no
FluentTheme/SimpleTheme base required.
Install
dotnet add package CCSWE.Avalonia.Material
Versioning: the major version tracks the supported Avalonia major —
12.xtargets Avalonia 12.x. Pick the major matching your Avalonia version; minor/patch are this library's own features and fixes.
Wire it up
Add one element to your App.axaml:
<Application xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:theme="using:CCSWE.Avalonia.Material"
x:Class="YourApp.App"
RequestedThemeVariant="Dark">
<Application.Styles>
<theme:MaterialTheme />
</Application.Styles>
</Application>
MaterialTheme is standalone — it supplies the whole control surface itself and
depends only on Avalonia core. No <FluentTheme/> (or other base theme) is required.
Use it
<StackPanel Spacing="12">
<TextBlock Classes="HeadlineSmall" Text="Devices" />
<TextBox Classes="Outlined" PlaceholderText="IP address" />
<Button Classes="Filled" Content="Connect" />
<Button Classes="Outlined" Content="Pair new device" />
<CheckBox Content="Connect automatically" />
<ToggleSwitch Content="Wireless debugging" />
</StackPanel>
- Buttons:
Filled,FilledTonal,Elevated,Outlined,Text,Icon. - Floating action button: the
<theme:FloatingActionButton>control —Size(Small/Regular/Large) andColor(Primary/Secondary/Tertiary/Surface) M3 mappings, withCommand/Clickinherited fromButton. - Text fields:
Outlined,Filled. - Cards: the
<theme:Card>control for interactive cards (Elevated/Filled/Outlined, M3 hover/press state layers,Command/Click; clickable when aCommandis set orIsClickable="True"), or a plainBorderwithCard+Elevated/Filled/Outlinedfor static surfaces. - Divider: the
<theme:Divider>control — a thin M3 rule, with an optionalHeaderthat turns it into a leading section header (label on the rule's axis, hairline filling to its right); omit it for a plain full-width rule. - Circular progress: the
<theme:CircularProgressIndicator>control — determinate (Value/Minimum/Maximum) or anIsIndeterminate="True"spinner; the ring counterpart to the linearProgressBar. - Default-themed (no class):
ToggleButton,AutoCompleteBox,NumericUpDown,CheckBox,RadioButton,ToggleSwitch,ListBox,TreeView,ComboBox,Menu,Expander,Slider,ProgressBar,TabControl,TabStrip. - Type scale:
DisplayLarge … LabelSmallasTextBlockclasses. - Color roles:
{DynamicResource Primary}(brush) /{DynamicResource PrimaryColor}(color). UseDynamicResourcefor role brushes so they re-resolve when the theme variant flips. - Icons: Google Material Symbols (Outlined) ship as
StreamGeometryresources keyedMaterial_Icon*(e.g.Material_IconClose). Reference any via<PathIcon Data="{DynamicResource Material_IconMenu}" />, or override one for your app by redefining the same key downstream.
Switch theme variant at runtime
Application.Current!.RequestedThemeVariant =
isLight ? ThemeVariant.Light : ThemeVariant.Dark;
License
MIT.
Bundles DM Sans and Plus Jakarta Sans under the
SIL Open Font License 1.1; their OFL.txt files
ship in the package under THIRD-PARTY-NOTICES/.
Source, docs, and the control gallery: https://github.com/CCSWE-Avalonia/CCSWE.Avalonia.Material
| 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. |
-
net10.0
- Avalonia (>= 12.0.0 && < 13.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 |
|---|---|---|
| 12.0.26 | 106 | 6/23/2026 |
| 12.0.25 | 89 | 6/23/2026 |
| 12.0.24 | 93 | 6/23/2026 |
| 12.0.23 | 96 | 6/23/2026 |
| 12.0.22 | 166 | 6/16/2026 |
| 12.0.21 | 202 | 6/9/2026 |
| 12.0.20 | 115 | 6/9/2026 |
| 12.0.19 | 214 | 6/8/2026 |
| 12.0.17 | 111 | 6/8/2026 |
| 12.0.16 | 102 | 6/8/2026 |
| 12.0.15 | 119 | 6/8/2026 |
| 12.0.14 | 113 | 6/8/2026 |
| 12.0.13 | 108 | 6/7/2026 |
| 12.0.12 | 101 | 6/7/2026 |
| 12.0.9 | 101 | 6/7/2026 |
| 12.0.8 | 104 | 6/7/2026 |
| 12.0.7 | 98 | 6/7/2026 |
| 12.0.2 | 104 | 6/6/2026 |
| 12.0.1 | 109 | 6/6/2026 |