aonawale / ember-material-components

Google's Material Design Components for Ember JS apps
https://aonawale.github.io/ember-material-components
MIT License
2 stars 1 forks source link
ember-addon material-components material-design

ember-material-components

Google's Material Design Components for Ember JS apps

Installation

ember install ember-material-components

Using SASS

Install ember-cli-sass addon by running the following command:

ember install ember-cli-sass

app/styles/app.scss

@import "ember-material-components";

Configuration

Theme Colors

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:

With SASS

$mdc-theme-primary: #9c27b0; // Purple 500
$mdc-theme-secondary: #ffab40; // Orange A200
$mdc-theme-background: #fff; // White

@import "ember-material-components";

Without SASS

: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.

Running Tests

Building

For more information on using ember-cli, visit https://ember-cli.com/.