Skip to content

Enables the usage of custom css for the Hangfire dashboard.

License

Notifications You must be signed in to change notification settings

brodrigz/Hangfire.Dashboard.Dark

 
 

Repository files navigation

Hangfire.Dashboard.Dark

NuGet

Enables the usage of custom css for the dashboard, comes with two predefined themes.

Themes

Dark by @odinserj (Already included in latest version of HangFire)

dashboard1 dashboard2

Glass

image image

Setup

In .NET Core's Startup.cs:

using Hangfire.Dashboard.Themes;

public void ConfigureServices(IServiceCollection services)
{
    services.AddHangfire(config =>
    {
        ...
        config.UseCustomTheme(DashboardThemes.Theme); //Select custom theme
    });
}

Otherwise,

GlobalConfiguration.Configuration
    ...
    .UseCustomTheme(DashboardThemes.Theme)

And for using custom .css files (must be embedded resource)

GlobalConfiguration.Configuration
    ...
    .AddCustomCss(assembly,"YourAssembly.YourPath.file.css")

After changing themes remember to clear cache (CTRL+F5) otherwise the new css won't load.

About

Enables the usage of custom css for the Hangfire dashboard.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 50.5%
  • CSS 49.5%