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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Use default variables scss

Thread ID:





143042 Mar 1,2019 02:16 PM UTC Mar 5,2019 09:23 AM UTC Angular - EJ 2 1
Tags: General
Adriano Nascimento
Asked On March 1, 2019 02:16 PM UTC

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

Sridurgha Uthayakumaran [Syncfusion]
Replied On 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. 

Sridurgha U 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon