---
title: "Get default theme"
method: GET
path: "/ui/themes/_default"
tags: ["Management UI"]
---

# Get default theme

`GET /ui/themes/_default`

Get default theme for a given environment.
Only PORTAL_NEXT is currently supported.

User must have the ENVIRONMENT_THEME[READ] permission.

## Query parameters

- `type` 'PORTAL' | 'PORTAL_NEXT' — Available theme types

## Response `200`

The default theme.

- union
  - ThemePortal — Theme used on the Portal
    - `id` string — Theme ID
    - `name` string — Theme ID
    - `type` 'PORTAL' | 'PORTAL_NEXT' — Available theme types
    - `createdAt` string, date-time — The date (as timestamp) when the Theme was created.
    - `updatedAt` string, date-time — The last date (as timestamp) when the Theme was updated.
    - `enabled` boolean — If the theme is active
    - `logo` string — Theme logo
    - `optionalLogo` string — Optional Theme logo
    - `favicon` string — Theme favicon
    - `definition` PortalDefinition
      - `data` PortalComponentDefinition[] — List of component definitions
        - `name` string — Name of the component
        - `css` PortalCssDefinition[] — List of CSS variables
          - `name` string — Name of the CSS variable
          - `description` string — Description of CSS variable
          - `value` string — Value for CSS variable
          - `defaultValue` string — Default value for CSS variable
          - `type` 'color' | 'length' | 'string' | 'image'
    - `backgroundImage` string — Background image used in header
  - ThemePortalNext — Theme used in Portal-Next
    - `id` string — Theme ID
    - `name` string — Theme ID
    - `type` 'PORTAL' | 'PORTAL_NEXT' — Available theme types
    - `createdAt` string, date-time — The date (as timestamp) when the Theme was created.
    - `updatedAt` string, date-time — The last date (as timestamp) when the Theme was updated.
    - `enabled` boolean — If the theme is active
    - `logo` string — Theme logo
    - `optionalLogo` string — Optional Theme logo
    - `favicon` string — Theme favicon
    - `definition` PortalNextDefinition — Theme definition used for Portal-Next
      - `color` PortalNextDefinitionColor — Theme definition used for Portal-Next
        - `primary` string — Primary hex code color seed for Theme palette
        - `secondary` string — Secondary hex code color seed for Theme palette
        - `tertiary` string — Tertiary hex code color seed for Theme palette
        - `error` string — Error hex code color seed for Theme palette
        - `pageBackground` string — Background hex code color
        - `cardBackground` string — Background hex code color
      - `font` PortalNextDefinitionFont — Theme definition used for Portal-Next
        - `fontFamily` string — Font-family used for Portal-Next
      - `customCss` string — Custom CSS for Portal-Next

## Other responses

- `default` — Generic error response

---

[API](https://skmtc.net/gravitee-io/apis/gravitee-io-apim-management-api-ui.md) · [All operations](https://skmtc.net/gravitee-io/apis/gravitee-io-apim-management-api-ui/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gravitee-io/gravitee-io-apim-management-api-ui/versions/6e3899b14406/schema)
