fluentui-icons-like is a small monorepo for shipping Microsoft Fluent UI System Icons in practical app-friendly forms.
| Package | Ecosystem | Status |
|---|---|---|
@oneo/fluentui-icons-like |
npm | |
ONEO.FluentUIIconsLike |
NuGet | |
ONEO.FluentUIIconsLike.Generator |
NuGet |
Install the package:
pnpm add @oneo/fluentui-icons-like
Use icons in a Svelte component:
<script lang="ts">
import FluentIconAccessTime from '@oneo/fluentui-icons-like/FluentIconAccessTime.svelte';
import FluentIconAccessibility from '@oneo/fluentui-icons-like/FluentIconAccessibility.svelte';
import FluentIconAdd from '@oneo/fluentui-icons-like/FluentIconAdd.svelte';
</script>
<div style="display:flex;gap:12px;align-items:center;">
<FluentIconAccessTime size={24} style="Regular" />
<FluentIconAccessibility size={24} style="Filled" />
<FluentIconAdd size={20} style="Regular" />
</div>
Install the packages:
dotnet add package ONEO.FluentUIIconsLike
dotnet add package ONEO.FluentUIIconsLike.Generator
Reference the source generator as an analyzer in your project file:
<ItemGroup>
<PackageReference Include="ONEO.FluentUIIconsLike" Version="2.0.0-preview.0" />
<PackageReference Include="ONEO.FluentUIIconsLike.Generator" Version="2.0.0-preview.0" PrivateAssets="all" />
</ItemGroup>
Add FluentIconReferences to list the icons your app uses. The source generator builds icon data from these references:
using FluentUIIconsLike;
[assembly: FluentIconReferences(
FluentIconSymbol.AccessTime,
FluentIconSymbol.Accessibility,
FluentIconSymbol.Add)]
Use the icon control in axaml:
<Window xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:icons="https://github.com/oneo-me/fluentui-icons-like">
<StackPanel Spacing="12">
<icons:FluentIcon Symbol="AccessTime" Size="Size24" Style="Regular" Foreground="DodgerBlue" />
<icons:FluentIcon Symbol="Accessibility" Size="Size24" Style="Filled" Foreground="MediumSeaGreen" />
</StackPanel>
</Window>
.
├── builder/ # icon build and generation scripts
├── packages/
│ ├── svelte/ # Svelte package and preview app
│ └── avalonia/ # Avalonia library, generator, and demo
├── README.md
└── LICENSE
MIT