CustomColorSet

class CustomColorSet(val fallbackColor: AtomikColor, colors: Map<String, AtomikColor>) : ColorSet

A custom set of colors to be used in the project

Is an implementation of ColorSet that contains a map of AtomikColor. Allows for adding colors with custom ids. For now this acts as a wrapper to a collection of colors

Constructors

Link copied to clipboard
fun CustomColorSet(fallbackColor: AtomikColor, colors: Map<String, AtomikColor>)

Functions

Link copied to clipboard
open override fun getColor(name: String): AtomikColor

Gets the color based on a type. If none is found then the fallback is returned

Properties

Link copied to clipboard
open override val fallbackColor: AtomikColor

the color that is passed if the requested color cannot be found