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

# Get current theme

`GET /ui/themes/_current`

## Request

- Base URL: `/management/v2/environments/DEFAULT` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/management/v2/environments/DEFAULT/ui/themes/_current`
- Auth: none declared

Get default theme for a given environment for either Portal or Portal Next.

User must have the ENVIRONMENT_THEME[READ] permission.

## Query parameters

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

## Response `200`

The current 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

## Changes

- **2024-08-26** `cb02bfb0884d`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gravitee-io/apis/gravitee-io-apim-management-api-ui/changes/ui/themes/_current/get.md)

---

[API](https://skmtc.dev/gravitee-io/apis/gravitee-io-apim-management-api-ui.md) - [All operations](https://skmtc.dev/gravitee-io/apis/gravitee-io-apim-management-api-ui/llms.txt) - [OpenAPI document](https://skmtc.dev/gravitee-io/apis/gravitee-io-apim-management-api-ui/revisions/6e3899b14406?raw)
