We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Use default variables scss

Hello,
I saw that a version with default variables was released,
I was very happy and excited to use however I did not find documentation to use,
let alone as order of precedence of files and the raviaves that can be overwritten

1 Reply

SU Sridurgha Uthayakumaran Syncfusion Team March 5, 2019 09:23 AM UTC

Hi Adriano, 

Thanks for your interest in Syncfusion Products. 

We can override the styles of Essential JS 2 components by defining the variable to be overridden before importing the style files. Please find the below code snippet for example. 

$accent: blue; 
@import 'ej2-base/styles/material.scss'; 
@import 'ej2-angular-buttons/styles/material.scss'; 

In the above code snippet, we have overridden the color of common accent variable which is common for all components. For your convenience, we have created an angular-cli sample to override the style using SCSS and the same can be referred from the below link. 


The list of common style variables which can be overridden  are provided in the below documentation. Please find the same from the below link. 


Please let us know if you have any concerns. 

Regards, 
Sridurgha U 


Loader.
Live Chat Icon For mobile
Up arrow icon