Admin UI Theming & Branding
The Vendure Admin UI can be themed to your company's style and branding.
AdminUiPlugin branding settings
The AdminUiPlugin allows you to specify your "brand" name, and allows you to control whether to display the Vendure name and version in the UI. Specifying a brand name will also set it as the title of the Admin UI in the browser.
For the simple level of branding shown above, the @vendure/ui-devkit package is not required.
Specifying custom logos
You can replace the Vendure logos and favicon with your own brand logo:
- Install
@vendure/ui-devkit - Configure the AdminUiPlugin to compile a custom build featuring your logos:
Theming
Much of the visual styling of the Admin UI can be customized by providing your own themes in a Sass stylesheet. For the most part, the Admin UI uses CSS custom properties to control colors and other styles. Here's a simple example which changes the color of links:
- Install
@vendure/ui-devkit - Create a custom stylesheet which overrides one or more of the CSS custom properties used in the Admin UI: To get an idea of which custom properties are available for theming, take a look at the source of the Default theme and the Dark theme
- Set this as a globalStyles extension:
Some customizable styles in Clarity, the Admin UI's underlying UI framework, are controlled by Sass variables, which can be found on the project's GitHub page. Similar to above, you can also provide your own values, which will override defaults set by the framework. Here's an example which changes the height of the main header:
- Install
@vendure/ui-devkitif not already installed - Create a custom stylesheet which overrides the target variable(s):
- Set this as a
sassVariableOverridesextension:
globalStyles and sassVariableOverrides extensions can be used in conjunction or separately.