We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Standalone colors are plain constants that be used anywhere.
All colors are Compose Color accessible via the EverliColors object:
Color
EverliColors
@Composable fun SomeText() { Text( text = "Hello", color = EverliColors.Black100, ) }
All colors are normal resources stored in colors.xml
colors.xml
<TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Hello" android:textColor="@color/black_100" />
EverliColor is a utility class supposed to be used in your data layer if needed. It can be helpful when your backend provides it in data objects.
EverliColor
data layer
EverliColor.fromString() -> used to handle deserialization.
EverliColor.fromString()
EverliColor.toColor() -> used to convert to Compose Color.
EverliColor.toColor()
EverliColor.toResourceId() -> used to convert to XML resource id.
EverliColor.toResourceId()