[][src]Module scarlet::material_colors

This file provides some basic facilities for creating a Color object, specifically an RGBColor, from the 2014 Google Material design spec.

One thing to keep in mind is that the Material Design specification has changed somewhat. Now, they use "algorithmic adjustment of hue, chroma, lightness" instead of these palette colors. I'm keeping these here because they're still useful: you can certainly replicate any adjustments Google does with the other capabilities of Scarlet.

Enums

AccentTone

An accent tone, notated with an A prefix in the Material Design document and here.

MaterialPrimary

A fully specified Material color. Note that, depending on whether the color has accent tones, different tone enums need to be used. The names of the variants reflect the official Material Design names. For more information, check the Material Design spec.

MaterialTone

Either a neutral or accent tone, with a prefix to distinguish them.

NeutralTone

A neutral tint or shade of a given Material Design hue. Although the values are usually given as numerical literals, numerical literals are not valid identifiers.