I am utilizing syncfusion components in my project. My goal is to have a specific component switch to Dark theme when the app-dark class is applied to the containing div element. In order to achieve this, I need to import two themes as shown below:
@import '../../../../node_modules/@syncfusion/ej2-angular-grids/styles/material.css';
.app-dark {
@import '../../../../node_modules/@syncfusion/ej2-angular-grids/styles/material-dark.css';
}
This snippet represents my imports and the corresponding .scss file.
The current styling approach is incorrect and may result in compilation errors. So, how can I implement the desired functionality successfully?