Skip to content

MrChriZ/ember-material-components

 
 

Repository files navigation

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

  • npm test (Runs ember try:each to test your addon against multiple Ember versions)
  • ember test
  • ember test --server

Building

  • ember build

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

About

Google's Material Design Components for Ember JS apps

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HTML 59.1%
  • JavaScript 39.2%
  • CSS 1.7%