Portal Styles Customization (Logos, Colors, Date Patterns)
Change Logos in Portal
You can change both the top-left corner logo in the menu and the login logo by using Engine Branding.
We allow for two different logo graphics for the expanded and the collapsed menu. You can use one “pure” logo for the small, quadratic format (default: 42x42 pixels), and a logo with a slogan for the bigger one. This one is intended to have a 4:1 width:height ratio (default: 168x42 pixels).
The best graphics format for logos is SVG (Scalable Vector Graphics) as it allows to scale while retaining proportions - logos are always rendered as good as possible in the current resolution. The resolution is defined by the browser window size and zoom as well as the screen resolution. In addition, SVG files are usually pretty small because they are text files. All modern browsers can render SVG graphics.
On the other hand, PNG logos blur if expanded, and are big files if supplied in high resolution to prevent the blurring.
We recommend using images with a transparent background, if your Corporate Identity does not define a mandatory background color.
To change the logos used in the Portal, please use resources that are described at User Interface Branding and follow the guidelines below.
Favicon
Use resource
favicon
to update the favicon.Tip
We recommend using an image with size 16x16 or 32x32 pixels.
Change Portal Styles
The Portal uses modern CSS Variable to support style customization.
To customize the Portal styles in an upgrade safe way, we suggest that you copy all CSS variables and styles
which you plan to override from the files portal-root-variables.css
and portal.css
to file custom.css
.
Refer to Engine Branding for the location of custom.css.
Caution
Please do not modify portal-root-variables.css
, portal-variables-light.css
, portal-variables-dark.css
and portal.css
directly because they may change in a future Portal version.
Below is the list of some Portal elements which are using customizable colors:
Variable |
Default value |
Description |
---|---|---|
|
hsl(195,100%,29%) |
|
|
hsl(195, 100%, 20%) |
|
|
white |
|
|
hsl(0, 1%, 34%) |
|
|
white |
|
You can customize the Portal styles in custom.css
.
For example, to customize the default
font-family
:
After the
START OVERRIDING PORTAL STYLES
section, add a new@font-face
block with yourfont-family
name, and the URLs of the family member fonts.Inside the
:root
tag, change the value of--portal-font-family
to yourfont-family
name.
Tip
As the size measure unit for
font-size
, the Portal usesrem
. Font sizes of all elements are calculated based on the font size of thehtml
element.If
--primary-color
is a bright color (such as yellow or light blue), you may want to change--primary-text-color
toblack
. It ensures that text on buttons and other components is legible as it has high contrast.
Tip
If you are using IFrames and you want to customize the colors of the project specific UIs, then refer to this documentation https://developer.axonivy.com/doc/10.0.0/designer-guide/how-to/overrides.html?#override-new-wizard
Warning
Do not change
font-family
property values.Limitation: the task priority color customization hasn’t changed the task priority colors in statistic.
If you want to custom color of statistics please refer to Override Statistic color
Change date time pattern
You can change the date pattern by modifying the CMS in portal
:
portal/patterns/datePattern
and
portal/patterns/dateTimePattern
.