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
<PackageReference Include="AspNetCore.SwaggerUI.Themes" Version="3.0.1" />
<PackageVersion Include="AspNetCore.SwaggerUI.Themes" Version="3.0.1" />
<PackageReference Include="AspNetCore.SwaggerUI.Themes" />
paket add AspNetCore.SwaggerUI.Themes --version 3.0.1
#r "nuget: AspNetCore.SwaggerUI.Themes, 3.0.1"
#:package AspNetCore.SwaggerUI.Themes@3.0.1
#addin nuget:?package=AspNetCore.SwaggerUI.Themes&version=3.0.1
#tool nuget:?package=AspNetCore.SwaggerUI.Themes&version=3.0.1
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 Started • View Built-in Themes • Full 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 | 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 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. |
-
net10.0
- Swashbuckle.AspNetCore (>= 9.0.6)
-
net8.0
- Swashbuckle.AspNetCore (>= 9.0.6)
-
net9.0
- Swashbuckle.AspNetCore (>= 9.0.6)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.