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

Create a portal theme

If you need more customizations than the Branding Editor can provide, you can create your own custom theme.

Only users with an understanding of CSS should create custom themes.

  1. Navigate to Service Portal > Themes, then select New.
  2. Complete the form fields and then from the form context menu, select Save.
FieldDescription
NameName of your theme. Use this name to associate the theme with your portal. This name isn't visible to users.
Turn off SCSS compilationTurns off compiling SCSS and sends the plain CSS file directly to the client.
ApplicationThe record scope. The header menu record and the source table must have the same application scope.
HeaderList of headers and footers from the sp\_header\_footer table that you can associate with a portal theme. Headers and footers are widgets and can be configured the same way.
FooterList of headers and footers from the sp\_header\_footer table that you can associate with a portal theme.
Fixed headerLocks the header at the top of the page so that when you scroll, the header remains on the screen.
Fixed footerLocks the footer at the bottom of the page so that when you scroll, the footer remains on the screen.
CSS variables

CSS custom properties that you can use to change the color and styles in a portal. For example, the stock theme uses some of the following variables:$sp-logo-margin-x: 15px !default; $sp-tagline-color: $text-color !default; $navbar-inverse-bg: #3a3f51 !default;

Note: Use the CSS variables field to define CSS variables only. Use CSS Includes to define CSS rules. As of the Madrid release, Sass and LESS can be used within CSS Includes.

  1. To add a style sheet to the theme, in the CSS Include related list, select New.
  2. Complete the style sheet form fields and select Submit.
FieldDescription
NameName of the CSS Include. Remember this name to associate the CSS Include with the theme.
ApplicationThe record scope. The header menu record and the source table must have the same application scope.
SourceSelect one of the following options:- Style Sheet: Add an internal style sheet that has been uploaded to the CSS table [sp_css]. For example, ng-sortable.min.css. Internal style sheets use standard CSS in the CSS field. - URL: Link to an external style sheet. Use external style sheets to use the same CSS as a corporate website or other online resource.
Style sheetAn internal style sheet to associate with the theme.
CSS file URLA URL to an external style sheet to associate with the theme.
Lazy Load

Option to load the CSS Include asynchronously to improve page load time. This option should be set to the same value for all CSS Includes of a theme. Enabling asynchronous loading for only some CSS Includes associated with a theme isn’t recommended.

Note: Enabling Lazy Load isn’t recommended for portals with flashing of unstyled content.

The CSS Includes with Lazy Load enabled are listed in the Lazy load CSS includes related list in the theme record.

RTL CSS file URLA URL to an external style sheet for mirroring the direction of a portal when the session language is a right-to-left language, such as Hebrew. For information about support for right-to-left languages, see Styling for right-to-left languages in portals.
  1. To add a JavaScript include to the theme, in the JS Include related list, select New.
  2. Complete the JS Include form fields and select Submit.
FieldDescription
Display nameName of the JS Include. Remember this name to associate the JS Include with the theme.
ApplicationThe record scope. The header menu record and the source table must have the same application scope.
SourceSelect one of the following options:- UI Script: Add an internal UI script that has been uploaded to the UI script table [sys_ui_script]. Use UI scripts to create client-side JavaScript and reuse it in multiple locations. For more information on UI scripts, see UI scripts. - URL: Link to an external JavaScript file. Use external URLs to use the same JavaScript as a corporate website or other online resource.
UI Script or JS file URLAssociate an internal UI script or JavaScript file URL, depending on which option you select in the Source field.
UpdatedDate and time that the JS Include was last updated
PackageThe Service Portal package that the JS include is associated with. For example, Service Portal Configuration Pages. This field is populated by default.
  • Enable dark theme
    Use Coral dark theme on a portal to improve focus, readability, and accessibility.
  • Create a theme variant
    Create a theme variant from the Coral theme. A theme variant uses customizable styling CSS variables and branding options to tailor the visual experience for your users.

Parent Topic:Defining portal styles