Enables the usage of custom css for the dashboard, comes with two predefined themes.
Dark by @odinserj (Already included in latest version of HangFire)
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.