AspNetCore.SwaggerUI.Themes 3.0.1

dotnet add package AspNetCore.SwaggerUI.Themes --version 3.0.1
                    
NuGet\Install-Package AspNetCore.SwaggerUI.Themes -Version 3.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="AspNetCore.SwaggerUI.Themes" Version="3.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AspNetCore.SwaggerUI.Themes" Version="3.0.1" />
                    
Directory.Packages.props
<PackageReference Include="AspNetCore.SwaggerUI.Themes" />
                    
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 AspNetCore.SwaggerUI.Themes --version 3.0.1
                    
#r "nuget: AspNetCore.SwaggerUI.Themes, 3.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 AspNetCore.SwaggerUI.Themes@3.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=AspNetCore.SwaggerUI.Themes&version=3.0.1
                    
Install as a Cake Addin
#tool nuget:?package=AspNetCore.SwaggerUI.Themes&version=3.0.1
                    
Install as a Cake Tool

AspNetCore.SwaggerUI.Themes

Give your ASP.NET Core API documentation the look it deserves!

Switch themes at runtime  •  Unlock new capabilities  •  Create and choose your custom style...and more!

Get StartedView Built-in ThemesFull Documentation

⚠️ Version 3.0 Breaking Changes
Upgrading from v2.0.0? Please review the Migration Guide for important API changes.

🚀 Quick Start

dotnet add package AspNetCore.SwaggerUI.Themes

Quick Start

// Apply a theme
app.UseSwaggerUI(Theme.Dark);

// Or enable runtime theme switcher!
app.UseSwaggerUI(Theme.Dark, c => c.EnableThemeSwitcher());

Note: The UseSwaggerUI() method is provided by Swashbuckle.AspNetCore. This package adds convenient overloads to apply themes seamlessly.

✨ Features

  • 🔥 Theme Switcher - Switch built-in and custom themes dynamically without page reload

  • Built-in Themes - Choose from predefined themes ready to use

  • Custom Themes - Build your own themes with full control, or create standalone themes with zero dependencies

  • Advanced Features - Enhance your documentation with powerful UI capabilities

  • ...discover more in the Wiki!

📚 Basic Usage Examples

using AspNetCore.Swagger.Themes;

...

// Use a built-in theme
app.UseSwaggerUI(Theme.Dark);

// Enable theme switcher with auto-discovery
app.UseSwaggerUI(Theme.Dark, c =>
{
    c.EnableThemeSwitcher();
});

// Or with all advanced features
app.UseSwaggerUI(Theme.Dark, c =>
{
    c.EnableAllAdvancedOptions();
});

// Or use your custom theme from assembly
app.UseSwaggerUI(Assembly.GetExecutingAssembly(), "my-theme.css", c =>
{
    c.EnableThemeSwitcher(); // Works with custom themes too!
});

...

Discover all the features and customization options in the documentation!
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 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
3.0.1 256 11/28/2025
2.0.0 113,479 11/18/2024
1.0.0 8,125 8/19/2024
0.5.1 502 7/1/2024
0.5.0 1,650 3/24/2024
0.4.0 262 3/3/2024
0.3.0 225 2/22/2024
0.2.0 334 1/25/2024
0.1.0 304 1/22/2024