Default text/selected color (change color globally)

Hello,
On every component iam getting #e3165b color set.
Who to change it globally?
Few examples below:


Thanks!

3 Replies 1 reply marked as answer

PM Ponmani Murugaiyan Syncfusion Team April 5, 2021 11:44 AM UTC

Hi Mantas, 

Greetings from Syncfusion support. 

You can override the styles to change the selected text or date color in the individual component. Please find the styles below for reference. 

1.DateTimePicker component:  


/* Change selected date color when focusing */ 
.e-calendar .e-content td.e-selected span.e-day, 
.e-bigger.e-small .e-calendar .e-content td.e-selected span.e-day { 
  background-color: #20e316; 
} 
/* Change selected date color when hovering */ 
.e-calendar .e-content td.e-today.e-selected:hover span.e-day, 
.e-calendar .e-content td.e-selected:hover span.e-day, 
.e-calendar .e-content td.e-selected.e-focused-date span.e-day, 
.e-bigger.e-small .e-calendar .e-content td.e-today.e-selected:hover span.e-day, 
.e-bigger.e-small .e-calendar .e-content td.e-selected:hover span.e-day, 
.e-bigger.e-small .e-calendar .e-content td.e-selected.e-focused-date span.e-day { 
  background-color: #34b511; 
} 

 

2.DropDownList component:  
 

.e-dropdownbase .e-list-item.e-active, 
.e-dropdownbase .e-list-item.e-active.e-hover { 
  background-color: #eee; 
  border-color: #fff; 
  color: #16e34d; 
} 

 

Also we suggest you to check with the theme Studio which can be used to customize a new theme from an existing theme. 



Please get back us if you need further assistance. 

Regards, 
Ponmani M 


Marked as answer

FL Francis Lapointe Boutin January 9, 2022 03:14 AM UTC

Thanks Ponmani, thats excellent. On the same topic, how can I hide the circle around the current day? The 5 April on your picture.


Thanks



SP Sureshkumar P Syncfusion Team January 10, 2022 04:16 PM UTC

Mantas, 
 
As per your requirement, we have modified the today date selected background color with circle styles. Please find the modified code example here 
/* Change selected today date color when focusing */ 
.e-calendar .e-content td.e-today.e-selected span.e-day, 
.e-bigger.e-small .e-calendar .e-content td.e-today.e-selected span.e-day { 
  background-color#20e316; 
  bordernone; 
  box-shadownone; 
} 
 
 
Find the modified already provided sample here: https://stackblitz.com/edit/angular-bynv8t-degm9z?file=app.component.css  
 
Regards, 
Sureshkumar P 


Loader.
Up arrow icon