Lost on how to use SCSS, themes, palettes.

0 Answers 22 Views
ColorPalette Styling
Gerard
Top achievements
Rank 1
Gerard asked on 12 Jun 2024, 03:24 PM

I was asked to upgrade an Angular app from 8 to 17. And I upgraded to Kendo-Angular 16.  I am pretty much an Angular newbie.  I got the authentication working, and the data is coming, but the styling is gone. Right now this code is throwing the error "undefined variable". 

@use '@angular/material' as mat;
@include mat.core();
$kendo-um-primary: mat-palette($green-palette);

With a red squiggly underlining $green-palette. The old code was:

@import '~@angular/material/theming';
@include mat-core();
$kendo-um-primary: mat-palette($mat-indigo);

 

The only theme files I see in my new package.json are:

"@progress/kendo-theme-bootstrap": "^8.0.1",

"@progress/kendo-theme-default": "^8.0.1",

"@angular/material": "~17.3.10",

 

 

Gerard
Top achievements
Rank 1
commented on 17 Jun 2024, 03:57 AM

Seems I found the updated syntax on the Angular Material site.

No answers yet. Maybe you can help?

Tags
ColorPalette Styling
Asked by
Gerard
Top achievements
Rank 1
Share this question
or