Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AngularDart Material Color Theming

How can I change the material color scheme for a web app using AngularDart 5 and angular_components?

I don't want to define a color for every attribute of every component, but rather use the schemes provided by the color tool or material.io.

like image 933
Arne Wolframm Avatar asked Dec 18 '25 22:12

Arne Wolframm


1 Answers

https://github.com/dart-lang/angular_components/issues/253#issuecomment-384441704

Today to do this we use mixins to style the specific parts of the app in the different theme with it scoped to the components in question.

See also

  • https://github.com/dart-lang/angular_components#custom-component-styles
  • https://github.com/dart-lang/angular_components/blob/master/lib/app_layout/README.md
  • https://github.com/dart-lang/angular_components/issues/176
like image 147
Günter Zöchbauer Avatar answered Dec 24 '25 10:12

Günter Zöchbauer