WHAT YOU'LL LEARN
  • how to replace the default Webiny logo in the Admin application
  • how to customize the application title
  • how to adjust the Admin color theme

Overview
anchor

The Admin application ships with Webiny’s default logo, title, and color theme. You can replace all of these through an Admin extension using the AdminConfig API — no changes to core Webiny code required.

Quick Setup

Run the following command to quickly set up the extension in your Webiny project:

yarn webiny extension whitelabeling

Once the extension is in place, start the webiny watch command:

yarn webiny watch admin

Alternatively, continue reading this article to learn how to create this extension from scratch.

Creating the Extension
anchor

Create a new file extensions/AdminBranding/AdminBranding.tsx:

extensions/AdminBranding/AdminBranding.tsx

Place your logo image at extensions/AdminBranding/logo.png. The AdminConfig.Public wrapper makes the configuration available throughout the Admin app.

The three customization points are:

  • Title — sets the application title shown in the browser tab and header
  • Logo — accepts two logo variants: squareLogo (used in the sidebar) and horizontalLogo (used on the login page)
  • Theme.Color — overrides theme palette entries; palette is the color role (e.g., "primary", "neutral") and color is any valid CSS color value

Registering the Extension
anchor

Add the extension to webiny.config.tsx:

webiny.config.tsx

With the extension registered, run the following command to see your changes in action:

If everything went correctly, you should see your custom branding applied to the Admin application:

Admin application with custom branding appliedAdmin application with custom branding applied
(click to enlarge)