Created
April 20, 2021 16:55
-
-
Save pablobaldez/a0acc9353c7048317e0ec8bc2adccab2 to your computer and use it in GitHub Desktop.
ColorContext sample
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data class ColorContext( | |
val primary: Int, | |
val primaryHover: Int, | |
val primaryActive: Int, | |
val link: Int, | |
val overPrimary: Int | |
) | |
object Brand : Group<ColorContext> { | |
override val light = ColorContext( | |
primary = 0XE02B57, | |
primaryHover = 0xE02B57, | |
primaryActive = 0x9C082C, | |
link = 0xE02B57, | |
overPrimary = 0xFFFFFF | |
) | |
override val dark = ColorContext( | |
primary = 0XE02B57, | |
primaryHover = 0xC7123E, | |
primaryActive = 0x9C082C, | |
link = 0xE02B57, | |
overPrimary = 0xFFFFFF | |
) | |
} | |
object Neutral : Group<ColorContext> { | |
... | |
} | |
object Cash : Group<ColorContext> { | |
... | |
} | |
object Wealth : Group<ColorContext> { | |
... | |
} | |
object Trade : Group<ColorContext> { | |
... | |
} | |
object Business : Group<ColorContext> { | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment