Skip to main content
Skip table of contents

Migrate to new Design Tokens

Viewport's 2023-10-17 release introduces CSS custom properties that represent its new design token foundation in the Help Center theme while deprecating some existing ones.

If you have injected custom CSS into your site and use any of the legacy custom properties, you should switch to the new ones as soon as possible.

To ease the switch, we will continue to support a selection of the most used legacy custom properties until December 2023. After that date, every theme must be using the new design token custom properties in order to maintain customized styling.

Affected CSS custom properties

The following overview of all deprecated custom properties and their replacements will help you update your theme's custom code.

The legacy custom property values will still be applied during the migration period (unless described otherwise). Not all legacy custom properties will get a successor property and are instead removed.

Legacy custom properties

New custom properties
















Merges into --K15t-roundess-factor

The new roundness factor property is applied to several elements and controls the general roundness of the theme. The smaller the factor the less round the site gets and the bigger the factor the rounder it gets.











--K15t-border-neutral / --K15t-border-brand









































Planned obsolescence.

We recommend not using or overriding it.

Migration instructions

Deriving legacy custom property values within the theme's custom CSS

If your theme's custom CSS derives legacy custom property values — for example to use their values to style other elements — simply replace the legacy custom property with its successor listed in the Affected CSS custom properties table.


/* Within the theme's custom CSS */

.some-element {
-  color: var(--vp-color-black);
+  color: var(--K15t-foreground);

Overriding legacy custom property values within the theme's custom CSS

In case your theme's custom CSS overrides a legacy custom property value — e.g. to better adapt to the corporate identity — follow these steps:

  1. Identify the successor custom property

  2. Override the new custom property on the root level

  3. Remove the legacy custom property from the theme's custom CSS


/* Within the theme's custom CSS */

:root {
-  --vp-font-family-headline: "Merriweather", ui-serif, serif;
+  --K15t-font-family-headline: "Merriweather", ui-serif, serif;

Overriding element styles using various CSS selectors in the theme’s custom CSS

Using element selectors can be error prone and does not always lead to the desired result due to CSS specificity. We recommend to use the appropriate custom properties instead where ever possible which is much more robust and does not rely on CSS selector specificity.


/* Within the theme's custom CSS */

- h1,
- h2,
- h3,
- h4,
- h5,
- h6 {
-   font-family: 'Georgia', 'serif'; 
- }
+ :root {
+   --K15t-font-family-headline: 'Georgia', 'serif';
+ }

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.