I want to set one word in a sentence to have md-primary color, and another word to have the accent color. I assumed something like this:
<div>
Hello <span class="md-primary">friend</span>.
How are <span class="md-accent">you</span>?
</div>
But those classes work only for some specified components.
What's the way to do it?
EDITED 2015/07/23
TitForTat's comment has better solution https://github.com/angular/material/issues/1269#issuecomment-121303016
I created a module:
and then append
into angular-material.js at 13783 line
Then, I can simply apply c-md-theme-fg and/or c-md-theme-bg to element to apply theme colors. Like this:
It works.
ps: sorry about english, come from Taiwan :)
This answer is outdated please check @factalspawn answer
With 'pure' angular-material you can't. But you can try usign this: https://gist.github.com/senthilprabhut/dd2147ebabc89bf223e7
Anchor element () is reacting to the Angular Material current theme setting since
version 1.0.0-rc1
: https://github.com/angular/material/blob/master/CHANGELOG.md#110-rc1-2016-03-09.