Skip to main content
.NETStandard2.0

This repository is a set of styles that will help you customize your application in an appropriate material design.

Published
Oct 12, 2022
4y ago
Total Downloads
546.9K
546,944

Install

dotnet add package Material.Avalonia --version 3.0.0-avalonia11-preview2
ProductVersions
.NET Standard
netstandard2.0

README

Material.Avalonia

Customizable Material Design implementation for AvaloniaUI framework.

More screenshots

Overview

This library is a collection of styles and controls to help you customize your Avalonia application with Material Design theme.

  • Material Design styles for almost all Avalonia controls
  • Additional controls to support the Snackbars, side sheets, floating buttons, cards, dialogs and more
  • Easy configuration of palette (at design and runtime), according to Material Guidelines guidelines
  • Full Material Design Icons icon pack support (must be installed separately, in favor of small library size)
  • Demo applications included in the source project

nuget nuget nuget

Getting started

Check out the getting started wiki page. Or follow these very quick instructions:

  1. Add Material.Avalonia nuget package to your project:

    dotnet add package Material.Avalonia
    
  2. Edit App.xaml file:

    If you install 3.0.0-* version or higher, use this:

    <Application ...
      xmlns:themes="clr-namespace:Material.Styles.Themes;assembly=Material.Styles"
      ...>
      <Application.Styles>
        <themes:MaterialTheme BaseTheme="Dark" PrimaryColor="Purple" SecondaryColor="Lime" />
      </Application.Styles>
    </Application>
    

    If you install 2.5.1 or lower use this:

    <Application ...
      xmlns:themes="clr-namespace:Material.Styles.Themes;assembly=Material.Styles"
      ...>
      <Application.Resources>
        <themes:BundledTheme BaseTheme="Light" PrimaryColor="Teal" SecondaryColor="Amber"/>
      </Application.Resources>
      <Application.Styles>
        <StyleInclude Source="avares://Material.Avalonia/Material.Avalonia.Templates.xaml" />
      </Application.Styles>
    </Application>
    

Useful links

Changes from Previous Version

No structural changes between v3.0.0-avalonia11-preview1 and v3.0.0-avalonia11-preview2.

Adoption Assessment

Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.

This version is marked prerelease. Validate its API and upgrade path before production use.Compatibility metadata lists 1 target framework; confirm the exact target used by your application.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.