Articles in this section

Update your APIM Developer Portal theme

Administrators can change the default theme of the Developer Portal to a custom theme. To modify the theme, navigate to Settings → Theme. This page allows the administrator to customize the Developer Portal's look and feel. The top menu includes the following options:

Theme.png
  • Fullscreen: Opens the preview in a new window.

  • Reset: Resets the theme from the last backup. Backups occur when you click Save.

  • Save: Saves your theme.

  • Enabled: Activates the theme in the APIM Portal.

  • Import: Upload a custom theme in JSON format.

    Tip

    Export the current theme to view the required structure for the JSON file.

  • Export: Downloads your current theme in JSON format.

  • Restore Default Theme: Overwrites your modifications with the default theme.

Basic customization

Below are some basic customization settings you can configure.

Property

Use case

Images

Show logos. An optional logo is used for the homepage and the footer. Using the default logo overrides the optional logo.

Homepage

Add a Homepage background image.

Colors

Define primary, neutral, and font colors.

Fonts

Choose font family and sizes. Medium sizes are used by default.

Advanced customization

Each component uses its own properties, which are grouped into common variables where possible. To further customize the Developer Portal, you can define the graphic properties to expose for each component.

For example, hover your mouse over the color bubble to see common component colors. If a common property is used, it appears in the placeholder field for other property types.

Override theme files

Celigo API Management includes a default theme and two default logos, located in the /themes folder of the API distribution folder:

  • definition.json

  • logo.png

  • logo-light.png

To customize the Developer Portal theme, either modify these three files or specify a new folder in the gravitee.yml file:

# Portal themes
portal:
  themes:
    path: ${gravitee.home}/themes

This configuration is commented out by default, and the path is ${gravitee.home}/themes.

For assistance creating a theme, use the editor in Settings → Theme and export it to a JSON file via the Export button in the header menu. Keep in mind:

  • Images and logos cannot be changed using this method. The two files must be edited in the distribution.

  • Exported themes do not have the same format as the provided definition.json file, requiring minor edits to the exported theme.

Expected format:

{
  "data": [
    {
      "name": "gv-theme",
      "css": [
        {
          "name": "--gv-theme-color-darker",
          "description": "Primary darker color",
          "type": "color",
          "default": "#383E3F",
          "value": "#383E3F"
        },
        ...
      ]
    },
    ...
  ]
}