chevron_right Demos chevron_right Theming
Related demos
Book a live Demo

Live Demo — yFiles in Action

30–45 min | Online | No install required

For Developers, Product Mangers & Executives

  • Interactive graph visualization in real time
  • Integration example
  • Live Q&A and next step recommendations

30–45 minutes | 1:1 or team session

Book a free live demo

Live Demo — yFiles in Action

30–45 min | Online | No install required

For Developers, Product Mangers & Executives

30–45 minutes | 1:1 or team session

Book a free live demo

Theming

This demo shows how to define a custom theme for the graph component by changing the --yfiles-theme CSS variables. A theme affects the color and look of the input handles (e.g. the handles to resize nodes), the marquee, the snap-lines, label position candidates, the graph overview marquee and also the indicators to select, highlight or focus items. The Theming section of the Developers Guide explains the effects of a custom Theme in detail.

The custom theme in this demo uses a round theme variant and a scale of 2 to increase the size of the handles. The primary color is almost white, the secondary color and background color are orange-like.

This is done by setting the following CSS variables:

.yfiles-canvascomponent {
  --yfiles-theme-primary: #fcfdfe;
  --yfiles-theme-secondary: #f69454;
  --yfiles-theme-background: #ee693f;
  --yfiles-theme-variant: round;
  --yfiles-theme-scale: 2;
}        

Things to Try

See the sources for details.