The Palettes component provides Material colors organized into similar palettes.
Design & API Documentation
Installation with CocoaPods
To add this component to your Xcode project using CocoaPods, add the following to your
Then, run the following command:
Before using Palettes, you’ll need to import it:
Much like UIColor objects, MDCPalette objects are immutable static objects you can use to obtain Material colors. All palettes have a set of tints with lower numbers being lighter colors and higher numbers being darker colors. The 500 tint is the most common representative color for its respective palette. Most palettes (but not all) also have a set of accent colors following a similar naming scheme.
view.backgroundColor = MDCPalette.green.tint500
self.view.backgroundColor = MDCPalette.greenPalette.tint500;