Skip to main content

Customize the UI

The panel is a Razor Class Library. A file with the same path in your app overrides the package file.

Override a view​

To changeCreate in your app
Layout (header, sidebar)Areas/SuperAdmin/Pages/Shared/_AdminLayout.cshtml
Sidebar menu markupViews/Shared/Components/SuperAdminMenu/Default.cshtml (model: SuperAdmin.Rbac.Menu.MenuViewModel)
Login pageAreas/SuperAdmin/Pages/Auth/Login.cshtml (keep @model SuperAdmin.Rbac.UI.Pages.Auth.LoginModel)
DashboardAreas/SuperAdmin/Pages/Index.cshtml (keep @model SuperAdmin.Rbac.UI.Pages.IndexModel)

Turn built-in pages off​

To use only the login, the guard and the services with your own management screens, turn pages off:

"SuperAdmin": { "UI": { "Pages": "Account" } } // login, logout, denied, profile, password change
"SuperAdmin": { "UI": { "Enabled": false } } // no built-in pages at all

Static files​

Static files are served from /_content/SuperAdmin.Rbac/:

  • super-admin/css/styles.css, superadmin.css, superadmin.js, color-mode.js
  • Bootstrap 5.3 and Font Awesome 5, with icon-* class names

The paths are also constants on SuperAdminAssets.

note

If you run with an environment other than Development straight from the build output (not published), call builder.WebHost.UseStaticWebAssets(); so that /_content/... files are found. Published apps do not need this.

Colours and dark mode​

See Theme and colours.