WebSpark.Bootswatch
2.5.1
dotnet add package WebSpark.Bootswatch --version 2.5.1
NuGet\Install-Package WebSpark.Bootswatch -Version 2.5.1
<PackageReference Include="WebSpark.Bootswatch" Version="2.5.1" />
<PackageVersion Include="WebSpark.Bootswatch" Version="2.5.1" />
<PackageReference Include="WebSpark.Bootswatch" />
paket add WebSpark.Bootswatch --version 2.5.1
#r "nuget: WebSpark.Bootswatch, 2.5.1"
#:package WebSpark.Bootswatch@2.5.1
#addin nuget:?package=WebSpark.Bootswatch&version=2.5.1
#tool nuget:?package=WebSpark.Bootswatch&version=2.5.1
WebSpark.Bootswatch
A .NET Razor Class Library that provides seamless integration of Bootswatch themes into ASP.NET Core applications. Built on Bootstrap 5, this library offers modern, responsive theming with dynamic theme switching, light/dark mode support, and comprehensive caching mechanisms.
Framework Support: Requires .NET 10.0 for access to the latest NuGet packages and framework features.
Live Site: https://bootswatch.makeboldspark.com/
About
WebSpark.Bootswatch is a .NET Razor Class Library that provides seamless integration of Bootswatch themes into ASP.NET Core applications. See it live at https://bootswatch.makeboldspark.com/.
Built by Mark Hazleton — Mark Hazleton, Solutions Architect BootswatchSpark is part of the Make Bold Spark portfolio of technical demonstrations.
Latest Release: v2.5.1 - Dependency Alignment Release
🚨 Version 2.0 Breaking Changes
WebSpark.Bootswatch 2.0+ now targets .NET 10 exclusively. This major version change reflects our commitment to supporting the latest NuGet packages and framework features over broad framework compatibility.
Why .NET 10 Only?
We prioritized latest packages over legacy support for these reasons:
- ✅ Security & Performance: Access to latest security patches and .NET 10 performance improvements
- ✅ Modern Dependencies: Use current versions of Microsoft.Extensions.* packages (10.0.1+)
- ✅ Simplified Maintenance: Single target framework reduces complexity and testing burden
- ✅ Future-Ready: .NET 10 is the current release with latest features
- ⏰ .NET 8 Approaching EOL: Standard support ends November 2025
- ⏰ .NET 9 Short Lifecycle: STS (Standard Term Support) has shorter timeline
Migration from 1.x to 2.0
<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
</PropertyGroup>
<PackageReference Include="WebSpark.Bootswatch" Version="2.5.1" />
<PackageReference Include="WebSpark.HttpClientUtility" Version="2.5.1" />
No code changes required - All APIs remain backward compatible.
Need .NET 8 or 9 Support?
Use WebSpark.Bootswatch 1.34.0 which supports .NET 8.0, 9.0, and 10.0.
dotnet add package WebSpark.Bootswatch --version 1.34.0
dotnet add package WebSpark.HttpClientUtility --version 2.1.1
📋 Prerequisites
Framework Requirements
| Framework | Version 2.x | Version 1.x |
|---|---|---|
| .NET 10.0 | ✅ Required | ✅ Supported |
| .NET 9.0 | ❌ Not Supported | ✅ Supported |
| .NET 8.0 | ❌ Not Supported | ✅ Supported |
Version 2.0+ requires .NET 10.0 SDK installed on your development machine and build server.
Version 1.34.0 supports .NET 8.0 (LTS), 9.0 (STS), and 10.0 if you need backward compatibility.
Required Dependencies
<PackageReference Include="WebSpark.Bootswatch" Version="2.5.1" />
<PackageReference Include="WebSpark.HttpClientUtility" Version="2.5.1" />
<PackageReference Include="WebSpark.Bootswatch" Version="1.34.0" />
<PackageReference Include="WebSpark.HttpClientUtility" Version="2.1.1" />
PackageReference
<PackageReference Include="WebSpark.Bootswatch" Version="2.5.1" />
<PackageReference Include="WebSpark.HttpClientUtility" Version="2.5.1" />
Note: Version 2.0+ targets .NET 10.0 exclusively. The package will automatically use the correct assembly for your .NET 10 project.
✨ Features
- 🎨 Complete Bootswatch Integration: All official Bootswatch themes plus custom themes
- 🌓 Light/Dark Mode Support: Automatic theme detection and switching
- ⚡ High Performance: Built-in caching with
StyleCacheservice - 🔧 Easy Integration: Single-line setup with extension methods
- 📱 Responsive Design: Mobile-first Bootstrap 5 foundation
- 🎯 Tag Helper Support:
<bootswatch-theme-switcher />for easy UI integration - 🔒 Production Ready: Comprehensive error handling and fallback mechanisms
- 📖 Full Documentation: IntelliSense support and XML documentation
- 🚀 .NET 10 Optimized: Latest framework features and performance enhancements
Verify Installation:
Your .csproj should now include BOTH packages:
<PackageReference Include="WebSpark.Bootswatch" Version="2.5.1" />
<PackageReference Include="WebSpark.HttpClientUtility" Version="2.5.1" />
| Product | Versions 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. |
-
net10.0
- WebSpark.HttpClientUtility (>= 2.5.1)
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 |
|---|---|---|
| 2.5.1 | 131 | 5/18/2026 |
| 1.34.0 | 540 | 12/4/2025 |
| 1.32.0 | 345 | 11/13/2025 |
| 1.30.0 | 180 | 9/27/2025 |
| 1.20.1 | 275 | 7/1/2025 |
| 1.10.3 | 256 | 5/21/2025 |
| 1.10.2 | 240 | 5/20/2025 |
| 1.10.1 | 272 | 5/18/2025 |
| 1.10.0 | 330 | 5/15/2025 |
| 1.0.7 | 339 | 5/15/2025 |
| 1.0.6 | 286 | 5/5/2025 |
| 1.0.5 | 269 | 5/5/2025 |
| 1.0.4 | 263 | 5/4/2025 |
| 1.0.3 | 262 | 5/4/2025 |
| 1.0.2 | 240 | 5/4/2025 |
Version 2.5.1: Dependency Alignment Release - Aligned with WebSpark
ecosystem version 2.5.1. 📦 UPDATED: - WebSpark.HttpClientUtility updated to 2.5.1 - Aligned
versioning across all WebSpark NuGet packages for consistency 🎯 TARGETS: .NET 10.0 exclusively
for latest security updates, performance improvements, and framework features. 💡 VERSION 1.x
SUPPORT: If you need .NET 8 or .NET 9 support, use WebSpark.Bootswatch 1.34.0 🔄 MIGRATION:
1. Update your project to target .NET 10: <TargetFramework>net10.0</TargetFramework>
2. Update WebSpark.HttpClientUtility to 2.5.1 3. No code changes required - all APIs remain
compatible For complete setup guide, see:
https://github.com/MarkHazleton/WebSpark.Bootswatch/wiki/Getting-Started