Thanks for the sample code.
I have added styling as below in .scss file:
$my-discard-theme: igx-dialog-theme(
$background: #011627,
$title-color: #ecaa53,
$message-color: #fefefe,
$border-radius: 0.3
);
:host {
.overlay1 {
::ng-deep {
@include igx-dialog($my-discard-theme);
}
}
}
But I am getting below error:
Module build failed (from ./node_modules/sass-loader/lib/loader.js):
$my-discard-theme: igx-dialog-theme(
^
Plain CSS functions don't support keyword arguments.
╷
487 │ $my-discard-theme: igx-dialog-theme(
│ ┌────────────────────^
488 │ │ $background: #011627,
489 │ │ $title-color: #ecaa53,
490 │ │ $message-color: #fefefe,
491 │ │ $border-radius: 0.3
492 │ │ );
│ └─^
╵
stdin 487:20 root stylesheet