Simple Themes
Overview
This API has been available since 1.51.0
Simple UI login themes can be configured to enable custom styling for your FusionAuth login workflow. Themes are configured per Tenant or optionally by Application.
The following APIs are provided to manage Simple Themes.
Create a Simple Theme
This API is used to create a new Simple Theme.
Request
Request Parameters
themeId
UUIDDefaults to secure random UUIDThe Id to use for the new Simple Theme. If not specified a secure random UUID will be generated.
Request Body
Note that the rest of this page will assume that the theme.type of this theme is simple
.
theme.data
ObjectAn object that can hold any information about the Theme that should be persisted.
theme.defaultMessages
StringA properties file formatted String containing at least all of the message keys defined in the FusionAuth shipped messages file.
theme.localizedMessages
Map<Locale,String>A Map of localized versions of the messages. The key is the Locale and the value is a properties file formatted String.
theme.name
StringrequiredA unique name for the Theme.
theme.type
StringDefaults to advancedAvailable since 1.51.0The type of the Theme. This value determines what content is required for the Theme. There are two distinct values.
advanced
- This is the default FusionAuth theme type. This type allows for full customization of the html, css, and messaging via Freemarker templates. If a Theme isadvanced
then the theme.defaultMessages and theme.templates fields are required. The theme.defaultMessages should specify every message in the message bundle. See Theme Localization.simple
- A simple theme only requires a set of variables that will applied to css across the theme. If a Theme issimple
then the theme.variables field is required. If a theme issimple
then the theme.defaultMessages need only specify any text that you would like to change from what is included in theme.
theme.variables.alertBackgroundColor
StringrequiredThe background color of the alert message. Colors must be a valid hex color code, RGB, or HSL value.
theme.variables.alertFontColor
StringrequiredThe color of the font in the alert message. Colors must be a valid hex color code, RGB, or HSL value.
theme.variables.backgroundImageURL
StringThe url of the background image. Will replace the page background color. Must be a valid absolute URL.
theme.variables.backgroundSize
StringSpecifies the background-size of the background image. Valid values are repeat
, contain
, and cover
.
Required if theme.variables.backgroundImageURL is provided.
theme.variables.borderRadius
StringrequiredSpecifies the border-radius property which is applied to buttons, panels, and form fields in the theme. Must be a valid numeric value with a px
, em
, or rem
suffix.
theme.variables.deleteButtonColor
StringrequiredThe color of the delete button. Colors must be a valid hex color code, RGB, or HSL value.
theme.variables.deleteButtonFocusColor
StringrequiredThe color of the delete button when clicked. Colors must be a valid hex color code, RGB, or HSL value.
theme.variables.deleteButtonTextColor
StringrequiredThe color of the text in the delete button. Colors must be a valid hex color code, RGB, or HSL value.
theme.variables.deleteButtonTextFocusColor
StringrequiredThe color of the text in the delete button when clicked. Colors must be a valid hex color code, RGB, or HSL value.
theme.variables.errorIconColor
StringrequiredThe color of the icon in error alert messages in the theme. Colors must be a valid hex color code, RGB, or HSL value.
theme.variables.errorFontColor
StringrequiredThe color of the font for error messages. Colors must be a valid hex color code, RGB, or HSL value.
theme.variables.fontColor
StringrequiredThe color of the text in the theme. Colors must be a valid hex color code, RGB, or HSL value.
theme.variables.fontFamily
StringrequiredSpecifies the font-family for the theme.
theme.variables.footerDisplay
BooleanDetermines if the “powered by FusionAuth” footer is displayed in the theme. A valid license is required to set this value to false
.
theme.variables.iconBackgroundColor
StringrequiredThe color of the form field icon background. Colors must be a valid hex color code, RGB, or HSL value.
theme.variables.iconColor
StringrequiredThe color of the icons in the theme. Colors must be a valid hex color code, RGB, or HSL value.
theme.variables.infoIconColor
StringrequiredThe color of the icon in info alert messages in the theme. Colors must be a valid hex color code, RGB, or HSL value.
theme.variables.inputBackgroundColor
StringrequiredThe color of the form field background. Colors must be a valid hex color code, RGB, or HSL value.
theme.variables.inputIconColor
StringrequiredThe color of the form field icon. Colors must be a valid hex color code, RGB, or HSL value.
theme.variables.inputTextColor
StringrequiredThe color of the form field text. Colors must be a valid hex color code, RGB, or HSL value.
theme.variables.linkTextColor
StringrequiredThe color of the text in hyperlinks. Colors must be a valid hex color code, RGB, or HSL value.
theme.variables.linkTextFocusColor
StringrequiredThe color of the text in hyperlinks that have been visited. Colors must be a valid hex color code, RGB, or HSL value.
theme.variables.logoImageSize
StringThe size of the logo image. Must be a valid numeric value with a px
, em
, or rem
suffix.
Required if theme.variables.logoImageURL is provided.
theme.variables.logoImageURL
StringThe url of the logo image. Must be a valid absolute URL. Can be null
.
theme.variables.monoFontColor
StringrequiredThe color of the monospaced text. Colors must be a valid hex color code, RGB, or HSL value.
theme.variables.monoFontFamily
StringrequiredThe font font-family.
theme.variables.pageBackgroundColor
StringrequiredThe color of the page background. Colors must be a valid hex color code, RGB, or HSL value.
theme.variables.panelBackgroundColor
StringrequiredThe color of the panels in the theme. Colors must be a valid hex color code, RGB, or HSL value.
theme.variables.primaryButtonColor
StringrequiredThe color of the primary button. Colors must be a valid hex color code, RGB, or HSL value.
theme.variables.primaryButtonFocusColor
StringrequiredThe color of primary button when clicked. Colors must be a valid hex color code, RGB, or HSL value.
theme.variables.primaryButtonTextColor
StringrequiredThe color of the text in the primary button. Colors must be a valid hex color code, RGB, or HSL value.
theme.variables.primaryButtonTextFocusColor
StringrequiredThe color of the text in the primary button when clicked. Colors must be a valid hex color code, RGB, or HSL value.
Example Simple Theme Request JSON
{
"theme": {
"data": {
"addedBy": "richard"
},
"defaultMessages": "title=Login",
"localizedMessages": {
"fr": "title=Identifiant",
"es": "title=Iniciar sesión"
},
"name": "White Theme",
"type": "simple",
"variables": {
"alertBackgroundColor": "#ffffff",
"alertFontColor": "#ffffff",
"backgroundImageURL": "https://example.com/mybackground.png",
"backgroundRepeat": "no-repeat",
"backgroundSize": "cover",
"borderRadius": "1.00rem",
"deleteButtonColor": "#ffffff",
"deleteButtonFocusColor": "#cccccc",
"deleteButtonTextColor": "#ffffff",
"deleteButtonTextFocusColor": "#cccccc",
"errorFontColor": "#ffffff",
"fontColor": "#ffffff",
"fontFamily": "sans-serif",
"footerDisplay": "flex",
"iconBackgroundColor": "#ffffff",
"iconColor": "#ffffff",
"inputBackgroundColor": "#ffffff",
"inputIconColor": "#ffffff",
"inputTextColor": "#ffffff",
"linkTextColor": "#ffffff",
"linkTextFocusColor": "#cccccc",
"logoImageDisplay": "flex",
"logoImageSize": "7rem",
"logoImageURL": "https://example.com/mylogo.png",
"monoFontColor": "#ffffff",
"monoFontFamily": "monospace",
"pageBackgroundColor": "#ffffff",
"panelBackgroundColor": "#ffffff",
"primaryButtonColor": "#ffffff",
"primaryButtonFocusColor": "#cccccc",
"primaryButtonTextColor": "#ffffff",
"primaryButtonTextFocusColor": "#cccccc"
}
}
}
Request Parameters
themeId
UUIDDefaults to secure random UUIDThe Id to use for the new Theme. If not specified a secure random UUID will be generated.
Request Body
sourceThemeId
UUIDrequiredThe Id of an existing Theme from which a copy will be made.
The defaultMessages , localizedMessages , and variables from the source Theme will be copied to the new Theme.
theme.name
StringrequiredA unique name for the Theme.
Example request JSON
{
"sourceThemeId": "64773453-bb11-457b-a3d6-7475ec2259d0",
"theme": {
"name": "Orange Theme - copied"
}
}
Response
Response CodesCode | Description |
---|---|
200 | The request was successful. The response will contain a JSON body. |
400 | The request was invalid and/or malformed. The response will contain an Errors JSON Object with the specific errors. This status will also be returned if a paid FusionAuth license is required and is not present. |
401 | You did not supply a valid Authorization header. The header was omitted or your API key was not valid. The response will be empty. See Authentication. |
404 | The object you requested doesn't exist. The response will be empty. |
500 | There was an internal error. A stack trace is provided and logged in the FusionAuth log files. The response will be empty. |
Response Body
theme.data
ObjectAn object that can hold any information about the Theme that should be persisted.
theme.defaultMessages
StringA properties file formatted String containing messages used within the templates.
theme.id
UUIDThe unique Id of the Theme.
theme.insertInstant
LongThe instant that the theme was added to the FusionAuth database.
theme.lastUpdateInstant
LongThe instant that the theme was last updated in the FusionAuth database.
theme.localizedMessages
Map<Locale,String>A Map of localized versions of the messages. The key is the Locale and the value is a properties file formatted String.
theme.name
StringA unique name for the Theme.
theme.variables.alertBackgroundColor
StringThe background color of the alert message.
theme.variables.alertFontColor
StringThe color of the font in the alert message.
theme.variables.backgroundImageURL
StringThe url of the background image. Will replace the page background color.
theme.variables.backgroundSize
StringSpecifies the background-size of the background image.
theme.variables.borderRadius
StringSpecifies the border-radius property which is applied to buttons, panels, and form fields in the theme.
theme.variables.deleteButtonColor
StringThe color of the delete button.
theme.variables.deleteButtonFocusColor
StringThe color of the delete button when clicked.
theme.variables.deleteButtonTextColor
StringThe color of the text in the delete button.
theme.variables.deleteButtonTextFocusColor
StringThe color of the text in the delete button when clicked.
theme.variables.errorIconColor
StringThe color of the icon in error alert messages in the theme.
theme.variables.errorFontColor
StringThe color of the font for error messages.
theme.variables.fontColor
StringThe color of the text in the theme.
theme.variables.fontFamily
StringSpecifies the font-family for the theme.
theme.variables.footerDisplay
BooleanDetermines if the “powered by FusionAuth” footer is displayed in the theme.
theme.variables.iconBackgroundColor
StringThe color of the form field icon background.
theme.variables.iconColor
StringThe color of the icons in the theme.
theme.variables.infoIconColor
StringThe color of the icon in info alert messages in the theme.
theme.variables.inputBackgroundColor
StringThe color of the form field background.
theme.variables.inputIconColor
StringThe color of the form field icon.
theme.variables.inputTextColor
StringThe color of the form field text.
theme.variables.linkTextColor
StringThe color of the text in hyperlinks.
theme.variables.linkTextFocusColor
StringThe color of the text in hyperlinks that have been visited.
theme.variables.logoImageSize
StringThe size of the logo image.
theme.variables.logoImageURL
StringThe url of the logo image.
theme.variables.monoFontColor
StringThe color of the monospaced text.
theme.variables.monoFontFamily
StringThe font font-family.
theme.variables.pageBackgroundColor
StringThe color of the page background.
theme.variables.panelBackgroundColor
StringThe color of the panels in the theme.
theme.variables.primaryButtonColor
StringThe color of the primary button.
theme.variables.primaryButtonFocusColor
StringThe color of primary button when clicked.
theme.variables.primaryButtonTextColor
StringThe color of the text in the primary button.
theme.variables.primaryButtonTextFocusColor
StringThe color of the text in the primary button when clicked.
Example Simple Theme Response JSON
{
"theme": {
"data": {
"addedBy": "richard"
},
"defaultMessages": "title=Login",
"id": "58324824-6539-4305-8117-b28f26466ab9",
"insertInstant": 1716401547557,
"lastUpdateInstant": 1716401606387,
"localizedMessages": {
"fr": "title=Identifiant",
"es": "title=Iniciar sesión"
},
"name": "White Theme",
"type": "simple",
"variables": {
"alertBackgroundColor": "#ffffff",
"alertFontColor": "#ffffff",
"backgroundImageURL": "https://example.com/mybackground.png",
"backgroundRepeat": "no-repeat",
"backgroundSize": "cover",
"borderRadius": "1.00rem",
"deleteButtonColor": "#ffffff",
"deleteButtonFocusColor": "#cccccc",
"deleteButtonTextColor": "#ffffff",
"deleteButtonTextFocusColor": "#cccccc",
"errorFontColor": "#ffffff",
"fontColor": "#ffffff",
"fontFamily": "sans-serif",
"footerDisplay": "flex",
"iconBackgroundColor": "#ffffff",
"iconColor": "#ffffff",
"inputBackgroundColor": "#ffffff",
"inputIconColor": "#ffffff",
"inputTextColor": "#ffffff",
"linkTextColor": "#ffffff",
"linkTextFocusColor": "#cccccc",
"logoImageDisplay": "flex",
"logoImageSize": "7rem",
"logoImageURL": "https://example.com/mylogo.png",
"monoFontColor": "#ffffff",
"monoFontFamily": "monospace",
"pageBackgroundColor": "#ffffff",
"panelBackgroundColor": "#ffffff",
"primaryButtonColor": "#ffffff",
"primaryButtonFocusColor": "#cccccc",
"primaryButtonTextColor": "#ffffff",
"primaryButtonTextFocusColor": "#cccccc"
}
}
}
Retrieve a Simple Theme
This API is used to retrieve a single Theme by unique Id or all of the Themes.
Request
Request Parameters
themeId
UUIDrequiredThe unique Id of the Theme to retrieve.
Response
The response for this API contains either a single Theme or all of the Themes. When you call this API with an Id the response will contain a single Theme. When you call this API without an Id the response will contain all of the themes. Both response types are defined below along with an example JSON response.
Response CodesCode | Description |
---|---|
200 | The request was successful. The response will contain a JSON body. |
400 | The request was invalid and/or malformed. The response will contain an Errors JSON Object with the specific errors. This status will also be returned if a paid FusionAuth license is required and is not present. |
401 | You did not supply a valid Authorization header. The header was omitted or your API key was not valid. The response will be empty. See Authentication. |
404 | The object you requested doesn't exist. The response will be empty. |
500 | There was an internal error. A stack trace is provided and logged in the FusionAuth log files. The response will be empty. |
Response Body
theme.data
ObjectAn object that can hold any information about the Theme that should be persisted.
theme.defaultMessages
StringA properties file formatted String containing messages used within the templates.
theme.id
UUIDThe unique Id of the Theme.
theme.insertInstant
LongThe instant that the theme was added to the FusionAuth database.
theme.lastUpdateInstant
LongThe instant that the theme was last updated in the FusionAuth database.
theme.localizedMessages
Map<Locale,String>A Map of localized versions of the messages. The key is the Locale and the value is a properties file formatted String.
theme.name
StringA unique name for the Theme.
theme.variables.alertBackgroundColor
StringThe background color of the alert message.
theme.variables.alertFontColor
StringThe color of the font in the alert message.
theme.variables.backgroundImageURL
StringThe url of the background image. Will replace the page background color.
theme.variables.backgroundSize
StringSpecifies the background-size of the background image.
theme.variables.borderRadius
StringSpecifies the border-radius property which is applied to buttons, panels, and form fields in the theme.
theme.variables.deleteButtonColor
StringThe color of the delete button.
theme.variables.deleteButtonFocusColor
StringThe color of the delete button when clicked.
theme.variables.deleteButtonTextColor
StringThe color of the text in the delete button.
theme.variables.deleteButtonTextFocusColor
StringThe color of the text in the delete button when clicked.
theme.variables.errorIconColor
StringThe color of the icon in error alert messages in the theme.
theme.variables.errorFontColor
StringThe color of the font for error messages.
theme.variables.fontColor
StringThe color of the text in the theme.
theme.variables.fontFamily
StringSpecifies the font-family for the theme.
theme.variables.footerDisplay
BooleanDetermines if the “powered by FusionAuth” footer is displayed in the theme.
theme.variables.iconBackgroundColor
StringThe color of the form field icon background.
theme.variables.iconColor
StringThe color of the icons in the theme.
theme.variables.infoIconColor
StringThe color of the icon in info alert messages in the theme.
theme.variables.inputBackgroundColor
StringThe color of the form field background.
theme.variables.inputIconColor
StringThe color of the form field icon.
theme.variables.inputTextColor
StringThe color of the form field text.
theme.variables.linkTextColor
StringThe color of the text in hyperlinks.
theme.variables.linkTextFocusColor
StringThe color of the text in hyperlinks that have been visited.
theme.variables.logoImageSize
StringThe size of the logo image.
theme.variables.logoImageURL
StringThe url of the logo image.
theme.variables.monoFontColor
StringThe color of the monospaced text.
theme.variables.monoFontFamily
StringThe font font-family.
theme.variables.pageBackgroundColor
StringThe color of the page background.
theme.variables.panelBackgroundColor
StringThe color of the panels in the theme.
theme.variables.primaryButtonColor
StringThe color of the primary button.
theme.variables.primaryButtonFocusColor
StringThe color of primary button when clicked.
theme.variables.primaryButtonTextColor
StringThe color of the text in the primary button.
theme.variables.primaryButtonTextFocusColor
StringThe color of the text in the primary button when clicked.
Example Simple Theme Response JSON
{
"theme": {
"data": {
"addedBy": "richard"
},
"defaultMessages": "title=Login",
"id": "58324824-6539-4305-8117-b28f26466ab9",
"insertInstant": 1716401547557,
"lastUpdateInstant": 1716401606387,
"localizedMessages": {
"fr": "title=Identifiant",
"es": "title=Iniciar sesión"
},
"name": "White Theme",
"type": "simple",
"variables": {
"alertBackgroundColor": "#ffffff",
"alertFontColor": "#ffffff",
"backgroundImageURL": "https://example.com/mybackground.png",
"backgroundRepeat": "no-repeat",
"backgroundSize": "cover",
"borderRadius": "1.00rem",
"deleteButtonColor": "#ffffff",
"deleteButtonFocusColor": "#cccccc",
"deleteButtonTextColor": "#ffffff",
"deleteButtonTextFocusColor": "#cccccc",
"errorFontColor": "#ffffff",
"fontColor": "#ffffff",
"fontFamily": "sans-serif",
"footerDisplay": "flex",
"iconBackgroundColor": "#ffffff",
"iconColor": "#ffffff",
"inputBackgroundColor": "#ffffff",
"inputIconColor": "#ffffff",
"inputTextColor": "#ffffff",
"linkTextColor": "#ffffff",
"linkTextFocusColor": "#cccccc",
"logoImageDisplay": "flex",
"logoImageSize": "7rem",
"logoImageURL": "https://example.com/mylogo.png",
"monoFontColor": "#ffffff",
"monoFontFamily": "monospace",
"pageBackgroundColor": "#ffffff",
"panelBackgroundColor": "#ffffff",
"primaryButtonColor": "#ffffff",
"primaryButtonFocusColor": "#cccccc",
"primaryButtonTextColor": "#ffffff",
"primaryButtonTextFocusColor": "#cccccc"
}
}
}
Responses from the theme API can contain Advanced Themes as well.
Response Body
themes
ArrayThe list of Theme objects.
themes[x].data
ObjectAn object that can hold any information about the Theme that should be persisted.
themes[x].defaultMessages
IntegerA properties file formatted String containing messages used within the templates.
themes[x].id
UUIDThe unique Id of the Theme.
themes[x].insertInstant
LongThe instant that the theme was added to the FusionAuth database.
themes[x].lastUpdateInstant
LongThe instant that the theme was last updated in the FusionAuth database.
themes[x].localizedMessages
Map<Locale,String>A Map of localized versions of the messages. The key is the Locale and the value is a properties file formatted String.
themes[x].name
StringA unique name for the Theme.
themes[x].variables.alertBackgroundColor
StringThe background color of the alert message.
themes[x].variables.alertFontColor
StringThe color of the font in the alert message.
themes[x].variables.backgroundImageURL
StringThe url of the background image. Will replace the page background color.
themes[x].variables.backgroundSize
StringSpecifies the background-size of the background image.
themes[x].variables.borderRadius
StringSpecifies the border-radius property which is applied to buttons, panels, and form fields in the theme.
themes[x].variables.deleteButtonColor
StringThe color of the delete button.
themes[x].variables.deleteButtonFocusColor
StringThe color of the delete button when clicked.
themes[x].variables.deleteButtonTextColor
StringThe color of the text in the delete button.
themes[x].variables.deleteButtonTextFocusColor
StringThe color of the text in the delete button when clicked.
themes[x].variables.errorIconColor
StringThe color of the icon in error alert messages in the theme.
themes[x].variables.errorFontColor
StringThe color of the font for error messages.
themes[x].variables.fontColor
StringThe color of the text in the theme.
themes[x].variables.fontFamily
StringSpecifies the font-family for the theme.
themes[x].variables.footerDisplay
BooleanDetermines if the “powered by FusionAuth” footer is displayed in the theme.
themes[x].variables.iconBackgroundColor
StringThe color of the form field icon background.
themes[x].variables.iconColor
StringThe color of the icons in the theme.
themes[x].variables.infoIconColor
StringThe color of the icon in info alert messages in the theme.
themes[x].variables.inputBackgroundColor
StringThe color of the form field background.
themes[x].variables.inputIconColor
StringThe color of the form field icon.
themes[x].variables.inputTextColor
StringThe color of the form field text.
themes[x].variables.linkTextColor
StringThe color of the text in hyperlinks.
themes[x].variables.linkTextFocusColor
StringThe color of the text in hyperlinks that have been visited.
themes[x].variables.logoImageSize
StringThe size of the logo image.
themes[x].variables.logoImageURL
StringThe url of the logo image.
themes[x].variables.monoFontColor
StringThe color of the monospaced text.
themes[x].variables.monoFontFamily
StringThe font font-family.
themes[x].variables.pageBackgroundColor
StringThe color of the page background.
themes[x].variables.panelBackgroundColor
StringThe color of the panels in the theme.
themes[x].variables.primaryButtonColor
StringThe color of the primary button.
themes[x].variables.primaryButtonFocusColor
StringThe color of primary button when clicked.
themes[x].variables.primaryButtonTextColor
StringThe color of the text in the primary button.
themes[x].variables.primaryButtonTextFocusColor
StringThe color of the text in the primary button when clicked.
Example Response JSON
{
"themes": [
{
"data": {
"addedBy": "richard"
},
"defaultMessages": "title=Login",
"id": "64773453-bb11-457b-a3d6-7475ec2259d0",
"insertInstant": 1564006815352,
"lastUpdateInstant": 1564084258150,
"localizedMessages": {
"fr": "title=Identifiant",
"es": "title=Iniciar sesión"
},
"name": "Orange Theme",
"stylesheet": "h1 {\r\n color: orange;\r\n text-align: center;\r\n}",
"templates": {
"accountEdit": "[#ftl/]",
"accountIndex": "[#ftl/]",
"accountTwoFactorDisable": "[#ftl/]",
"accountTwoFactorEnable": "[#ftl/]",
"accountTwoFactorIndex": "[#ftl/]",
"accountWebAuthnAdd": "[#ftl/]",
"accountWebAuthnDelete": "[#ftl/]",
"accountWebAuthnIndex": "[#ftl/]",
"emailComplete": "[#ftl/]",
"emailSent": "[#ftl/]",
"emailVerificationRequired": "[#ftl/]",
"emailVerify": "[#ftl/]",
"helpers": "[#ftl/]",
"index": "[#ftl/]",
"oauth2Authorize": "[#ftl/]",
"oauth2AuthorizedNotRegistered": "[#ftl/]",
"oauth2ChildRegistrationNotAllowed": "[#ftl/]",
"oauth2ChildRegistrationNotAllowedComplete": "[#ftl/]",
"oauth2CompleteRegistration": "[#ftl/]",
"oauth2Device": "[#ftl/]",
"oauth2DeviceComplete": "[#ftl/]",
"oauth2Error": "[#ftl/]",
"oauth2Logout": "[#ftl/]",
"oauth2Passwordless": "[#ftl/]",
"oauth2Register": "[#ftl/]",
"oauth2StartIdPLink": "[#ftl/]",
"oauth2TwoFactor": "[#ftl/]",
"oauth2TwoFactorEnable": "[#ftl/]",
"oauth2TwoFactorEnableComplete": "[#ftl/]",
"oauth2TwoFactorMethods": "[#ftl/]",
"oauth2Wait": "[#ftl/]",
"oauth2WebAuthn": "[#ftl/]",
"oauth2WebAuthnReauth": "[#ftl/]",
"oauth2WebAuthnReauthEnable": "[#ftl/]",
"passwordChange": "[#ftl/]",
"passwordComplete": "[#ftl/]",
"passwordForgot": "[#ftl/]",
"passwordSent": "[#ftl/]",
"registrationComplete": "[#ftl/]",
"registrationSent": "[#ftl/]",
"registrationVerificationRequired": "[#ftl/]",
"registrationVerify": "[#ftl/]",
"samlv2Logout": "[#ftl/]",
"unauthorized": "[#ftl/]"
},
"type": "advanced"
},
{
"data": {},
"defaultMessages": "login=Please Log in",
"id": "58324824-6539-4305-8117-b28f26466ab9",
"insertInstant": 1716401547557,
"lastUpdateInstant": 1716401606387,
"localizedMessages": {},
"name": "White Theme",
"type": "simple",
"variables": {
"alertBackgroundColor": "#ffffff",
"alertFontColor": "#ffffff",
"backgroundImageURL": "https://example.com/mybackground.png",
"backgroundRepeat": "no-repeat",
"backgroundSize": "cover",
"borderRadius": "1.00rem",
"deleteButtonColor": "#ffffff",
"deleteButtonFocusColor": "#cccccc",
"deleteButtonTextColor": "#ffffff",
"deleteButtonTextFocusColor": "#cccccc",
"errorFontColor": "#ffffff",
"fontColor": "#ffffff",
"fontFamily": "sans-serif",
"footerDisplay": "flex",
"iconBackgroundColor": "#ffffff",
"iconColor": "#ffffff",
"inputBackgroundColor": "#ffffff",
"inputIconColor": "#ffffff",
"inputTextColor": "#ffffff",
"linkTextColor": "#ffffff",
"linkTextFocusColor": "#cccccc",
"logoImageDisplay": "flex",
"logoImageSize": "7rem",
"logoImageURL": "https://example.com/mylogo.png",
"monoFontColor": "#ffffff",
"monoFontFamily": "monospace",
"pageBackgroundColor": "#ffffff",
"panelBackgroundColor": "#ffffff",
"primaryButtonColor": "#ffffff",
"primaryButtonFocusColor": "#cccccc",
"primaryButtonTextColor": "#ffffff",
"primaryButtonTextFocusColor": "#cccccc"
}
},
{
"id": "75a068fd-e94b-451a-9aeb-3ddb9a3b5987",
"insertInstant": 1563999505859,
"lastUpdateInstant": 1564005677559,
"name": "Default Theme",
"type": "advanced"
},
{
"data": {},
"id": "3c717291-5d83-4014-bd51-97c76475dc86",
"insertInstant": 1716251105423,
"lastUpdateInstant": 1716251105423,
"localizedMessages": {},
"name": "Default Simple Theme",
"type": "simple"
}
]
}
Search for Themes
This API is used to search for Themes and may be called using the GET
or POST
HTTP methods. Examples of each are provided below. The POST
method is provided to allow for a richer request object without worrying about exceeding the maximum length of a URL. Calling this API with either the GET
or POST
HTTP method will provide the same search results given the same query parameters.
Request
Request Parameters
name
StringThe case-insensitive string to search for in the Theme name. This can contain wildcards using the asterisk character (*
). If no wildcards are present, the search criteria will be interpreted as *value*
.
numberOfResults
IntegerDefaults to 25The number of results to return from the search.
orderBy
StringDefaults to name ASCThe database field to order the search results as well as an order direction.
The possible values are:
id
- the unique Id of the ThemeinsertInstant
- the instant when the Theme was createdname
- the Theme name
The order direction is optional. Possible values of the order direction are ASC
or DESC
. If omitted, the default sort order is ASC
.
For example, to order the results by the insert instant in a descending order, use insertInstant DESC
.
startRow
IntegerDefaults to 0The offset into the total results. In order to paginate the results, increment this value by the numberOfResults for subsequent requests.
For example, if the total search results are greater than the page size designated by numberOfResults , set this value to 25
to retrieve results 26-50
, assuming the default page size.
When calling the API using a POST
request you will send the search criteria in a JSON request body.
Request Body
search.name
StringThe case-insensitive string to search for in the Theme name. This can contain wildcards using the asterisk character (*
). If no wildcards are present, the search criteria will be interpreted as *value*
.
search.numberOfResults
IntegerDefaults to 25The number of results to return from the search.
search.orderBy
StringDefaults to name ASCThe database field to order the search results as well as an order direction.
The possible values are:
id
- the unique Id of the ThemeinsertInstant
- the instant when the Theme was createdname
- the Theme name
The order direction is optional. Possible values of the order direction are ASC
or DESC
. If omitted, the default sort order is ASC
.
For example, to order the results by the insert instant in a descending order, use insertInstant DESC
.
search.startRow
IntegerDefaults to 0The offset into the total results. In order to paginate the results, increment this value by the numberOfResults for subsequent requests.
For example, if the total search results are greater than the page size designated by numberOfResults , set this value to 25
to retrieve results 26-50
, assuming the default page size.
Example JSON Request
{
"search": {
"name": "Orange",
"numberOfResults": 25,
"orderBy": "insertInstant",
"startRow": 0
}
}
Response
The response for this API contains the Themes matching the search criteria in paginated format.
Response CodesCode | Description |
---|---|
200 | The request was successful. The response will contain a JSON body. |
400 | The request was invalid and/or malformed. The response will contain an Errors JSON Object with the specific errors. This status will also be returned if a paid FusionAuth license is required and is not present. |
401 | You did not supply a valid Authorization header. The header was omitted or your API key was not valid. The response will be empty. See Authentication. |
500 | There was an internal error. A stack trace is provided and logged in the FusionAuth log files. The response will be empty. |
Responses from the theme API can contain Advanced Themes as well.
Response Body
themes
ArrayThe list of Theme objects.
themes[x].data
ObjectAn object that can hold any information about the Theme that should be persisted.
themes[x].defaultMessages
IntegerA properties file formatted String containing messages used within the templates.
themes[x].id
UUIDThe unique Id of the Theme.
themes[x].insertInstant
LongThe instant that the theme was added to the FusionAuth database.
themes[x].lastUpdateInstant
LongThe instant that the theme was last updated in the FusionAuth database.
themes[x].localizedMessages
Map<Locale,String>A Map of localized versions of the messages. The key is the Locale and the value is a properties file formatted String.
themes[x].name
StringA unique name for the Theme.
themes[x].variables.alertBackgroundColor
StringThe background color of the alert message.
themes[x].variables.alertFontColor
StringThe color of the font in the alert message.
themes[x].variables.backgroundImageURL
StringThe url of the background image. Will replace the page background color.
themes[x].variables.backgroundSize
StringSpecifies the background-size of the background image.
themes[x].variables.borderRadius
StringSpecifies the border-radius property which is applied to buttons, panels, and form fields in the theme.
themes[x].variables.deleteButtonColor
StringThe color of the delete button.
themes[x].variables.deleteButtonFocusColor
StringThe color of the delete button when clicked.
themes[x].variables.deleteButtonTextColor
StringThe color of the text in the delete button.
themes[x].variables.deleteButtonTextFocusColor
StringThe color of the text in the delete button when clicked.
themes[x].variables.errorIconColor
StringThe color of the icon in error alert messages in the theme.
themes[x].variables.errorFontColor
StringThe color of the font for error messages.
themes[x].variables.fontColor
StringThe color of the text in the theme.
themes[x].variables.fontFamily
StringSpecifies the font-family for the theme.
themes[x].variables.footerDisplay
BooleanDetermines if the “powered by FusionAuth” footer is displayed in the theme.
themes[x].variables.iconBackgroundColor
StringThe color of the form field icon background.
themes[x].variables.iconColor
StringThe color of the icons in the theme.
themes[x].variables.infoIconColor
StringThe color of the icon in info alert messages in the theme.
themes[x].variables.inputBackgroundColor
StringThe color of the form field background.
themes[x].variables.inputIconColor
StringThe color of the form field icon.
themes[x].variables.inputTextColor
StringThe color of the form field text.
themes[x].variables.linkTextColor
StringThe color of the text in hyperlinks.
themes[x].variables.linkTextFocusColor
StringThe color of the text in hyperlinks that have been visited.
themes[x].variables.logoImageSize
StringThe size of the logo image.
themes[x].variables.logoImageURL
StringThe url of the logo image.
themes[x].variables.monoFontColor
StringThe color of the monospaced text.
themes[x].variables.monoFontFamily
StringThe font font-family.
themes[x].variables.pageBackgroundColor
StringThe color of the page background.
themes[x].variables.panelBackgroundColor
StringThe color of the panels in the theme.
themes[x].variables.primaryButtonColor
StringThe color of the primary button.
themes[x].variables.primaryButtonFocusColor
StringThe color of primary button when clicked.
themes[x].variables.primaryButtonTextColor
StringThe color of the text in the primary button.
themes[x].variables.primaryButtonTextFocusColor
StringThe color of the text in the primary button when clicked.
total
IntegerExample Response JSON for Theme Search
{
"themes": [
{
"data": {
"addedBy": "richard"
},
"defaultMessages": "title=Login",
"id": "64773453-bb11-457b-a3d6-7475ec2259d0",
"insertInstant": 1564006815352,
"lastUpdateInstant": 1564084258150,
"localizedMessages": {
"fr": "title=Identifiant",
"es": "title=Iniciar sesión"
},
"name": "Orange Theme",
"stylesheet": "h1 {\r\n color: orange;\r\n text-align: center;\r\n}",
"templates": {
"accountEdit": "[#ftl/]",
"accountIndex": "[#ftl/]",
"accountTwoFactorDisable": "[#ftl/]",
"accountTwoFactorEnable": "[#ftl/]",
"accountTwoFactorIndex": "[#ftl/]",
"accountWebAuthnAdd": "[#ftl/]",
"accountWebAuthnDelete": "[#ftl/]",
"accountWebAuthnIndex": "[#ftl/]",
"emailComplete": "[#ftl/]",
"emailSent": "[#ftl/]",
"emailVerificationRequired": "[#ftl/]",
"emailVerify": "[#ftl/]",
"helpers": "[#ftl/]",
"index": "[#ftl/]",
"oauth2Authorize": "[#ftl/]",
"oauth2AuthorizedNotRegistered": "[#ftl/]",
"oauth2ChildRegistrationNotAllowed": "[#ftl/]",
"oauth2ChildRegistrationNotAllowedComplete": "[#ftl/]",
"oauth2CompleteRegistration": "[#ftl/]",
"oauth2Device": "[#ftl/]",
"oauth2DeviceComplete": "[#ftl/]",
"oauth2Error": "[#ftl/]",
"oauth2Logout": "[#ftl/]",
"oauth2Passwordless": "[#ftl/]",
"oauth2Register": "[#ftl/]",
"oauth2StartIdPLink": "[#ftl/]",
"oauth2TwoFactor": "[#ftl/]",
"oauth2TwoFactorEnable": "[#ftl/]",
"oauth2TwoFactorEnableComplete": "[#ftl/]",
"oauth2TwoFactorMethods": "[#ftl/]",
"oauth2Wait": "[#ftl/]",
"oauth2WebAuthn": "[#ftl/]",
"oauth2WebAuthnReauth": "[#ftl/]",
"oauth2WebAuthnReauthEnable": "[#ftl/]",
"passwordChange": "[#ftl/]",
"passwordComplete": "[#ftl/]",
"passwordForgot": "[#ftl/]",
"passwordSent": "[#ftl/]",
"registrationComplete": "[#ftl/]",
"registrationSent": "[#ftl/]",
"registrationVerificationRequired": "[#ftl/]",
"registrationVerify": "[#ftl/]",
"samlv2Logout": "[#ftl/]",
"unauthorized": "[#ftl/]"
},
"type": "advanced"
},
{
"data": {},
"defaultMessages": "login=Please Log in",
"id": "58324824-6539-4305-8117-b28f26466ab9",
"insertInstant": 1716401547557,
"lastUpdateInstant": 1716401606387,
"localizedMessages": {},
"name": "White Theme",
"type": "simple",
"variables": {
"alertBackgroundColor": "#ffffff",
"alertFontColor": "#ffffff",
"backgroundImageURL": "https://example.com/mybackground.png",
"backgroundRepeat": "no-repeat",
"backgroundSize": "cover",
"borderRadius": "1.00rem",
"deleteButtonColor": "#ffffff",
"deleteButtonFocusColor": "#cccccc",
"deleteButtonTextColor": "#ffffff",
"deleteButtonTextFocusColor": "#cccccc",
"errorFontColor": "#ffffff",
"fontColor": "#ffffff",
"fontFamily": "sans-serif",
"footerDisplay": "flex",
"iconBackgroundColor": "#ffffff",
"iconColor": "#ffffff",
"inputBackgroundColor": "#ffffff",
"inputIconColor": "#ffffff",
"inputTextColor": "#ffffff",
"linkTextColor": "#ffffff",
"linkTextFocusColor": "#cccccc",
"logoImageDisplay": "flex",
"logoImageSize": "7rem",
"logoImageURL": "https://example.com/mylogo.png",
"monoFontColor": "#ffffff",
"monoFontFamily": "monospace",
"pageBackgroundColor": "#ffffff",
"panelBackgroundColor": "#ffffff",
"primaryButtonColor": "#ffffff",
"primaryButtonFocusColor": "#cccccc",
"primaryButtonTextColor": "#ffffff",
"primaryButtonTextFocusColor": "#cccccc"
}
}
],
"total": 2
}
Update a Simple Theme
This API is used to update an existing Theme.
You must specify all of the properties of the Theme when calling this API with the PUT
HTTP method. When used with PUT
, this API doesn’t merge the existing Theme and your new data. It replaces the existing Theme with your new data.
Utilize the PATCH
HTTP method to send specific changes to merge into an existing Theme.
Request
When using the PATCH method, you can either use the same request body documentation that is provided for the PUT request for backward compatibility. Or you may use either JSON Patch/RFC 6902] or JSON Merge Patch/RFC 7396. See the PATCH documentation for more information.
When using the PATCH method with a Content-Type
of application/json
the provided request parameters will be merged into the existing object, this means all parameters are optional when using the PATCH method and you only provide the values you want changed. A null
value can be used to remove a value. Patching an Array
will result in all values from the new list being appended to the existing list, this is a known limitation to the current implementation of PATCH.
Request Parameters
themeId
UUIDrequiredThe unique Id of the Theme to update.
Request Body
theme.data
ObjectAn object that can hold any information about the Theme that should be persisted.
theme.defaultMessages
StringrequiredA properties file formatted String containing at least all of the message keys defined in the FusionAuth shipped messages file.
theme.localizedMessages
Map<Locale,String>A Map of localized versions of the messages. The key is the Locale and the value is a properties file formatted String.
theme.name
StringrequiredA unique name for the Theme.
theme.variables.alertBackgroundColor
StringrequiredThe background color of the alert message. Colors must be a valid hex color code, RGB, or HSL value.
theme.variables.alertFontColor
StringrequiredThe color of the font in the alert message. Colors must be a valid hex color code, RGB, or HSL value.
theme.variables.backgroundImageURL
StringThe url of the background image. Will replace the page background color. Must be a valid absolute URL.
theme.variables.backgroundSize
StringSpecifies the background-size of the background image. Valid values are repeat
, contain
, and cover
.
Required if theme.variables.backgroundImageURL is provided.
theme.variables.borderRadius
StringrequiredSpecifies the border-radius property which is applied to buttons, panels, and form fields in the theme. Must be a valid numeric value with a px
, em
, or rem
suffix.
theme.variables.deleteButtonColor
StringrequiredThe color of the delete button. Colors must be a valid hex color code, RGB, or HSL value.
theme.variables.deleteButtonFocusColor
StringrequiredThe color of the delete button when clicked. Colors must be a valid hex color code, RGB, or HSL value.
theme.variables.deleteButtonTextColor
StringrequiredThe color of the text in the delete button. Colors must be a valid hex color code, RGB, or HSL value.
theme.variables.deleteButtonTextFocusColor
StringrequiredThe color of the text in the delete button when clicked. Colors must be a valid hex color code, RGB, or HSL value.
theme.variables.errorIconColor
StringrequiredThe color of the icon in error alert messages in the theme. Colors must be a valid hex color code, RGB, or HSL value.
theme.variables.errorFontColor
StringrequiredThe color of the font for error messages. Colors must be a valid hex color code, RGB, or HSL value.
theme.variables.fontColor
StringrequiredThe color of the text in the theme. Colors must be a valid hex color code, RGB, or HSL value.
theme.variables.fontFamily
StringrequiredSpecifies the font-family for the theme.
theme.variables.footerDisplay
BooleanDetermines if the “powered by FusionAuth” footer is displayed in the theme. A valid license is required to set this value to false
.
theme.variables.iconBackgroundColor
StringrequiredThe color of the form field icon background. Colors must be a valid hex color code, RGB, or HSL value.
theme.variables.iconColor
StringrequiredThe color of the icons in the theme. Colors must be a valid hex color code, RGB, or HSL value.
theme.variables.infoIconColor
StringrequiredThe color of the icon in info alert messages in the theme. Colors must be a valid hex color code, RGB, or HSL value.
theme.variables.inputBackgroundColor
StringrequiredThe color of the form field background. Colors must be a valid hex color code, RGB, or HSL value.
theme.variables.inputIconColor
StringrequiredThe color of the form field icon. Colors must be a valid hex color code, RGB, or HSL value.
theme.variables.inputTextColor
StringrequiredThe color of the form field text. Colors must be a valid hex color code, RGB, or HSL value.
theme.variables.linkTextColor
StringrequiredThe color of the text in hyperlinks. Colors must be a valid hex color code, RGB, or HSL value.
theme.variables.linkTextFocusColor
StringrequiredThe color of the text in hyperlinks that have been visited. Colors must be a valid hex color code, RGB, or HSL value.
theme.variables.logoImageSize
StringThe size of the logo image. Must be a valid numeric value with a px
, em
, or rem
suffix.
Required if theme.variables.logoImageURL is provided.
theme.variables.logoImageURL
StringThe url of the logo image. Must be a valid absolute URL. Can be null
.
theme.variables.monoFontColor
StringrequiredThe color of the monospaced text. Colors must be a valid hex color code, RGB, or HSL value.
theme.variables.monoFontFamily
StringrequiredThe font font-family.
theme.variables.pageBackgroundColor
StringrequiredThe color of the page background. Colors must be a valid hex color code, RGB, or HSL value.
theme.variables.panelBackgroundColor
StringrequiredThe color of the panels in the theme. Colors must be a valid hex color code, RGB, or HSL value.
theme.variables.primaryButtonColor
StringrequiredThe color of the primary button. Colors must be a valid hex color code, RGB, or HSL value.
theme.variables.primaryButtonFocusColor
StringrequiredThe color of primary button when clicked. Colors must be a valid hex color code, RGB, or HSL value.
theme.variables.primaryButtonTextColor
StringrequiredThe color of the text in the primary button. Colors must be a valid hex color code, RGB, or HSL value.
theme.variables.primaryButtonTextFocusColor
StringrequiredThe color of the text in the primary button when clicked. Colors must be a valid hex color code, RGB, or HSL value.
Example Simple Theme Request JSON
{
"theme": {
"data": {
"addedBy": "richard"
},
"defaultMessages": "title=Login",
"localizedMessages": {
"fr": "title=Identifiant",
"es": "title=Iniciar sesión"
},
"name": "White Theme",
"type": "simple",
"variables": {
"alertBackgroundColor": "#ffffff",
"alertFontColor": "#ffffff",
"backgroundImageURL": "https://example.com/mybackground.png",
"backgroundRepeat": "no-repeat",
"backgroundSize": "cover",
"borderRadius": "1.00rem",
"deleteButtonColor": "#ffffff",
"deleteButtonFocusColor": "#cccccc",
"deleteButtonTextColor": "#ffffff",
"deleteButtonTextFocusColor": "#cccccc",
"errorFontColor": "#ffffff",
"fontColor": "#ffffff",
"fontFamily": "sans-serif",
"footerDisplay": "flex",
"iconBackgroundColor": "#ffffff",
"iconColor": "#ffffff",
"inputBackgroundColor": "#ffffff",
"inputIconColor": "#ffffff",
"inputTextColor": "#ffffff",
"linkTextColor": "#ffffff",
"linkTextFocusColor": "#cccccc",
"logoImageDisplay": "flex",
"logoImageSize": "7rem",
"logoImageURL": "https://example.com/mylogo.png",
"monoFontColor": "#ffffff",
"monoFontFamily": "monospace",
"pageBackgroundColor": "#ffffff",
"panelBackgroundColor": "#ffffff",
"primaryButtonColor": "#ffffff",
"primaryButtonFocusColor": "#cccccc",
"primaryButtonTextColor": "#ffffff",
"primaryButtonTextFocusColor": "#cccccc"
}
}
}
Response
The response for this API contains the Theme that was updated.
Response CodesCode | Description |
---|---|
200 | The request was successful. The response will contain a JSON body. |
400 | The request was invalid and/or malformed. The response will contain an Errors JSON Object with the specific errors. This status will also be returned if a paid FusionAuth license is required and is not present. |
401 | You did not supply a valid Authorization header. The header was omitted or your API key was not valid. The response will be empty. See Authentication. |
404 | The object you are trying to update doesn't exist. The response will be empty. |
500 | There was an internal error. A stack trace is provided and logged in the FusionAuth log files. The response will be empty. |
503 | The search index is not available or encountered an exception so the request cannot be completed. The response will contain a JSON body. |
Response Body
theme.data
ObjectAn object that can hold any information about the Theme that should be persisted.
theme.defaultMessages
StringA properties file formatted String containing messages used within the templates.
theme.id
UUIDThe unique Id of the Theme.
theme.insertInstant
LongThe instant that the theme was added to the FusionAuth database.
theme.lastUpdateInstant
LongThe instant that the theme was last updated in the FusionAuth database.
theme.localizedMessages
Map<Locale,String>A Map of localized versions of the messages. The key is the Locale and the value is a properties file formatted String.
theme.name
StringA unique name for the Theme.
theme.variables.alertBackgroundColor
StringThe background color of the alert message.
theme.variables.alertFontColor
StringThe color of the font in the alert message.
theme.variables.backgroundImageURL
StringThe url of the background image. Will replace the page background color.
theme.variables.backgroundSize
StringSpecifies the background-size of the background image.
theme.variables.borderRadius
StringSpecifies the border-radius property which is applied to buttons, panels, and form fields in the theme.
theme.variables.deleteButtonColor
StringThe color of the delete button.
theme.variables.deleteButtonFocusColor
StringThe color of the delete button when clicked.
theme.variables.deleteButtonTextColor
StringThe color of the text in the delete button.
theme.variables.deleteButtonTextFocusColor
StringThe color of the text in the delete button when clicked.
theme.variables.errorIconColor
StringThe color of the icon in error alert messages in the theme.
theme.variables.errorFontColor
StringThe color of the font for error messages.
theme.variables.fontColor
StringThe color of the text in the theme.
theme.variables.fontFamily
StringSpecifies the font-family for the theme.
theme.variables.footerDisplay
BooleanDetermines if the “powered by FusionAuth” footer is displayed in the theme.
theme.variables.iconBackgroundColor
StringThe color of the form field icon background.
theme.variables.iconColor
StringThe color of the icons in the theme.
theme.variables.infoIconColor
StringThe color of the icon in info alert messages in the theme.
theme.variables.inputBackgroundColor
StringThe color of the form field background.
theme.variables.inputIconColor
StringThe color of the form field icon.
theme.variables.inputTextColor
StringThe color of the form field text.
theme.variables.linkTextColor
StringThe color of the text in hyperlinks.
theme.variables.linkTextFocusColor
StringThe color of the text in hyperlinks that have been visited.
theme.variables.logoImageSize
StringThe size of the logo image.
theme.variables.logoImageURL
StringThe url of the logo image.
theme.variables.monoFontColor
StringThe color of the monospaced text.
theme.variables.monoFontFamily
StringThe font font-family.
theme.variables.pageBackgroundColor
StringThe color of the page background.
theme.variables.panelBackgroundColor
StringThe color of the panels in the theme.
theme.variables.primaryButtonColor
StringThe color of the primary button.
theme.variables.primaryButtonFocusColor
StringThe color of primary button when clicked.
theme.variables.primaryButtonTextColor
StringThe color of the text in the primary button.
theme.variables.primaryButtonTextFocusColor
StringThe color of the text in the primary button when clicked.
Example Simple Theme Response JSON
{
"theme": {
"data": {
"addedBy": "richard"
},
"defaultMessages": "title=Login",
"id": "58324824-6539-4305-8117-b28f26466ab9",
"insertInstant": 1716401547557,
"lastUpdateInstant": 1716401606387,
"localizedMessages": {
"fr": "title=Identifiant",
"es": "title=Iniciar sesión"
},
"name": "White Theme",
"type": "simple",
"variables": {
"alertBackgroundColor": "#ffffff",
"alertFontColor": "#ffffff",
"backgroundImageURL": "https://example.com/mybackground.png",
"backgroundRepeat": "no-repeat",
"backgroundSize": "cover",
"borderRadius": "1.00rem",
"deleteButtonColor": "#ffffff",
"deleteButtonFocusColor": "#cccccc",
"deleteButtonTextColor": "#ffffff",
"deleteButtonTextFocusColor": "#cccccc",
"errorFontColor": "#ffffff",
"fontColor": "#ffffff",
"fontFamily": "sans-serif",
"footerDisplay": "flex",
"iconBackgroundColor": "#ffffff",
"iconColor": "#ffffff",
"inputBackgroundColor": "#ffffff",
"inputIconColor": "#ffffff",
"inputTextColor": "#ffffff",
"linkTextColor": "#ffffff",
"linkTextFocusColor": "#cccccc",
"logoImageDisplay": "flex",
"logoImageSize": "7rem",
"logoImageURL": "https://example.com/mylogo.png",
"monoFontColor": "#ffffff",
"monoFontFamily": "monospace",
"pageBackgroundColor": "#ffffff",
"panelBackgroundColor": "#ffffff",
"primaryButtonColor": "#ffffff",
"primaryButtonFocusColor": "#cccccc",
"primaryButtonTextColor": "#ffffff",
"primaryButtonTextFocusColor": "#cccccc"
}
}
}
Delete a Simple Theme
This API is used to permanently delete a Theme.
Request
Request Parameters
themeId
UUIDrequiredThe unique Id of the Theme to delete.
Response
This API does not return a JSON response body.
Response CodesCode | Description |
---|---|
200 | The request was successful. |
400 | The request was invalid and/or malformed. The response will contain an Errors JSON Object with the specific errors. This status will also be returned if a paid FusionAuth license is required and is not present. |
401 | You did not supply a valid Authorization header. The header was omitted or your API key was not valid. The response will be empty. See Authentication. |
404 | The object you requested doesn't exist. The response will be empty. |
500 | There was an internal error. A stack trace is provided and logged in the FusionAuth log files. The response will be empty. |
503 | The search index is not available or encountered an exception so the request cannot be completed. The response will contain a JSON body. |