Back to Keystone

Custom Admin UI Logo

docs/content/docs/guides/custom-admin-ui-logo.md

2026-07-282.1 KB
Original Source

In this guide we'll show you how to add a custom logo to the Keystone Admin UI.

{% hint kind="tip" %} Presently the only replaceable component in the Admin UI is the logo. If you have suggestions as to other components you would like to be able to customise, let us know on Slack {% /hint %}

To import a custom component for rendering within the Admin UI, ensure that the admin/config.tsx file exists in the root of your Keystone project. This file expects a named export components.

tsx
// admin/config.tsx
function CustomLogo () {
    return <h3>Custom Logo here</h3>
}

export const components = {
    Logo: CustomLogo
}

If you have styling constraints, we recommend using @keystar/ui components, which is the design system used internally by Keystone's Admin UI.

tsx
// admin/config.tsx

import { Heading } from '@keystar/ui/typography';

function CustomLogo () {
    return <h3 css={{
        background: 'papayawhip'
    }}>Custom Logo here</h3>
}

export const components = {
    Logo: CustomLogo
}

Of course this is purely a recommendation, if you would prefer to roll your own css-in-js solution in with your custom component please feel free to! Although this may require additional configuration outside of the scope of this guide.

Once you've added your custom logo component you should see it rendered out in the Admin UI.

{% related-content %} {% well heading="Example: Custom Admin UI Logo" href="https://github.com/keystonejs/keystone/tree/main/examples/custom-admin-ui-logo" target="_blank" %} Adds a custom logo component in the Admin UI. Builds on the Task Manager starter project. {% /well %} {% well heading="Custom Admin UI Navigation Guide" href="/docs/guides/custom-admin-ui-navigation" %} Learn how to create your own custom Navigation components in Keytone’s Admin UI. {% /well %} {% well heading="Custom Admin UI Pages Guide" href="/docs/guides/custom-admin-ui-pages" %} Learn how to add your own custom pages to Keystone’s Admin UI. {% /well %}

{% /related-content %}