Introduction
Ambient colors
Ambient colors are inspired by the Material palette and are designed to work alongside Material.
Backgrounds
Introducing Ambient colors. A collection of skin classes to use while building UI.
Includes a set of classes to set background color.
.am-clr-NUMBER-bg
Red
.am-clr-1-bg
@am-palette-1
Pink
.am-clr-2-bg
@am-palette-2
Purple
.am-clr-3-bg
@am-palette-3
Deep Purple
.am-clr-4-bg
@am-palette-4
Indigo
.am-clr-5-bg
@am-palette-5
Blue
.am-clr-6-bg
@am-palette-6
Light blue
.am-clr-7-bg
@am-palette-7
cyan
.am-clr-8-bg
@am-palette-8
Teal
.am-clr-9-bg
@am-palette-9
Green
.am-clr-10-bg
@am-palette-10
Light green
.am-clr-11-bg
@am-palette-11
Lime
.am-clr-12-bg
@am-palette-12
Yellow
.am-clr-13-bg
@am-palette-13
Amber
.am-clr-14-bg
@am-palette-14
Orange
.am-clr-15-bg
@am-palette-15
Deep orange
.am-clr-16-bg
@am-palette-16
Brown
.am-clr-17-bg
@am-palette-17
Grey
.am-clr-18-bg
@am-palette-18
Blue grey
.am-clr-19-bg
@am-palette-19
Black
.am-clr-20-bg
@am-palette-20
Borders & Text
Includes a set of classes to set text and or border color.
.am-clr-NUMBER-text
.am-clr-NUMBER-border
Red
Pink
Purple
Deep purple
Indigo
Blue
Light blue
cyan
Teal
Green
Light green
Lime
Yellow
Amber
Orange
Deep orange
Brown
Grey
Blue grey
Black
SVG fills and strokes
Includes a set of classes to set fills and or strokes.
.am-clr-NUMBER-fill
.am-clr-NUMBER-stroke
LESS
Easily change the hue for a Material background, text, border, fill or stroke within the mixin. Or, use your own custom color by updating the base am-palette-1
- am-palette-20
color variables.
Material Mixin build
.COLOR(RANGE, ORIENTATION);
- COLOR: Material unique color name.
- RANGE: 1-14. Range is the color value within the LESS group list for the color. The value of 6 is Material 500.
- ORIENTATION: text, bg, border, fill, stroke
I have created a Github Gist of the LESS files used in Ambient colors for skin classes to use while building UI.
Mixin
// Red .am-clr-1 { &-text { .red(6, text); } &-bg { .red(6, bg); } &-border { .red(6, border); } &-fill { .red(6, fill); } &-stroke { .red(6, stroke); } }