There are several predefined skins:
Starting from v7.0, all skins are bundled in the main dhtmlxscheduler.css file. A skin can be activated by setting the scheduler.skin property:
scheduler.skin = "dark";
Or by calling the scheduler.setSkin() method:
scheduler.setSkin("dark");
In Scheduler v6.0 and earlier skins are defined in separate CSS files.
By default, skins import the Inter
font from https://fonts.googleapis.com
. Read more about Google Fonts here.
@import (css) url(
'https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap'
);
If necessary, you can remove the font directly from .less files in the codebase/sources/less/skins/material folder and then rebuild the skin as described in the Skins Customization article.
To apply the default skin, include the default CSS file:
To apply the 'Dark' skin, include the default CSS file:
And set the skin via the scheduler.skin property:
scheduler.skin = "dark";
To apply the 'Material' skin, include the default CSS file:
And set the skin via the scheduler.skin property:
scheduler.skin = "material";
The Material skin requires Roboto
which is not imported by default. So you must add it manually as follows:
@import url(
'https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;600;700&display=swap'
);
To apply the 'Flat' skin, include the default CSS file:
And set the skin via the scheduler.skin property:
scheduler.skin = "flat";
To apply the 'Contrast Black' skin, include the default CSS file:
And set the skin via the scheduler.skin property:
scheduler.skin = "contrast-black";
Related sample: High contrast theme - Black
To apply the 'Contrast White' skin, include the default CSS file:
And set the skin via the scheduler.skin property:
scheduler.skin = "contrast-white";
Related sample: High contrast theme - White
Back to top