invantive documentationpart of invantive cloud
Invantive Support ForumsLog In / Sign Up

Themes

A theme sets the look of the experiences in an application. The themes are maintained under "Settings" on the tab "Themes" by an administrator. An application uses one theme; an experience can use another one.

The tab lists the themes with their code, the accents in light and in dark mode and the corner radius: The page "Themes" with the themes Northwind and Valuta Tools, their codes, accent colours in both modes and corner radius.

Settings of a Theme

A theme has the following settings:

  • "Accent in Light Mode" and "Accent in Dark Mode": the colour of buttons, progress and highlights.
  • "Background in Light Mode" and "Background in Dark Mode".
  • "Text in Light Mode" and "Text in Dark Mode".
  • "Font": empty to use the font of the host page. Waypoint loads no font of its own.
  • "Corner radius".
  • "Custom CSS": extra styles for the experiences only.

Every colour is written as #rrggbb. An experience follows the colour scheme of the host page and switches between the light and the dark colours while the page is open.

Example: Matching the Application

The theme "Valuta Tools" takes the blue of the application as its accent: #1f6feb in light mode and the lighter #4493f8 in dark mode, so the contrast on the dark background stays within the limit. The corner radius is 8, as the buttons of the application. Leave "Font" empty: the experiences then take the font of the application.

Contrast

"Contrast against WCAG 2.2 AA" shows the contrast of the text on the background, of the accent on the background and of the text on a button in the accent, in light and in dark mode. A theme whose contrast does not meet WCAG 2.2 level AA is not saved.

Custom CSS

The custom CSS is checked before it is saved. It is refused, with the reason, when:

  • a selector does not start with .wpt-, so it would style the host page;
  • it holds @import, @font-face or url(), which load files from another origin;
  • it holds a construction that runs script, or a tag that would end the stylesheet;
  • its braces are not balanced, or it is longer than 20 000 characters.

A theme that is used by an application or an experience cannot be deleted (itgenwpt233); give them another theme first.

Release Notes