Skip to main content

Themes overview

Suite themes​

The DHTMLX Suite library includes four predefined themes:

The Suite themes follow international accessibility standards. The high contrast themes help users with vision impairments. For more detail, read the Accessibility support article.

You can try all themes in the example below:

Custom themes​

If the base Suite themes don't fit your project, you can configure your own color theme. For more information, read the Custom theme article.

Set a theme​

You can apply a Suite theme or a custom theme in one of the following ways:

  • Change the data-dhx-theme attribute of the component container:
index.html
<!-- component container -->
<div data-dhx-theme="dark" style="height: 100%" id="chart"></div>
  • Change the data-dhx-theme attribute of the root element:
index.js
// your code here

document.documentElement.setAttribute("data-dhx-theme", "dark");