Google's Material Design Components for Ember JS apps
ember install ember-material-components
Install ember-cli-sass addon by running the following command:
ember install ember-cli-sass
app/styles/app.scss
@import "ember-material-components";
Material Design Component Theme makes it easy to develop your brand colors. You override the default theme color through Sass variables or CSS custom properties.
A note about Sass variables, you need to define the three theme color variables before importing ember-material-components, like following:
$mdc-theme-primary: #9c27b0; // Purple 500
$mdc-theme-secondary: #ffab40; // Orange A200
$mdc-theme-background: #fff; // White
@import "ember-material-components";
:root {
--mdc-theme-primary: #ce93d8; // Purple 500
--mdc-theme-secondary: #6a1b9a; // Orange A200
--mdc-theme-background: #fff; // White
}
For more advance theming customization refer to the official mdc-theme documentation.
npm test
(Runsember try:each
to test your addon against multiple Ember versions)ember test
ember test --server
ember build
For more information on using ember-cli, visit https://ember-cli.com/.