Customization involves redefining the application’s color palette and replacing its images.
The following code is a complete example of the default Light theme. Many of its colors reference predefined CSS variables in RGB or RGBA format, which can be easily replaced. This example also shows the required CSS file structure for building a custom theme.
Below is the complete list of available variables, their default values, and usage examples.
It is not necessary to redefine all variables. By default, the Light theme is applied; any definitions added will simply overwrite the redefined values. Redefining the values shown in the example above is enough to quickly change the appearance of the interface.
Core Theme Variables
Variable
Default Value
Scope
--primary-color
#007DC1
Buttons, links, highlights, icons.
--dark-primary-color
#004468
Hover on buttons, titles, and active tabs.
--light-primary-color
#CEE8F6
Hover on menus, dark-primary-color background.
--secondary-color
#4ECC64
-
--tertiary-color
#DA9963
-
Variable
Default Value
Scope
--primary-bgcolor
Set by the active theme
Primary background surface; the base color other background variables derive from (for example, the app header).
Profile background with a custom icon. This variable is dynamic: it is built from the theme class that uses it, so replace light-mode with the appropriate theme class (for example, --MyOwnTheme-entity-bg).
--bg-image
url("<%=BASEURL%>__themes__/BackgroundImg.png")
URL of the main panel background image. Replace BackgroundImg.png with the appropriate filename.
--bg-size
contain
Size of the background image: auto/contain/cover/inherit/initial/revert/unset.
Text color and border of the secondary action button.
--outline-button-bgcolor-h
--button-bgcolor-h
Background color on hover.
--outline-button-color-h
--button-txtcolor-h
Text color on hover.
--special-button
#FFFFFF
-
--switcher-button
#ADADAD
-
Variable
Default Value
Scope
--primary-txtcolor
Set by the active theme
Base text color: menu, general texts, Access Profile names.
--secondary-txtcolor
#ADADAD
Clearer texts, for example the icons that appear below the Access Profiles.
--heading-color
--dark-primary-color
Headers.
--border-color
#ADADAD
Borders.
--light-border-color
#C4C4C4
Lighter borders.
--separator
#B2B2B2
Separators.
Secondary Styling Rules
Variable
Default Value
Scope
--link-color
--primary-color
-
--link-color-h
#5DB4E2
-
--menu-selected-color
--dark-primary-color
Text and border color.
--menu-selected-bgcolor
--light-primary-color
Background color.
Variable
Default Value
Scope
--table-header-bgcolor
--hover-bgcolor
Table header background color.
--table-body-bgcolor
--secondary-bgcolor
Table body background color.
--table-body-bgcolor-h
--tertiary-bgcolor
Background color of rows on hover.
Variable
Default Value
Description
--disabled
#ADADAD
Disabled buttons or texts.
--danger
#DC4847
Errors, Danger buttons.
--alert
#F17C1C
Warnings.
--allowed
#4ECC64
Success messages.
--shadow-color
#00000019
Shadows.
Variable
Default Value
Scope
--desktop-logo
url("<%=BASEURL%>__themes__/YourLogo.svg")
Replace YourLogo.svg with the name of the appropriate file. Remember that this file must be located in the folder defined for the .css file. It will be used in the product portal where the connections are displayed.
--mobile-logo
url("<%=BASEURL%>__themes__/YourMobileLogo.svg")
Logo used in the header in mobile and in the connections with the semi-folded side menu.
--login-logo
url("<%=BASEURL%>__themes__/YourLogo.svg")
Logo on the login box.
--logo-bg-size
contain
Logo size: auto/contain/cover/inherit/initial/revert/unset.
CSS Overrides
Even if certain elements are not defined among those configured through variables, Thinfinity Workspace allows new styles to be applied to other interface elements.
Warning
These styles should be applied specifically alongside the class that defines the theme, to prevent unintended effects on other existing themes.