--- layout: default route: customization title: Customization variables: - name: $calendar-border value: .1rem solid $white-ter - name: $calendar-border-radius value: $radius-small - name: $calendar-header-background-color value: $primary - name: $calendar-days-background-color value: transparent - name: $calendar-header-days-color value: $grey-light - name: $calendar-date-color value: $text - name: $calendar-date-hover-background-color value: $white - name: $calendar-date-hover-border value: .1rem solid $primary - name: $calendar-today-background value: transparent - name: $calendar-today-border value: .1rem dotted $primary - name: $calendar-today-color value: $primary - name: $calendar-range-background-color value: $primary - name: $calendar-body-padding value: 0 - name: $calendar-header-padding value: .3rem 0 - name: $calendar-header-nav-padding value: .5em - name: $calendar-date-padding value: .1rem 0 --- Prerequisites

To customize the template you must have node, npm and Gulp installed in your computer.

- ###### node and npm

  Installation guide of node can be found here. As npm comes bundled with node, separate installation of npm is not needed.
  If you have installed them, just checkout to the root folder and run the following command.

      npm install

  You can see that a folder `node_modules` is generated in your root folder with all dependencies files!

- ###### Gulp

  To start customization you will need to install Gulp for task automation.
  Getting started with Gulp is pretty simple. The Gulp site is a great place to get information on installing Gulp if you need more information.

  You need to first install Gulp-cli in your machine using the below command.

      npm install -g gulp-cli

###### You are now ready to customize the component.

Compilation

We have created a Gulp configuration file (guplfile.js) which integrates many task to automate the compilation.

We have also developed a Gulp plugin to automatically copy used dependencies from node_modules into the template and replace all include paths related to them.

- ###### gulp build:styles

  Compile Sass sources and save them into the dist directory and the demo src directory.

- ###### gulp build:scripts

  Transpile ES6 Javscript sources and save them into the dist directory and the demo src directory.

- ###### gulp build

  Run both of previous commands

- ###### gulp demo

  Run a complete clean and build then compile demo sie with jekyll then launch a local server with watch capability (demo site is now auto updated when you modify source code).

Sass customization

The component provides SASS file which can be imported into your SASS project. To ease the customization the component use following variables that can be override:

{% include variables.html %}