Open rfschubert opened 5 years ago
Hi, I'm newbie in dart too :)
dart-sass is a new generation sass compiler and support import as special format, for example:
@import "package:mdc_web/material-components-web.scss";
Note: pay attention to package name! Also, you can traverse "Dart Packages" directory in your project explorer of WebStorm IDE.
I learned it by investigation in examples repo: https://material-components.github.io/material-components-web-catalog
Hi! I'm new to dart yet, and I'm trying to customize the theme colors...
I did build an very simple drawer and top bar app to start with, here is my template:
And I just copy/paste the Material Component SCSS vars to my
.scss
file to try customize it...Here is my
scss
file.If I import the second line, it imports all default template, and ok... But if I try to import only the first line, it gives me this error:
I'm using
Dart 2
and just tried to runnpm i material-components-web
also with no success...So, currently, I can use only the default template imported from
unpkg
url, and I am unable to customize without doing hardcoded CSS override.And here is my
pubspec.yaml
Any clues about how to import/customize it using
scss
?