Skip to content
Release: Australia · Updated: 2026-03-12 · Official documentation · View source

Variables to customize a theme for Desktop Assistant

You can modify specific CSS variables to customize themes for Desktop Assistant.

VariableDescriptionOrder
brand-primary-darkestThe darkest shade of the brand's primary color.1
brand-primary-darkerSlightly lighter shade than the darkest shade of the brand's primary color.2
brand-primaryPrimary brand color used in the UI.3
brand-primary-lighterLighter shade than the primary brand color.4

You can apply a gradient to the banner by using the specified colors in the specified order.

VariableDescriptionDefault
background-secondarySecondary background color used for UI elements that are not the main focus.`#ffffff`
background-primaryPrimary background color used for main focus areas on the UI.`#f6f6f8`
font-size-baseBase font size used for UI text.`16px`
font-weight-baseBase font weight used for UI body text.`400`
font-family-sans-serifDefault sans serif font family used for UI text.`Lato`
line-height-baseDefault text line height for spacing and readability.`1.4`
font-size-h5Font size for heading level 5.`16px` or value of the *$font-size-base* variable.
font-size-h4Font size for heading level 4.`18px`This value is calculated using the ceil \(\) function: `ceil(($font-size-base * 1.125))`. For example, if the *font-size-base* value is 16 px, the *font-size-h4* value is 18 px: `ceil((16px * 1.125))//18px`.
font-size-h3Font size for heading level 3.`20px`This value is calculated using the ceil \(\) function: `ceil(($font-size-base * 1.25))`.
font-size-xlExtra large font size typically used for titles or large labels.`24px`This value is calculated using the ceil \(\) function: `ceil(($font-size-base * 1.5))`.
font-size-xsExtra small font size typically used for minor labels or captions.`12px`This value is calculated using the ceil \(\) function: `ceil(($font-size-base * 0.75))`.
font-size-smallSmaller font than the base font, used for secondary text.`14px`This value is calculated using the ceil \(\) function: `ceil(($font-size-base * 0.875))`.
headings-font-familyFont family used for headings.`Lato`
headings-font-weightFont weight used for headings.`600`
VariableDescriptionDefault
text-primaryMain color used for body text.`#181A1F`
text-colorGeneral text color for the UI, which is the same as *text-primary*.Set a value for this variable only if you have not already defined the value for *text-primary*.`$text-primary!default`For example, `$text-primary: #000000 !default;`
text-secondaryColor used for less prominent UI text.`#474D5A`
text-tertiaryColor for tertiary text such as help text and annotations.`#656E81`
text-mutedMuted text color that is generally the same as *text-tertiary*.Set a value for this variable only if you have not already defined the value for *text-tertiary*.`$text-tertiary!default`For example, `$text-tertiary: #999999 !default;`
color-greyNeutral grey color used for elements such as borders and backgrounds.`#C6CBCB`
link-colorColor for hyperlinks.`#3c59e7`
VariableDescriptionDefault
btn-default-colorDefault color for button text.$brand-primary
btn-primary-colorText color for primary buttons.$text-white
btn-primary-bgBackground color for primary buttons.$brand-primary
brand-primaryPrimary brand color used across the UI.#4f52bd!default;
brand-primary-darkerA darker shade of the primary brand color.#333579
brand-primary-darkestDarkest shade of the primary brand color.#1D1E46
brand-primary-lighterA lighter shade of the primary brand color.#8789D2
brand-primary-lightestLightest shade of the primary brand color.#D1D2EE
VariableDescriptionDefault
brand-warning-darkerDarker shade of UI warning state color.#AFA400
brand-success-darkerDarker shade of color used for success states on the UI.#3B7F00
brand-danger-darkerDarker shade of color used for danger states on the UI.#CC293C
alert-warning-bgBackground color used for alerts and warnings.$state-warning-bg
badge-colorText color for badges on the UI.$text-white
VariableDescriptionDefault value
border-primaryPrimary border color used for main UI elements.#8790A1
border-secondarySecondary border color used for less prominent UI elements.#ACB2BE
border-tertiaryTertiary border color used for background borders.#DADDE2
border-width-xsExtra-small border width used for UI elements like thin lines or light dividers.1px
border-style-solidSets the border style to solid.solid
border-radius-baseBase border radius for rounding corners of UI elements.4px
input-borderBorder style for input fields.$border-primary
VariableDescriptionDefault value
sp-space--xxlExtra-extra-large spacing for wide gaps or larger layouts.32px
sp-space--xlExtra-large spacing for major sections.24px
sp-space--lgLarge spacing for padding or margins.16px
sp-space--mdMedium or standard spacing for most UI elements.12px
sp-space--smSmall spacing for compact layouts.8px
sp-space--xsExtra-small spacing for minimal gaps.4px
sp-space--xxsExtra-extra-small spacing for minimal UI gaps.2px
panel-heading-paddingPadding applied to the heading section of a panel or card.$sp-space--xl
VariableDescriptionDefault value
Font weight variable
font-weight-lgFont weight used for large or bold text.`600`This value is calculated using the ceil \(\) function: `ceil(($font-weight-base * 1.5))`.
Shadow and effects variables
sp-panel-box-shadowShadow styling for panel components.`0 4px 8px 0 rgba(23, 40, 52, 0.08)`
sp-box-shadow--mdMedium box shadow effects for UI components.``

Parent Topic:DEX Desktop Assistant reference