Shirasagi0012.Material3Expressive.Avalonia 0.1.0

dotnet add package Shirasagi0012.Material3Expressive.Avalonia --version 0.1.0
                    
NuGet\Install-Package Shirasagi0012.Material3Expressive.Avalonia -Version 0.1.0
                    
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="Shirasagi0012.Material3Expressive.Avalonia" Version="0.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Shirasagi0012.Material3Expressive.Avalonia" Version="0.1.0" />
                    
Directory.Packages.props
<PackageReference Include="Shirasagi0012.Material3Expressive.Avalonia" />
                    
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 Shirasagi0012.Material3Expressive.Avalonia --version 0.1.0
                    
#r "nuget: Shirasagi0012.Material3Expressive.Avalonia, 0.1.0"
                    
#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 Shirasagi0012.Material3Expressive.Avalonia@0.1.0
                    
#: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=Shirasagi0012.Material3Expressive.Avalonia&version=0.1.0
                    
Install as a Cake Addin
#tool nuget:?package=Shirasagi0012.Material3Expressive.Avalonia&version=0.1.0
                    
Install as a Cake Tool

Material 3 Expressive for Avalonia

Avalonia 的 Material 3 Expressive 主题/控件库,以尽可能在视觉效果和动效上还原 Compose material3 为目标。

注意事项

项目大量借助 Codex 来移植 Compose material3 的组件,并且目前还有很多组件的代码我没有仔细审查。

使用 SkiaSharp V4 以提供对 MaterialSymbols VF 的支持。

组件

到目前为止已经实现了多数基础组件,较全面的基础能力,不过很多依赖复杂功能的组件还没有实现。

安装与使用

当前源码的依赖准备、最小桌面应用、主题/字体/动画初始化见接入指南。

仓库结构

  • src/Material3Expressive:控件库;src/Material3Expressive.Catalog:展示应用。
  • modules/MaterialShapes:形状库、Gallery、测试和文档。
  • modules/ComposeAnimation:Runtime、Avalonia、TestSupport、Catalog、测试和文档。
  • modules/MaterialSkiaShadow、modules/MaterialTypography.Roboto:阴影与字体模块。
  • tests:控件测试与 VisualParity。

以上模块均由本仓库直接管理。MaterialColorUtilities、MaterialSymbols、SmoothScroll.Avalonia 保留独立仓库,本项目只消费 NuGet 包;具体版本见 Directory.Packages.props。

本地开发

需要 .NET 10 SDK;VisualParity 脚本另需 PowerShell。NuGet 依赖统一从 nuget.org 恢复, 环境准备见接入指南。不需要初始化 Git 子模块。

dotnet restore Material3Expressive.slnx
dotnet build Material3Expressive.slnx --no-restore
dotnet test tests/Material3Expressive.Tests/Material3Expressive.Tests.csproj --no-restore
dotnet run --project src/Material3Expressive.Catalog --no-restore

VisualParity 的独立运行方式见 测试文档。

版本与发布

各可发布项目在自己的 csproj 中声明包版本;外部依赖版本由相应的中央包配置管理。 手动发布工作流构建所选 ref,按各项目版本打包 ComposeAnimation Runtime/Avalonia/TestSupport、MaterialShapes、Shadow、Roboto 与主库, 再按依赖顺序推送至 nuget.org。发布使用 NuGet Trusted Publishing,配置见下方接入指南。 工作流不会从 tag 名推导或统一覆盖这些版本。 发布包的使用与版本核对见接入指南。

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.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Shirasagi0012.Material3Expressive.Avalonia:

Package Downloads
TabView.Avalonia.Material3

Chrome inspired Material 3 tabs for TabView.Avalonia and Material3Expressive.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.0 100 11/7/2026
0.0.6 69 11/3/2026