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
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="CCSWE.Avalonia.Material" Version="12.0.26" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CCSWE.Avalonia.Material" Version="12.0.26" />
                    
Directory.Packages.props
<PackageReference Include="CCSWE.Avalonia.Material" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add CCSWE.Avalonia.Material --version 12.0.26
                    
#r "nuget: CCSWE.Avalonia.Material, 12.0.26"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package CCSWE.Avalonia.Material@12.0.26
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=CCSWE.Avalonia.Material&version=12.0.26
                    
Install as a Cake Addin
#tool nuget:?package=CCSWE.Avalonia.Material&version=12.0.26
                    
Install as a Cake Tool

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 major12.x targets 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) and Color (Primary / Secondary / Tertiary / Surface) M3 mappings, with Command / Click inherited from Button.
  • Text fields: Outlined, Filled.
  • Cards: the <theme:Card> control for interactive cards (Elevated / Filled / Outlined, M3 hover/press state layers, Command / Click; clickable when a Command is set or IsClickable="True"), or a plain Border with Card + Elevated / Filled / Outlined for static surfaces.
  • Divider: the <theme:Divider> control — a thin M3 rule, with an optional Header that 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 an IsIndeterminate="True" spinner; the ring counterpart to the linear ProgressBar.
  • Default-themed (no class): ToggleButton, AutoCompleteBox, NumericUpDown, CheckBox, RadioButton, ToggleSwitch, ListBox, TreeView, ComboBox, Menu, Expander, Slider, ProgressBar, TabControl, TabStrip.
  • Type scale: DisplayLarge … LabelSmall as TextBlock classes.
  • Color roles: {DynamicResource Primary} (brush) / {DynamicResource PrimaryColor} (color). Use DynamicResource for role brushes so they re-resolve when the theme variant flips.
  • Icons: Google Material Symbols (Outlined) ship as StreamGeometry resources keyed Material_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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.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