Swagger.Bootstrap 1.0.6

There is a newer version of this package available.
See the version list below for details.
dotnet add package Swagger.Bootstrap --version 1.0.6
                    
NuGet\Install-Package Swagger.Bootstrap -Version 1.0.6
                    
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="Swagger.Bootstrap" Version="1.0.6" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Swagger.Bootstrap" Version="1.0.6" />
                    
Directory.Packages.props
<PackageReference Include="Swagger.Bootstrap" />
                    
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 Swagger.Bootstrap --version 1.0.6
                    
#r "nuget: Swagger.Bootstrap, 1.0.6"
                    
#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 Swagger.Bootstrap@1.0.6
                    
#: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=Swagger.Bootstrap&version=1.0.6
                    
Install as a Cake Addin
#tool nuget:?package=Swagger.Bootstrap&version=1.0.6
                    
Install as a Cake Tool

<div align="center">

Latest Release License: NonCommercial Open Issues Stars

</div>

Swagger.Bootstrap

Swagger.Bootstrap is an add-on for Swagger UI that gives it a modern Bootstrap look and feel.
It also adds a simple theme switcher so users can toggle between Light, Dark, Oled and System.

✨ Features

  • Bootstrap-inspired styling for Swagger UI
  • Built-in theme switcher (light/dark)
  • Easy integration with ASP.NET Core Swagger setup

📂 Getting Started

1. NuGet package manager

Install using the NuGet package manager or by running one of the following commands.

dotnet add package Swagger.Bootstrap
Install-Package Swagger.Bootstrap

Configure Swagger.Bootstrap

In your Program.cs or Startup.cs, simply replace the default UseSwaggerUI with:

app.UseSwaggerBootstrap(c =>
{
    c.SwaggerEndpoint("/swagger/v1/swagger.json", "My API V1");
});

Or if you want to keep your existing SwaggerUI configuration:
(app.UseStaticFiles must be set)

app.UseSwaggerUI(c =>
{
    c.SwaggerEndpoint("/swagger/v1/swagger.json", "My API V1");
    c.AddSwaggerBootstrap();
});

app.UseStaticFiles();

2. Manual installation

Download the files

Copy the provided swagger.bootstrap.min.css and swagger.bootstrap.min.js files into your projects static file location, wwwroot.

Enable static files

Add the following, to your Program.cs or Startup.cs

app.UseStaticFiles();

Inject into Swagger UI

app.UseSwaggerUI(c =>
{
    c.SwaggerEndpoint("/swagger/v1/swagger.json", "My API V1");

    // Inject custom CSS
    c.InjectStylesheet("/swagger.bootstrap.min.css");

    // Inject custom JavaScript
    c.InjectJavascript("/swagger.bootstrap.min.js");
});
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 is compatible.  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 was computed.  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
2.0.2 155 3/22/2026
2.0.1 111 3/10/2026
2.0.0 105 3/9/2026
1.2.0 110 3/5/2026
1.1.1 675 12/11/2025
1.1.0 368 12/8/2025
1.0.7 212 12/4/2025
1.0.6 384 10/17/2025
1.0.4 166 10/17/2025
1.0.3 226 9/7/2025
1.0.2 186 9/6/2025
1.0.1 172 9/6/2025
1.0.0 205 9/2/2025