Skip to content

Instantly share code, notes, and snippets.

@senthilprabhut
senthilprabhut / md-colors.js
Last active June 22, 2016 20:31
Added md-fg, md-bg and md-bdr classes
/* Inspired from https://github.com/angular/material/pull/1599 and https://gist.github.com/SimeonC/1f6b6e52c9b14c4c7b63*/
(function () {
"use strict";
/**
* @ngdoc run
* @module mdColors
*
* @description
* This builds css styles like "md-default-theme md-accent md-fg" to allow use of the accent class to the foreground (css color attribute) where 'default' is the theme name
* Similarly, you can use "md-default-theme md-primary md-bg" to apply the primary class to background-color. Here, 'default' is the theme name.