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

🌟 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 NuGet 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-3 and m-2 handle spacing instantly, while text-primary and progress-success style 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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