Skip to Content

$brands

A list of well-known brand colors.

Sass May 29, 2018

Usage

This is a variable or event handle.

Examples

Get the primary color using the built-in Sass function map-get()

Sass
.element {background: map-get($brands, 'phg');}

Get the secondary (or other) color using the built-in Sass function map-get() and nth()

Sass
.element {background: nth(map-get($brands, 'phg'), 2);}

Get the primary color using the Nebula brand() function.

Sass
.element {background: brand($phg);}

Get the secondary (or other) color using the Nebula brand() function.

Sass
.element {background: brand($phg, 2);}

Source File

Located in /assets/scss/partials/_variables.scss.