Bootstrap.Avalonia.Toolkit
1.0.1
dotnet add package Bootstrap.Avalonia.Toolkit --version 1.0.1
NuGet\Install-Package Bootstrap.Avalonia.Toolkit -Version 1.0.1
<PackageReference Include="Bootstrap.Avalonia.Toolkit" Version="1.0.1" />
<PackageVersion Include="Bootstrap.Avalonia.Toolkit" Version="1.0.1" />
<PackageReference Include="Bootstrap.Avalonia.Toolkit" />
paket add Bootstrap.Avalonia.Toolkit --version 1.0.1
#r "nuget: Bootstrap.Avalonia.Toolkit, 1.0.1"
#:package Bootstrap.Avalonia.Toolkit@1.0.1
#addin nuget:?package=Bootstrap.Avalonia.Toolkit&version=1.0.1
#tool nuget:?package=Bootstrap.Avalonia.Toolkit&version=1.0.1
π Bootstrap.Avalonia.Toolkit
Bringing the power, speed, and familiarity of utility-first design to Avalonia XAML desktop apps.
<div align="center">
| Author | License | NuGet Status | Platform Support |
|---|---|---|---|
| Saiah Albert | MIT | Linux (Fedora Optimized), Windows, macOS |
</div>
π Overview
Bootstrap.Avalonia.Toolkit is a modern styling library for Avalonia developers who want to rapidly prototype desktop UIs with minimal overhead.
Inspired by the utility-first philosophy of Bootstrap, it provides clean, modular XAML classes for:
- Spacing (margin, padding)
- Typography (headings, font weight, colors, alignment)
- Borders & rounded corners
- Components (cards, buttons, badges, progress bars)
By using these utility classes, you can build readable, maintainable interfaces without long <Style> blocks or resource dictionaries. Perfect for dashboards, system monitors, and productivity apps.
π Installation & Integration
1. Install via NuGet
dotnet add package Bootstrap.Avalonia.Toolkit
2. Add Global Styles
Include the toolkit in your App.axaml so all classes are available throughout your app:
<Application.Styles>
<FluentTheme />
<StyleInclude Source="avares://Bootstrap.Avalonia.Toolkit/Styles/Bootstrap.axaml" />
<StyleInclude Source="avares://Bootstrap.Avalonia.Toolkit/Styles/Bootstrap.Min.axaml" />
<StyleInclude Source="avares://Bootstrap.Avalonia.Toolkit/Styles/Bootstrap.Map.axaml" />
</Application.Styles>
3. Declare Toolkit Namespace
In your Window or UserControl XAML:
xmlns:b="clr-namespace:Bootstrap.Avalonia.Toolkit;assembly=Bootstrap.Avalonia.Toolkit"
β οΈ Troubleshooting & Common Fixes
| Issue | Root Cause | Solution |
|---|---|---|
| Missing IntelliSense | IDE cache / metadata lag | Clean your solution and delete .vs or .idea. Rebuild the project to refresh XAML indexing. |
| Styles Not Applying | Load order | Make sure the Toolkit StyleInclude comes after your base theme (FluentTheme or SimpleTheme). |
| Resource Mismatch | Version mismatch | Use the latest .axaml files from /src on GitHub for up-to-date fixes before the next NuGet release. |
β¨ Features & Utilities
| π Utilities | π¨ Typography | π§± Components |
|---|---|---|
Spacing: m-1 β m-5, p-1 β p-5 |
Headings: h1βh6 |
Buttons: btn-primary, btn-outline-secondary |
Borders & Radius: border, rounded, border-2 |
Font Weight: fw-bold, fw-light |
Badges: Rounded status indicators |
Text Colors: text-primary, text-muted, text-danger |
Cards: Modular containers for widgets | |
Text Alignment: text-center, text-start |
Progress Bars: progress-success, progress-warning, etc. |
These classes are designed to streamline styling directly in XAML, keeping interfaces readable and maintainable without heavy
<Style>blocks.
πΌ Example: Dashboard Widget
<Border Classes="card p-3 m-2">
<StackPanel>
<TextBlock Classes="h4 text-primary" Text="CPU Usage" />
<ProgressBar Value="65" Classes="progress-success" />
<TextBlock Classes="text-muted small" Text="Updated: Just now" />
</StackPanel>
</Border>
Notice how
p-3andm-2handle spacing instantly, whiletext-primaryandprogress-successstyle the content cleanlyβall without extra styles.
π‘ Why Use Bootstrap.Avalonia.Toolkit?
- Rapid Prototyping: Apply styles directly in XAML with minimal setup.
- Consistency: Uniform spacing, colors, and typography across your app.
- Modularity: Components like cards, buttons, and badges are reusable.
- Open Source: Contributions are welcome, helping grow the Avalonia community.
π€ Contributing & Community
Bootstrap.Avalonia.Toolkit is MIT-licensed. You can:
- Report issues or suggest improvements
- Submit pull requests with new utilities or components
- Improve documentation and examples
Your help can make Avalonia the most modern, designer-friendly UI framework for .NET desktop apps.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. 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. |
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 |
|---|---|---|
| 1.0.1 | 121 | 3/10/2026 |