Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No response
I get an runtime error. Following the official document guide on using scss variables in your project: https://material.angular.io/guide/theming-your-components.
Steps to reproduce:
@use 'sass:map'; @use '@angular/material' as mat; $color-config: mat.get-color-config($theme); $primary-palette: map.get($color-config, 'primary'); $accent-palette: map.get($color-config, 'accent'); $warn-palette: map.get($color-config, 'warn'); $is-dark-theme: map.get($color-config, 'is-dark');
No errors
Repo with the a clean angular 13 project to reproduce: https://github.com/chsami/angular13withmaterial
The text was updated successfully, but these errors were encountered:
It looks like you're referring to a variable called $theme that doesn't exist.
$theme
Sorry, something went wrong.
+1 to what @crisbeto said about the missing $theme. We should fix this in our docs. I think this would be a good first issue for someone wanting to contribute.
Successfully merging a pull request may close this issue.
Is this a regression?
The previous version in which this bug was not present was
No response
Description
I get an runtime error. Following the official document guide on using scss variables in your project: https://material.angular.io/guide/theming-your-components.
Reproduction
Steps to reproduce:
Expected Behavior
No errors
Actual Behavior
Environment
Repo with the a clean angular 13 project to reproduce: https://github.com/chsami/angular13withmaterial
The text was updated successfully, but these errors were encountered: